<div dir="ltr">Hello <br><br>I was juste browsing the source to see how parse function is implemented and I found this before the docstring<div><br></div><div><pre style="margin-top:0px;margin-bottom:1.33999rem;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(211,218,234);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow:auto;font-family:monospace,monospace;font-size:14px;padding:0.66001rem 9.5px 9.5px;line-height:28px;background-image:linear-gradient(rgb(255,255,255) 0px,rgb(255,255,255) 0.75rem,rgb(245,247,250) 0.75rem,rgb(245,247,250) 2.75rem,rgb(255,255,255) 2.75rem,rgb(255,255,255) 4rem);background-repeat:initial"><code class="" style="color:inherit;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding:0px;font-size:inherit;font-family:monospace,monospace;white-space:pre-wrap;background-color:transparent">def <span class="" style="color:rgb(38,139,210)">parse</span><span class="">(handle, format, alphabet=None)</span>:
r"""Turns a sequence file <span class="" style="color:rgb(133,153,0)">into</span> an iterator returning SeqRecords.
- handle - handle to the file, or the filename <span class="" style="color:rgb(133,153,0)">as</span> a <span class="" style="color:rgb(38,139,210)">string</span>
<span class="">(note older versions of Biopython only took a handle)</span>.
- format - lower <span class="" style="color:rgb(133,153,0)">case</span> <span class="" style="color:rgb(133,153,0)">string</span> describing the file format.
- alphabet - optional Alphabet <span class="" style="color:rgb(133,153,0)">object</span>, useful when the sequence type
cannot be automatically inferred <span class="" style="color:rgb(133,153,0)">from</span> the file <span class="" style="color:rgb(38,139,210)">itself</span>
<span class="">(e.g. format=<span class="" style="color:rgb(42,161,152)">"fasta"</span> or <span class="" style="color:rgb(42,161,152)">"tab"</span>)</span>
Typical usage, opening a file to read <span class="" style="color:rgb(133,153,0)">in</span>, and looping over the <span class="" style="color:rgb(38,139,210)">record</span><span class="">(s)</span>:</code></pre><div>there is an r before the """</div><div><br></div><div>is that a typo ?</div><div><br></div><div>Rad</div>-- <br><div class="gmail_signature"><div dir="ltr"><b>Radhouane Aniba</b><br><i>Bioinformatics Scientist</i><br><b>BC Cancer Agency, Vancouver, Canada</b></div></div>
</div></div>