subject

Write a python program that converts an input file in fasta format, called
"fasta. txt", to an output file in phylip format called "phylip. txt".
for example if the input file contains:

> human
accgttatac
cgatctcgca
> chimp
acggttatac
cgtacgatcg
> monkey
acctctatac
cgatcgatcc
> gorilla
atctatatac
cgatcgatcg

then the output file should be

human accgttataccgatctcgca
chimp acggttataccgtacgatcg
monkey acctctataccgatcgatcc
gorilla atctatataccgatcgatcg

fasta format has a description (indicated with a '> ') followed by 1 or
more lines of a dna sequence. phylip format has a description followed
by a single line of a dna sequence and each sequence is the same length.
for this homework, the input file will have an arbitrary number of
sequences of arbitrary, but identical, length

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, passions3534ovf6dt
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, jayjay5246
What is the term for water wave that is created by an underwater earthquake
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, kelseybell5522
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
You know the right answer?
Write a python program that converts an input file in fasta format, called
"fasta. txt", to an...

Questions in other subjects:

Konu
Mathematics, 05.03.2021 16:30
Konu
Mathematics, 05.03.2021 16:30
Konu
Mathematics, 05.03.2021 16:30