Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
IndexError: list index out of range #354
I am using Pythhon v3.6.6 and Cutadapt v1.18. I used a multiple adapter fasta-file to trim unwanted sequences and noticed an error message that at first was very unclear to me and I couldn't find any related issue report on this github page.
Here is the error message:
I noticed that this error arises if the adapters in the fasta-file have no description or any kind of specification (for example lettering) after the ">"!
It would be nice if you could mention in the User guide that the adapters provided in the fasta-file for multiple adapters must have at least some kind of description. This was not stated clearly while reading through the instructions of how to use multiple adapter files (at least not to me).
PS. You can marked this issue as resolved since it is only an report of how the error message looks like for this particular case!
Thanks for reporting this! Of course the error message should be a lot more helpful than this. I’ll make sure to improve it. I have changed the FASTA parsing routine in the development version of Cutadapt and will need to check whether that same error is still present.