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

IndexError: list out of range #14

Closed
Kata-Pa opened this issue Jun 21, 2019 · 11 comments
Closed

IndexError: list out of range #14

Kata-Pa opened this issue Jun 21, 2019 · 11 comments

Comments

@Kata-Pa
Copy link

Kata-Pa commented Jun 21, 2019

Hello,

I just tried your tool, which looks quite useful, and everything runned fine until I got the following error:
File "/home/katerina87/miniconda3/bin/get_organelle_from_reads.py", line 3482, in main
expected_maximum_size=options.expected_max_size[go_t],
IndexError: list index out of range

The command I run was

get_organelle_from_reads.py -1 VM3-16_S1_R1.pick.fastq -2 VM3-16_S1_R2.pick.fastq -s Chloroplast.pick.fasta -o GetO_S1_assembly -F other_pt

The reference fasta I am using is from the same species.

Any help or hint on the error would be very helpful.
Thank you!

@Kinggerm
Copy link
Owner

Sorry for the late reply and the inconvenience caused by this issue.
Please see #13 for a temporary solution.
Alternatively, update to 1.6.2 (on the way).

Cheers!

@Kinggerm
Copy link
Owner

Kinggerm commented Jun 22, 2019

1.6.2 released. You can now either use the removing dep way or update GetOrganelle to solve this problem.

@Kinggerm Kinggerm reopened this Jun 22, 2019
@Kata-Pa
Copy link
Author

Kata-Pa commented Jun 24, 2019

Ok will try the update, thank you for the fast reply :)

@Kata-Pa
Copy link
Author

Kata-Pa commented Jun 24, 2019

So I updated but I still get the same error. I also noticed that the script is running from the bin in miniconda while I had done a pip3 install. I rerun using the script in my pip installed folder but still get the same error. So maybe conda and pip conflict is not the problem? Also deleted the ncbi-blast folder and reinstall, same error.
Could it be a problem of my input then?

@Kinggerm
Copy link
Owner

Could be the conflict.
Can you show me the complete log file from which I can understand the environment you are using?
I don't think it's the problem with any of your input.

@Kata-Pa
Copy link
Author

Kata-Pa commented Jun 24, 2019

get_org.log.txt

Here it is

@Kinggerm
Copy link
Owner

Sorry, my fault!!!! Eyes spent ...
It should not be the same issue with #13. I would look into this right now and get back to you soon.

@Kinggerm
Copy link
Owner

Kinggerm commented Jun 24, 2019

Thank you very much for pointing out this bug! I got it. I missed the other_pt mode in a few code lines and barely tested it. It is interesting that you are using GetOrganelle to assemble plastomes of non-embryophytes.

Fixed now! Please update GetOrganelle, again.
BTW, You can add "--continue" to the commands to quickly resume the previous run. Please let me know what you get.

@Kinggerm
Copy link
Owner

It seems that you did not get many original reads but with extremely high pt percentage. Was it purified DNA or something?

@Kata-Pa
Copy link
Author

Kata-Pa commented Jun 24, 2019

Thank you Jianjun!
I need to assemble the chloroplast of a diatom (phytoplankton). The genome is already known, so I mapped the raw reads and extracted only the ones matching to the chloroplast contig. Now will use your tool to assemble the chloroplast for the different strains I have. Hope it works nicely!
Thank you once more for your fast reply.

@Kinggerm
Copy link
Owner

No problem!
You can do the mapping then use GetOrganelle if it is extremely close samples and the result says complete. However, to avoid incomplete result or bias, use GetOrganelle to assemble the plastome from the original reads would be much more preferred.

@Kata-Pa Kata-Pa closed this as completed Jun 24, 2019
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

2 participants