Make a script that calculates the GC content (fraction) of a user supplied DNA sequence.
Bonus: check if the input sequence is divisible by three, if not exit
For a user inputted nucleotide sequence print the reverse complement.
Hints and tricks:
This exercise is replicated from the book: Practical computing for biologists. For more information on Python programming, check: Haddock SHD, Dunn CS. Practical computing for biologists. Sunderland (Massachusetts U.S.A.): Sinauer Associates, Inc.; 2011.
Calculate the molecular weight of a given protein sequence. (hint: use a dictionary)
Calculate the GC content via BioPython.
Bonus: print the reverse complement
Adapt the GC content script to download a sequence directly from NCBI Entrez.
Find your favorite gene or use FMR1: NM_001185075.1 (http://www.ncbi.nlm.nih.gov/nuccore/NM_001185075.1)
Hints and tricks:
Adapt the last script to download two sequences and align them using entrez.needle.
Hints and tricks: