Re: [Tutor] second if

2014-02-10 Thread Danny Yoo
By the way, if you are trying to write your own FASTA parser, please reconsider. A good FASTA parser has been written by the folks at BioPython.org. Use that one unless you really know what you're doing. See: http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec12 for example usage. If

Re: [Tutor] second if

2014-02-10 Thread David Palao
I guess the replies by Alan and Peter precisely answer to your question? Best 2014-02-10 12:46 GMT+01:00 rahmad akbar : > David, > > thanks for your reply. i cant figure out why the if at that point and what > is the 'if' try to accompolish > > > On Mon, Feb 10, 2014 at 11:52 AM, David Palao > w

Re: [Tutor] second if

2014-02-10 Thread Alan Gauld
On 07/02/14 16:14, rahmad akbar wrote: he guys, i am trying to understand this code: i understand the first if statement (if line.startswith..) in read_fasta function but couldnt understand the next one(if index >=...). thanks in advance!! I'm not sure what you don't understand about it. But so

Re: [Tutor] second if

2014-02-10 Thread Peter Otten
rahmad akbar wrote: > he guys, i am trying to understand this code: i understand the first if > statement (if line.startswith..) in read_fasta function but couldnt > understand the next one(if index >=...). thanks in advance!! Every time a line starts with a ">" sign the current Fasta instance is

Re: [Tutor] second if

2014-02-10 Thread David Palao
Also, could you explain better what is your doubt? You don't understand what "index >= 1" means, or why this "if" at this point, or anything else? Best 2014-02-07 17:14 GMT+01:00 rahmad akbar : > he guys, i am trying to understand this code: i understand the first if > statement (if line.startswi

Re: [Tutor] second if

2014-02-09 Thread Dave Angel
rahmad akbar Wrote in message: Between invisible colors and a tiny font, your message is totally incomprehensible to me. This is a text list, please post in text, not html. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change