Visa version
Version skapad av Lars Arvestad 2016-11-09 13:15
Visa
< föregående
Jämför
< föregående
Compute GC content
Write a program gccontent for computing GC content for a genome.
Requirements
- Your program must read any number of files from the command line arguments, compute GC for file after file, and write them to standard out in order.
- All sequences (chromosomes and/or contigs) from a genome should be included in the analysis.
- You program must be structured so that:
- one function is in charge of reading a genome sequence,
- one function is computing the GC content of a sequence.
Example usage
A typical session running you program must look like this:
> ./gccontent genome1 0.406 > ./gccontent genome1 genome2 genome3 0.406 0.539 0.435 > ./gccontent genome1 genome2 genome3 | sort -n 0.406 0.435 |
Print using any precision you like.
To present:
- Your well-structured and commented fcode.
- Test runs on the five downloaded genomes.
- Why do people care about GC content?