Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when running file : list index out of range #3

Open
mswyers opened this issue Jul 18, 2019 · 3 comments
Open

Errors when running file : list index out of range #3

mswyers opened this issue Jul 18, 2019 · 3 comments

Comments

@mswyers
Copy link

mswyers commented Jul 18, 2019

First off, the shebang is missing from the top, after adding

#usr/bin/env python

and running I've been getting an error.

I've tried running your script a few times to test the output, but haven't been able to get it to run properly.
Here is my output of running the script:

Enter your NCBI gene bank file name: ctg1.cluster001.gbk
2


Parsing started
1
Traceback (most recent call last):
  File "/home/seq/gbknuctest.py", line 128, in <module>
    ntgenbank()
  File "/home/seq/gbknuctest.py", line 50, in ntgenbank
    nm_version = (nm_and_version.split('.')[1]).strip('\n')
IndexError: list index out of range

The output file is blank besides the headers, but the .txt file generated is complete.
What i'm trying to get out of this ultimately is to have a csv containing every CDS and it's corresponding nucleotide sequence to add to an annotations summary file. While your script does much more than this, I haven't been able to find one that pulls the nucleotide sequence for every CDS in the file.

Not sure if this is due to an update in python or not, I'm currently running on python 2.7.15

Thanks in advance.

@dewshr
Copy link
Owner

dewshr commented Oct 29, 2019

are you able to run with the test example file? and if its possible you can provide me how your file looks, and I will look at it.

@mdsufz
Copy link

mdsufz commented Jun 3, 2022

Hi, the tool only writes info for the first sequence in the result file.

@dewshr
Copy link
Owner

dewshr commented Jun 3, 2022

Hi, the tool only writes info for the first sequence in the result file.

are you testing on the example provided?, if so, there is only one entry on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants