-
Notifications
You must be signed in to change notification settings - Fork 606
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
Stacks population summary stats limited to the last population #906
Comments
Thanks @BELKHIR - I think I need to look in to this, as I guess that each sample could have different populations.. (am I right?). Either way, I think that more of the code will need refactoring.. |
Running Stacks populations program will generate only one However in this file you can have more than one pop. if you provide a population map. file (Format is |
It was @remiolsen who wrote this module I think. Remi - any thoughts on the above? If we only ever expect to have a single populations file then we can skip the sample name entirely and just loop over the population labels as @BELKHIR suggests. The fact that the code goes to the effort of parsing the directory name to a sample name makes me suspicious though.. |
Thanks for spotting this @BELKHIR. The behaviour that I intended for when parsing the I think I was able to reproduce the error using this fake # Variant positions
# Pop ID Private Num_Indv Var StdErr P Var StdErr Obs_Het Var StdErr Obs_Hom Var StdErr Exp_Het Var StdErr Exp_Hom Var StdErr Pi Var StdErr Fis Var StdErr
nfcore_radseq 0 9.37249 18.37673 0.06836 0.75399 0.03125 0.00282 0.38860 0.11271 0.00535 0.61140 0.11271 0.00535 0.30849 0.02930 0.00273 0.69151 0.02930 0.00273 0.36485 0.05975 0.00390 -0.03231 0.16644 0.06836
nfcore_radseq_dup 0 9.37249 18.37673 0.06836 0.75399 0.03125 0.00282 0.38860 0.11271 0.00535 0.61140 0.11271 0.00535 0.30849 0.02930 0.00273 0.69151 0.02930 0.00273 0.36485 0.05975 0.00390 -0.03231 0.16644 0.06836
# All positions (variant and fixed)
# Pop ID Private Sites Variant_Sites Polymorphic_Sites %Polymorphic_Loci Num_Indv Var StdErr P Var StdErr Obs_Het Var StdErr Obs_Hom Var StdErr Exp_Het Var StdErr Exp_Hom Var StdErr Pi Var StdErr Fis Var StdErr
nfcore_radseq 0 8716958 3933 3933 0.04512 6.36527 29.57227 0.00184 0.99989 0.00004 0.00000 0.00018 0.00012 0.00000 0.99982 0.00012 0.00000 0.00014 0.00006 0.00000 0.99986 0.00006 0.00000 0.00016 0.00009 0.00000 -0.00001 0.00008 0.00184
nfcore_radseq_dup 0 8716958 3933 3933 0.04512 6.36527 29.57227 0.00184 0.99989 0.00004 0.00000 0.00018 0.00012 0.00000 0.99982 0.00012 0.00000 0.00014 0.00006 0.00000 0.99986 0.00006 0.00000 0.00016 0.00009 0.00000 -0.00001 0.00008 0.00184 |
Hi @remiolsen, Any chance you could submit a PR to fix this please? 😁 Phil |
@ewels Sure I can take a look at it |
Description of bug:
The summary stats of the stacks module return an array listing only the last population of a data sets with more than one pop.
MultiQC Error log:
File that triggers the error:
In line 259 of the file :
multiqc/modules/stacks/stacks.py
there is only one entry that is created in the out_dict. The content is iteratively replaced by values from a loop over the analysed populationsThis should be
content[0]
is the population labelBest regards
The text was updated successfully, but these errors were encountered: