new user needs help!

Mike Driscoll kyosohma at gmail.com
Tue Apr 8 16:44:14 EDT 2008


On Apr 8, 3:38 pm, Steve Holden <st... at holdenweb.com> wrote:
> drjekil wrote:
> > I am totally new in biopython and its my first program.so may be i am asking
> > stupid question.
>
> New? Most questions are sensible.
>
> Let's suppose that the four lines you give below are stored in a text
> file called "/tmp/data.txt".
>
> > I am working with a text filelooks like this:
> > #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD
> > 1lghB A i 79.8 H H -24.58
> > 1lghB V i 79.6 H H -22.06
> > 1lghB H i 71.9 H H -19.94
>
> f = open("/tmp/data.txt", 'w')
>
> will open that file.


Don't do that! You will overwrite the original!


>
> You can throw the first line away with
>
> headings = f.next()


I forgot to throw away the first line in my code though...so mine has
errors too.

<snip>

>
> regards
>   Steve
> --
> Steve Holden        +1 571 484 6266   +1 800 494 3119
> Holden Web LLC              http://www.holdenweb.com/

Mike



More information about the Python-list mailing list