Closed jdhayhurst closed 4 months ago
this is an issue
Discuss and plan in this sprint
GWAS sumstats service changes tested and merged to sandbox.
@sajo-ebi to create a ticket for the deposition side
created ticket https://github.com/EBISPOT/gwasdepo-deposition-service/issues/247 for Deposition side
Test okay with the template v1.11
curators to test
Tested with 2 sumstats-only submissions. Validation passes as long as something is entered in the analysis software column.
The error message for sumstats files with 0 p-values and nothing entered in the analysis software column is unhelpful: “Errors: test_izzy2.tsv: Summary statistics file validation failed, please run the validator on your file to see the errors (available here: https://pypi.org/project/gwas-sumstats-tools/)”
Would it be possible to give a more helpful error message for this particular scenario, eg. "Error: Analysis software must be provided in the metadata template for summary statistics containing 0 p-values."
Sure, let me see what I can do.
Inserted new error messages for zero p-values to sumstats-error collections of respective Mongo DB instances.
Tested with a sumstats-only submission - looks good to me!
Thanks, deployed to prod
I think users might find the error message confusing:
Analysis software must be provided in the metadata template for summary statistics containing 0 p-values.
would be clearer as
Analysis software must be provided in the metadata template for summary statistics containing p-values equal to zero.
@karatugo roll back changes until java side is deployed
Re-deployed v1.4.16.
Updated the error message. It's ready to deploy when Java side is.
"Analysis software" is an optional field in the study template. If a value is given, when the POST request is made to the sumstats service to register (and validate) the sumstats files, add the analysis software field per study,
analysisSoftware: <sw name>
. ByanalysisSoftware
field exists for the study, this tells the sumstats validator to allow p-values of 0, whereas by default these values are invalid.Slides from discussion are here: https://docs.google.com/presentation/d/1ccWhl1GlU5hKi9yIXwLTdswJtOUsO2gI/edit?usp=sharing&ouid=115921420372247902258&rtpof=true&sd=true