You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
I just used the code but still got error with python 2.6 version:pmt0512– pmt05122010年09月21日 06:01:53 +00:00Commented Sep 21, 2010 at 6:01
-
>>> import readFasta as b >>> b.readFasta('afile.txt') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "readFasta.py", line 37, in readFasta IndexError: list index out of rangepmt0512– pmt05122010年09月21日 06:02:56 +00:00Commented Sep 21, 2010 at 6:02
-
@pmt0512. if you put it in a file by itself, that would help. I don't know what line the code I gave you starts at in that file. It should be in a file nine lines long for reference. As it stands though, there's no place in my code (AKAIK) that could yield an index error.aaronasterling– aaronasterling2010年09月21日 06:10:17 +00:00Commented Sep 21, 2010 at 6:10
-
one atctac two gggaccttgg three gacattacpmt0512– pmt05122010年09月21日 06:14:25 +00:00Commented Sep 21, 2010 at 6:14
-
AH, I dont know how to edit the file in comment to make it look exactly, but it contain 3 lines, first line will be one, tab, atctac, the 2nd line will be two, tab, ggaccttgg, and 3rd line is three, tab, gacattac. I just looking to make the function returns when it read this file as the dict that the assignment give as example. Thankspmt0512– pmt05122010年09月21日 06:16:14 +00:00Commented Sep 21, 2010 at 6:16
lang-py