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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
You know the right answer?
Write a python program that converts an input file in fasta format, called
"fasta. txt", to an...
Questions
question
Mathematics, 17.10.2020 23:01
question
Mathematics, 17.10.2020 23:01
Questions on the website: 13722367