<div dir="ltr"><div class="gmail_default" style="font-size:small">Hello,</div><div class="gmail_default" style="font-size:small">Very nice book!</div><div class="gmail_default" style="font-size:small">I you run the welcome link through nbviewer, the links work:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://nbviewer.ipython.org/github/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb">http://nbviewer.ipython.org/github/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">/bjorn</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 4:29 AM, <span dir="ltr"><<a href="mailto:biopython-request@mailman.open-bio.org" target="_blank">biopython-request@mailman.open-bio.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Biopython mailing list submissions to<br>
<a href="mailto:biopython@mailman.open-bio.org">biopython@mailman.open-bio.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:biopython-request@mailman.open-bio.org">biopython-request@mailman.open-bio.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:biopython-owner@mailman.open-bio.org">biopython-owner@mailman.open-bio.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Biopython digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Bioinformatics with Python cookbook (Iddo Friedberg)<br>
2. Re: Bioinformatics with Python cookbook (Wibowo Arindrarto)<br>
3. Entrez EFetch Options (Zach Gayk)<br>
4. Re: Bioinformatics with Python cookbook (Chris Mitchell)<br>
5. Re: Entrez EFetch Options (Joshua Klein)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 8 Jul 2015 13:02:37 -0500<br>
From: Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>><br>
To: Tiago Antao <<a href="mailto:tra@popgen.net">tra@popgen.net</a>><br>
Cc: Biopython Mailing List <<a href="mailto:biopython@biopython.org">biopython@biopython.org</a>><br>
Subject: Re: [Biopython] Bioinformatics with Python cookbook<br>
Message-ID:<br>
<CABm4-MQxTm6x_fS-_91R40y=ME0=<a href="mailto:pJQgnCGo15RqvwKfYn-DHA@mail.gmail.com">pJQgnCGo15RqvwKfYn-DHA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Wow, nice going, Tiago. Will buy!<br>
<br>
On Tue, Jul 7, 2015 at 6:26 AM, Tiago Antao <<a href="mailto:tra@popgen.net">tra@popgen.net</a>> wrote:<br>
<br>
> Dear all,<br>
><br>
><br>
> I would like to announce "Bioinformatics with Python Cookbook" which I<br>
> authored. As you might imagine Biopython is discussed heavily in the<br>
> book.<br>
><br>
> This book is slightly different from the standard books on<br>
> Bioinformatics and Python. It is not about teaching Bioinformatics<br>
> algorithms, but about solving practical day-to-day problems with<br>
> Python, for example:<br>
><br>
> Next-Generation Sequencing: FASTQ, BAM and VCF processing. Along with<br>
> filtering of datasets.<br>
><br>
> Genomics: processing reference genomes of both high-quality references<br>
> of model species and low-quality non-model species. Also discussed are<br>
> genome annotations and gene ontologies.<br>
><br>
> Population Genetics: doing PCA, Admixture/Structure, computing FSTs, ...<br>
><br>
> Genome simulation: mostly forward-time simulations, but also a bit of<br>
> coalescent<br>
><br>
> Phylogenetics: tree reconstruction and tree drawing<br>
><br>
> Proteins: PDB processing and visualization.<br>
><br>
> Other topics like processing map data, GBIF, interfacing with<br>
> Cytoscape, accessing lots of online databases, ...<br>
><br>
> There is a bit on interacting with R/Bioconductor via Python.<br>
><br>
> Finally we discuss high-performance in Python: faster algorithms,<br>
> clusters, Numba and Cython. Also related technologies like Docker<br>
><br>
> The book discusses the usual Python Libraries in the field: Biopython,<br>
> PyVCF, Pysam, simuPOP, DendroPy, Pymol and also scientific libraries<br>
> like NumPy, SciPy, matplotlib and scikit-learn.<br>
><br>
> The code is fully available for free at github<br>
><br>
> <a href="https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb" rel="noreferrer" target="_blank">https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb</a><br>
><br>
> I am keen on maintaining the book code, so if you find any issues<br>
> please do contact me.<br>
><br>
> The book is available in the usual places (Amazon, etc.) in paperback<br>
> and e-book format. The web page of the book is<br>
><br>
> <a href="https://www.packtpub.com/application-development/bioinformatics-python-cookbook" rel="noreferrer" target="_blank">https://www.packtpub.com/application-development/bioinformatics-python-cookbook</a><br>
><br>
> Regards,<br>
> Tiago<br>
> _______________________________________________<br>
> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
><br>
<br>
<br>
<br>
--<br>
Iddo Friedberg<br>
<a href="http://iddo-friedberg.net/contact.html" rel="noreferrer" target="_blank">http://iddo-friedberg.net/contact.html</a><br>
++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>
++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>
.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>
>>----.<--.>++++++.<<<<------------------------------------.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/65038d9c/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/65038d9c/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 9 Jul 2015 01:35:44 +0200<br>
From: Wibowo Arindrarto <<a href="mailto:w.arindrarto@gmail.com">w.arindrarto@gmail.com</a>><br>
To: Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>><br>
Cc: Biopython Mailing List <<a href="mailto:biopython@biopython.org">biopython@biopython.org</a>><br>
Subject: Re: [Biopython] Bioinformatics with Python cookbook<br>
Message-ID:<br>
<<a href="mailto:CADEGkF512cv2G07iwgAETt3m0Oc-c8nHUivaKgNvyONN%2Bn7tjQ@mail.gmail.com">CADEGkF512cv2G07iwgAETt3m0Oc-c8nHUivaKgNvyONN+n7tjQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi Tiago,<br>
<br>
Congratulations on publishing the book! +1 as well for using notebooks<br>
and putting them on GitHub (and using many of the up-and-coming<br>
libraries ~ I see e.g. numba and spark there :) ).<br>
<br>
One small note, apparently the direct links to the other notebooks in<br>
the Welcome.ipynb notebook is not working properly in the<br>
GitHub-rendered page. Looks like this is something from GitHub, though<br>
(i.e. the way they render notebook links in notebooks). Anyway, just<br>
in case you haven't noticed :).<br>
<br>
Cheers,<br>
<br>
On Wed, Jul 8, 2015 at 8:02 PM, Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>> wrote:<br>
> Wow, nice going, Tiago. Will buy!<br>
><br>
> On Tue, Jul 7, 2015 at 6:26 AM, Tiago Antao <<a href="mailto:tra@popgen.net">tra@popgen.net</a>> wrote:<br>
>><br>
>> Dear all,<br>
>><br>
>><br>
>> I would like to announce "Bioinformatics with Python Cookbook" which I<br>
>> authored. As you might imagine Biopython is discussed heavily in the<br>
>> book.<br>
>><br>
>> This book is slightly different from the standard books on<br>
>> Bioinformatics and Python. It is not about teaching Bioinformatics<br>
>> algorithms, but about solving practical day-to-day problems with<br>
>> Python, for example:<br>
>><br>
>> Next-Generation Sequencing: FASTQ, BAM and VCF processing. Along with<br>
>> filtering of datasets.<br>
>><br>
>> Genomics: processing reference genomes of both high-quality references<br>
>> of model species and low-quality non-model species. Also discussed are<br>
>> genome annotations and gene ontologies.<br>
>><br>
>> Population Genetics: doing PCA, Admixture/Structure, computing FSTs, ...<br>
>><br>
>> Genome simulation: mostly forward-time simulations, but also a bit of<br>
>> coalescent<br>
>><br>
>> Phylogenetics: tree reconstruction and tree drawing<br>
>><br>
>> Proteins: PDB processing and visualization.<br>
>><br>
>> Other topics like processing map data, GBIF, interfacing with<br>
>> Cytoscape, accessing lots of online databases, ...<br>
>><br>
>> There is a bit on interacting with R/Bioconductor via Python.<br>
>><br>
>> Finally we discuss high-performance in Python: faster algorithms,<br>
>> clusters, Numba and Cython. Also related technologies like Docker<br>
>><br>
>> The book discusses the usual Python Libraries in the field: Biopython,<br>
>> PyVCF, Pysam, simuPOP, DendroPy, Pymol and also scientific libraries<br>
>> like NumPy, SciPy, matplotlib and scikit-learn.<br>
>><br>
>> The code is fully available for free at github<br>
>><br>
>> <a href="https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb" rel="noreferrer" target="_blank">https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb</a><br>
>><br>
>> I am keen on maintaining the book code, so if you find any issues<br>
>> please do contact me.<br>
>><br>
>> The book is available in the usual places (Amazon, etc.) in paperback<br>
>> and e-book format. The web page of the book is<br>
>><br>
>> <a href="https://www.packtpub.com/application-development/bioinformatics-python-cookbook" rel="noreferrer" target="_blank">https://www.packtpub.com/application-development/bioinformatics-python-cookbook</a><br>
>><br>
>> Regards,<br>
>> Tiago<br>
>> _______________________________________________<br>
>> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
>> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Iddo Friedberg<br>
> <a href="http://iddo-friedberg.net/contact.html" rel="noreferrer" target="_blank">http://iddo-friedberg.net/contact.html</a><br>
> ++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>
> ++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>
> .>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>
>>>----.<--.>++++++.<<<<------------------------------------.<br>
><br>
> _______________________________________________<br>
> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 8 Jul 2015 21:12:46 -0400<br>
From: "Zach Gayk" <<a href="mailto:zgayk@nmu.edu">zgayk@nmu.edu</a>><br>
To: <a href="mailto:biopython@mailman.open-bio.org">biopython@mailman.open-bio.org</a><br>
Subject: [Biopython] Entrez EFetch Options<br>
Message-ID:<br>
<<a href="mailto:1a6578a08666733c24564622fe2f8dc2.squirrel@webmail.nmu.edu">1a6578a08666733c24564622fe2f8dc2.squirrel@webmail.nmu.edu</a>><br>
Content-Type: text/plain;charset=iso-8859-1<br>
<br>
Hello,<br>
<br>
I would like to use the following code from the biopython tutorial to<br>
retrieve gi numbers for a number of sequences that matched to scaffolds on<br>
a genome assembly:<br>
<br>
import os<br>
os.chdir('/Users/zachgayk/Desktop/GAVIABioinformatics/')<br>
from Bio import Entrez # this is the most likely script modified<br>
from Bio import SeqIO<br>
Entrez.email = "<a href="mailto:zgayk@nmu.edu">zgayk@nmu.edu</a>"<br>
handle = Entrez.efetch(db="nucleotide", rettype="gb", retmode="text", \<br>
id="gi|50254217|gb|`, gi|50254217|gb|AY567890.1|,<br>
gi|559028|gb|L33375.1|GVSMTDGI,<br>
gi|559028|gb|L33375.1|GVSMTDGI")<br>
for seq_record in SeqIO.parse(handle, "gb"):<br>
print seq_record.description[:100] + "..." # the :100 specifies no.<br>
characters and "..." says this comes after specified character limit<br>
handle.close()<br>
<br>
The problem, however, is that there are a large number of gi numbers I<br>
wish to retrieve, and so there are simply too many to manually enter into<br>
the id ="" field. What I would like to do is specify a file containing all<br>
of the needed gi numbers in a list and then have the code parse all of<br>
them. I haven't been able to figure out how to do this yet, and if anyone<br>
has any ideas they would be very much appreciated.<br>
<br>
Thank you,<br>
Zach Gayk<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 8 Jul 2015 21:25:27 -0400<br>
From: Chris Mitchell <<a href="mailto:chris.mit7@gmail.com">chris.mit7@gmail.com</a>><br>
To: Wibowo Arindrarto <<a href="mailto:w.arindrarto@gmail.com">w.arindrarto@gmail.com</a>><br>
Cc: Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>>, <a href="mailto:biopython@biopython.org">biopython@biopython.org</a><br>
Subject: Re: [Biopython] Bioinformatics with Python cookbook<br>
Message-ID:<br>
<<a href="mailto:CAK_U6OCMSuxexTfj3S2zvoY-UkTMERX8sp9vaPpMvwvVU_w0pw@mail.gmail.com">CAK_U6OCMSuxexTfj3S2zvoY-UkTMERX8sp9vaPpMvwvVU_w0pw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I noticed that as well bow, but it's only for pages that are opened in a<br>
new tab.<br>
<br>
Really good stuff all in all.<br>
<br>
Sent from my phone<br>
On Jul 8, 2015 8:07 PM, "Wibowo Arindrarto" <<a href="mailto:w.arindrarto@gmail.com">w.arindrarto@gmail.com</a>> wrote:<br>
<br>
> Hi Tiago,<br>
><br>
> Congratulations on publishing the book! +1 as well for using notebooks<br>
> and putting them on GitHub (and using many of the up-and-coming<br>
> libraries ~ I see e.g. numba and spark there :) ).<br>
><br>
> One small note, apparently the direct links to the other notebooks in<br>
> the Welcome.ipynb notebook is not working properly in the<br>
> GitHub-rendered page. Looks like this is something from GitHub, though<br>
> (i.e. the way they render notebook links in notebooks). Anyway, just<br>
> in case you haven't noticed :).<br>
><br>
> Cheers,<br>
><br>
> On Wed, Jul 8, 2015 at 8:02 PM, Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>> wrote:<br>
> > Wow, nice going, Tiago. Will buy!<br>
> ><br>
> > On Tue, Jul 7, 2015 at 6:26 AM, Tiago Antao <<a href="mailto:tra@popgen.net">tra@popgen.net</a>> wrote:<br>
> >><br>
> >> Dear all,<br>
> >><br>
> >><br>
> >> I would like to announce "Bioinformatics with Python Cookbook" which I<br>
> >> authored. As you might imagine Biopython is discussed heavily in the<br>
> >> book.<br>
> >><br>
> >> This book is slightly different from the standard books on<br>
> >> Bioinformatics and Python. It is not about teaching Bioinformatics<br>
> >> algorithms, but about solving practical day-to-day problems with<br>
> >> Python, for example:<br>
> >><br>
> >> Next-Generation Sequencing: FASTQ, BAM and VCF processing. Along with<br>
> >> filtering of datasets.<br>
> >><br>
> >> Genomics: processing reference genomes of both high-quality references<br>
> >> of model species and low-quality non-model species. Also discussed are<br>
> >> genome annotations and gene ontologies.<br>
> >><br>
> >> Population Genetics: doing PCA, Admixture/Structure, computing FSTs, ...<br>
> >><br>
> >> Genome simulation: mostly forward-time simulations, but also a bit of<br>
> >> coalescent<br>
> >><br>
> >> Phylogenetics: tree reconstruction and tree drawing<br>
> >><br>
> >> Proteins: PDB processing and visualization.<br>
> >><br>
> >> Other topics like processing map data, GBIF, interfacing with<br>
> >> Cytoscape, accessing lots of online databases, ...<br>
> >><br>
> >> There is a bit on interacting with R/Bioconductor via Python.<br>
> >><br>
> >> Finally we discuss high-performance in Python: faster algorithms,<br>
> >> clusters, Numba and Cython. Also related technologies like Docker<br>
> >><br>
> >> The book discusses the usual Python Libraries in the field: Biopython,<br>
> >> PyVCF, Pysam, simuPOP, DendroPy, Pymol and also scientific libraries<br>
> >> like NumPy, SciPy, matplotlib and scikit-learn.<br>
> >><br>
> >> The code is fully available for free at github<br>
> >><br>
> >><br>
> <a href="https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb" rel="noreferrer" target="_blank">https://github.com/tiagoantao/bioinf-python/blob/master/notebooks/Welcome.ipynb</a><br>
> >><br>
> >> I am keen on maintaining the book code, so if you find any issues<br>
> >> please do contact me.<br>
> >><br>
> >> The book is available in the usual places (Amazon, etc.) in paperback<br>
> >> and e-book format. The web page of the book is<br>
> >><br>
> >><br>
> <a href="https://www.packtpub.com/application-development/bioinformatics-python-cookbook" rel="noreferrer" target="_blank">https://www.packtpub.com/application-development/bioinformatics-python-cookbook</a><br>
> >><br>
> >> Regards,<br>
> >> Tiago<br>
> >> _______________________________________________<br>
> >> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> >> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Iddo Friedberg<br>
> > <a href="http://iddo-friedberg.net/contact.html" rel="noreferrer" target="_blank">http://iddo-friedberg.net/contact.html</a><br>
> > ++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>
> > ++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>
> > .>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>
> >>>----.<--.>++++++.<<<<------------------------------------.<br>
> ><br>
> > _______________________________________________<br>
> > Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> > <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
> _______________________________________________<br>
> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/08f11293/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/08f11293/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 8 Jul 2015 23:29:01 -0400<br>
From: Joshua Klein <<a href="mailto:mobiusklein@gmail.com">mobiusklein@gmail.com</a>><br>
To: Zach Gayk <<a href="mailto:zgayk@nmu.edu">zgayk@nmu.edu</a>><br>
Cc: <a href="mailto:biopython@mailman.open-bio.org">biopython@mailman.open-bio.org</a><br>
Subject: Re: [Biopython] Entrez EFetch Options<br>
Message-ID:<br>
<<a href="mailto:CAFZWoGbwDtfzFe02p3qtAyVEjBdSo-oLTzOaOqRkeTuCqKJqkA@mail.gmail.com">CAFZWoGbwDtfzFe02p3qtAyVEjBdSo-oLTzOaOqRkeTuCqKJqkA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
If you store your list of identifiers in a file given by the variable<br>
'file_path', with one identifier per line, you can use:<br>
<br>
ids_to_fetch = ",".join(open(file_path))<br>
<br>
This code will open the file, and use the default iteration behavior for<br>
file objects to yield a line at a time to the join method of the string<br>
",". This will create a long string of comma-separated identifiers to use<br>
in your efetch call.<br>
<br>
On Wed, Jul 8, 2015 at 9:12 PM, Zach Gayk <<a href="mailto:zgayk@nmu.edu">zgayk@nmu.edu</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I would like to use the following code from the biopython tutorial to<br>
> retrieve gi numbers for a number of sequences that matched to scaffolds on<br>
> a genome assembly:<br>
><br>
> import os<br>
> os.chdir('/Users/zachgayk/Desktop/GAVIABioinformatics/')<br>
> from Bio import Entrez # this is the most likely script modified<br>
> from Bio import SeqIO<br>
> Entrez.email = "<a href="mailto:zgayk@nmu.edu">zgayk@nmu.edu</a>"<br>
> handle = Entrez.efetch(db="nucleotide", rettype="gb", retmode="text", \<br>
> id="gi|50254217|gb|`, gi|50254217|gb|AY567890.1|,<br>
> gi|559028|gb|L33375.1|GVSMTDGI,<br>
> gi|559028|gb|L33375.1|GVSMTDGI")<br>
> for seq_record in SeqIO.parse(handle, "gb"):<br>
> print seq_record.description[:100] + "..." # the :100 specifies no.<br>
> characters and "..." says this comes after specified character limit<br>
> handle.close()<br>
><br>
> The problem, however, is that there are a large number of gi numbers I<br>
> wish to retrieve, and so there are simply too many to manually enter into<br>
> the id ="" field. What I would like to do is specify a file containing all<br>
> of the needed gi numbers in a list and then have the code parse all of<br>
> them. I haven't been able to figure out how to do this yet, and if anyone<br>
> has any ideas they would be very much appreciated.<br>
><br>
> Thank you,<br>
> Zach Gayk<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/f83d063f/attachment.html" rel="noreferrer" target="_blank">http://mailman.open-bio.org/pipermail/biopython/attachments/20150708/f83d063f/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
<a href="http://mailman.open-bio.org/mailman/listinfo/biopython" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
<br>
End of Biopython Digest, Vol 151, Issue 4<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="garamond, serif" size="2">______O_________oO________oO______o_______oO__<br>Björn Johansson<br>Assistant Professor<br>Departament of Biology<br>University of Minho<br>Campus de Gualtar<br>4710-057 Braga<br>PORTUGAL<br><a href="http://www.bio.uminho.pt" target="_blank">www.bio.uminho.pt</a><br><a href="https://profiles.google.com/bjornjobb" target="_blank">Google profile</a></font><div><font face="garamond, serif" size="2"><a href="http://scholar.google.com/citations?user=7AiEuJ4AAAAJ" target="_blank">Google Scholar Profile</a><br>my <a href="https://sites.google.com/site/metabolicengineeringgroup/" target="_blank">group</a><br>Office (direct) +351-253 601517 | (PT) mob. +351-967 147 704 | (SWE) mob. +46 739 792 968<br>Dept of Biology (secr) +351-253 60 4310 | fax +351-253 678980</font></div></div></div>
</div>