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 index out of range #90
Comments
Answering my own question as almost a year later I ran into the same error and found my own question (ha!) Basically the issue is that we only had one value for a particular trait, so Scoary was like "I can't correct for multiple tests since there's only one" word to the wise: remove any traits that have less than 2 (I guess? tbd) values |
I have the same error as @hollygene when using the -n option but I am not sure why that is the case @mgalardini @AdmiralenOla |
I have the same issue. Is there any solution?
|
@sydelstan sydelstan and @arunprasanna83 arunprasanna83 Does your data have any phenotype that contains only 1 value? see my above comment about multiple test correction. I think if you ensure that each phenotype category has more than 1 data point, it should be okay. Hope this helps/makes sense! |
Hi, I'm new to using scoary and am running into an issue. Here is the full error that scoary gives me:
Traceback (most recent call last): File "/home/hcm59/miniconda3/envs/scoary/bin/scoary", line 8, in <module> sys.exit(main()) File "/home/hcm59/miniconda3/envs/scoary/lib/python3.9/site-packages/scoary/methods.py", line 278, in main RES_and_GTC = Setup_results(genedic, traitsdic, args.collapse) File "/home/hcm59/miniconda3/envs/scoary/lib/python3.9/site-packages/scoary/methods.py", line 914, in Setup_results bh_c_p_v[s_p_v[len(s_p_v)-1][0]] = last_bh = s_p_v[len(s_p_v)-1][1] IndexError: list index out of range
It seems to be working prior to this, but stops here and doesn't give any output files. I looked in the methods.py script but couldn't find anything obviously wrong.
My data are output from Roary, a phenotype file, both delimited with commas, and a Newick tree file from IQTree.
I found a previous issue that was similar (#23) but it looks like their problem was that their Roary file was delimited with semicolons, but I'm 99% sure mine is commas.
Any help is appreciated! I can send example files too.
Here's the script I used:
scoary -t /path/dog_verified_host_PhenoForScoary.csv \ -g /path/gene_presence_absence_roary.csv \ -o /path \ -n /path/core_gene_alignment.aln-gb.nw \ --delimiter , \ --permute 1000 --threads 10
I'm using scoary in a conda environment that I built on a Linux server. Here are some specifications:
Thanks!!
-Holly
Update: just found out we had used Panaroo, not Roary, so I will be looking into this and seeing if I can find a solution!!
The text was updated successfully, but these errors were encountered: