[Biopython-dev] Writing protein records in Swiss-Prot format
Peter Cock
p.j.a.cock at googlemail.com
Mon Dec 25 22:23:18 UTC 2017
Thanks for the explanation.
Note I have sometimes needed to *filter* a SwissProt
format file, and you can do this via SeqIO's index
get_raw functionality (grab the original raw record
as a string, and save it to a file as is). There's an
example of this in our Tutorial, see the section
"Getting the raw data for a record":
http://biopython.org/DIST/docs/tutorial/Tutorial.html
Peter
On Mon, Dec 25, 2017 at 4:05 PM, Adam Sjøgren <asjo at koldfront.dk> wrote:
> Peter writes:
>
> > I don't recall anyone asking about this, so there doesn't seem to be
> > much need for it. And perhaps because of this, no one has ever
> > written the code to do it. I've only ever needed to read these files.
> >
> > Why do you need Swiss aka SwissProt aka UniProt DAT format
> > output?
>
> I guess we should just use GenBank format.
>
> Traditionally (which in this case means: using BioPerl) we have been
> using SwissProt format when writing protein records, so I was just
> trying to do the same in BioPython, without any deeper thought going
> into it :-)
>
>
> Thanks for the reply & merry christmas,
>
> Adam
>
> --
> "There are forty people in the world and five of them Adam Sjøgren
> are hamburgers." asjo at koldfront.dk
>
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biopython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython-dev/attachments/20171225/834a2222/attachment.html>
More information about the Biopython-dev
mailing list