-
Notifications
You must be signed in to change notification settings - Fork 37
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
Saving IndexError: list index out of range
#155
Comments
Hi, I am geeting same error when running
|
I've also run into this exact same issue. Has their been any resolution on this front by the devs or others who ran into this problem? |
I was also having this issue and was able to solve it. To do this, I first had to look at the surrounding code for this error: Transpose the gene metadata I realized that this IndexError was referring to the fact that the counter i was increasing beyond the length of self.genes.values() in the list comprehension: [v[i] for v in self.genes.values()]. Since the counter i is counting through self.gene_metadata_attributes, that meant that the self.gene_metadata_attributes was longer than each thing (v) in self.genes.values(). Here, gene_metadata_attributes is a list of the metadata attribute titles and self.genes.values() is a list of lists with each nested list holding values corresponding to each metadata attribute for that gene. Therefore, the nested lists are each supposed to be the same length as the gene_metadata_attributes list. Basically, this IndexError is because there are more metadata attribute titles saved in self.gene_metadata_attributes than actual metadata saved in self.genes.values(). Personally, when I inspected self.gene_metadata_attributes list, I realized it still had the title for the VegasID, which was being called from the gencode.vM23.metadata.tab. Earlier, I had removed the code that added the VegasIDs themselves to the gencode.vM23.primary_assembly.annotation.gtf since BioMart does not provide these IDs anymore. However, it seems I had not removed this other reference to VegasIDs in the code. To fix my error, I had to go back to the mouse_build.py file on my computer and remove where the "VegasID" attribute was being added to the gencode.vM23.metadata.tab on line 71. In general, solve this issue by making sure you are adding the same number of metadata values to the gencode.vM23.primary_assembly.annotation.gtf file as you are attribute names to the gencode.vM23.metadata.tab. |
Here are my command and log contents running
loompy fromfq
. It's stopped and I have no idea how to deal with that. I appreciate your help in this matter.The text was updated successfully, but these errors were encountered: