Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Converting Uniprot File to a Fasta File in Perlby erix (Prior) |
on Feb 27, 2017 at 21:42 UTC ( [id://1183023]=note: print w/replies, xml ) | Need Help?? |
Unless this is a programming exercise, it will be easiest to just parse out the accessions (the first one, the 'primary accession number', suffices, the rest are old ones, kept for 'backward compatibility') and use those primary accessions to query the uniprot.org website. To get the fasta for an accession, say 'Q94650', just construct a url like: http://www.uniprot.org/uniprot/Q94650.fasta and go get the fasta with wget or indeed perl LWP. It'll return:
In Section
Seekers of Perl Wisdom
|
|