Business card exercise solutions

If you’ve got hold of one of my business cards and want to see the solution to the exercise on the back, just click on the picture of the relevant Python code:

restriction fragment lengths

Exercise: modify the function to calculate fragment lengths for digests with two restriction enzymes. 

lp

fastq parser

Exercise: modify the function to return only reads with an average quality greater than X. 

 

lp (1)

reverse complement

Exercise: modify the function to return either the complement, reverse, or reverse complement of the input sequence.

lp (2)

sliding window

Exercise: modify the function to return the AT content of each window rather than the sequence. 

lp

kmer counting

Exercise: modify the function to return only kmers that make up more than X% of the sequence.

lp (3)

Powered by WordPress. Designed by Woo Themes