Hi, all.
I'm very new to python and it's a requirement for my biology major to take at least one class in bioinformatics.
I am having some difficulty with the homework my professor gave. The assignment is below:
Write a Perl script that computes the complement
of a DNA sequence. In other words, your script should convert all
A's to T's, C's to G's, G's to C's, and T's to A's.
The input is one sequence in FASTA format in a file called "dna.txt".
For example if the file contains
>human
ACCGT
then the output of the program should be TGGCA. Note that your program should work for
any sequence in this format and not just the given example.
_______________ _________
How do I do this, because I have absolutely no idea. He wants a very basic code.
Also, where are good tutorials online for Python? I did order a book but until I receive it I need some thing to help me with homework. Thank you, I really appreciate it.
I'm very new to python and it's a requirement for my biology major to take at least one class in bioinformatics.
I am having some difficulty with the homework my professor gave. The assignment is below:
Write a Perl script that computes the complement
of a DNA sequence. In other words, your script should convert all
A's to T's, C's to G's, G's to C's, and T's to A's.
The input is one sequence in FASTA format in a file called "dna.txt".
For example if the file contains
>human
ACCGT
then the output of the program should be TGGCA. Note that your program should work for
any sequence in this format and not just the given example.
_______________ _________
How do I do this, because I have absolutely no idea. He wants a very basic code.
Also, where are good tutorials online for Python? I did order a book but until I receive it I need some thing to help me with homework. Thank you, I really appreciate it.
Comment