Skip to content

cameron-earl/rosalind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solutions for the problems found at http://rosalind.info

Rosalind.info has a repository of bioinformatics problems arranged in increasing complexity. If you don't want it spoiled for you, maybe don't look in here.

How to Run:

  1. Install node and typescript globally.

  2. Find a problem on rosalind, and notice the 2-4 character problem name in the url. For example, in http://rosalind.info/problems/fib/ it would be fib.

  3. Create a new file by that name in the ts/solutions directory.

    // fib.ts:
    export default (data: string): string => {
    	return '';
    };
  4. In the same directory, create the test file.

    // fib.test.ts
    import fib from './fib';
    
    describe('fib', () => {
    	it('should pass sample test', () => {
    		const sampleInput = '5 3';
    		const expected = '19';
    		expect(fib(sampleInput)).toEqual(expected);
    	});
    });
  5. In the solutions object in the ts/solutions/index.ts file, add the name to the list and import it.

  6. Code the solution.

  7. When ready to try against real data, download dataset and save inside /datasets.

  8. In the cli, execute npm start. To run any solution other than the last in the object, you can enter it in the cli. Example: npm start fib.

About

My efforts solving the problems found at rosalind.info using node/typescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors