Closed juettemann closed 4 years ago
@juettemann this is addressed by the same function as the other #92 . are you not using the json output and instead parsing this in shell with grep/awk?
@juettemann That doesn't pass because the prevalidation demanded everything (it was written before we required only a few). What all do you want to check in prevalidation (as in where do you want to pull those from the experiment schema) ?
@sitag I am using the json output in the script, but the testing was done manually. With regards what should go into the pre-validation, I leave that ultimately up to you, see my comment in #92 . Consistent output and avoidance of assertion errors are main main concerns.
@juettemann @dzerbino I am trying to figure out what the new required fields for 1.1 experiment, but https://github.com/IHEC/ihec-ecosystems/blob/master/schemas/json/1.1/experiment.json still has only 3 required fields and https://github.com/IHEC/ihec-ecosystems/blob/master/docs/metadata/1.1/Ihec_metadata_specification.md hasn't been updated in a long time. Not sure where the 1.1 spec is.
Can't fix the prevalidation till it's clear.
@dzerbino As far as I can see, these are the requirements for 1.1 (aka 2.0):
LIBRARY_STRATEGY EXPERIMENT_TYPE EXPERIMENT_ONTOLOGY_CURIE MOLECULE MOLECULE_ONTOLOGY_CURIE
ChIP-Seq: EXPERIMENT_TARGET_TF EXPERIMENT_TARGET_HISTONE
Removed: EXPERIMENT_ONTOLOGY_URI MOLECULE_ONTOLOGY_URI
Could you confirm / deny?
Hello everyone,
I don't think we're all on the same page. The required attributes for 1.1 (soon to be 2.0) are still lingering on a pull request: https://github.com/IHEC/ihec-ecosystems/pull/97
However, Sita did rightly point out that I had not updated the Markdown spec on my PR, which I have just corrected.
Cheers,
Daniel
Closing this issue. Error messages look good now, and discussions regarding the version can be done at the PRs.
@juettemann You can't close this yet as prevalidation for experiment-version_2.0_complete.xml is still open
@sitag Good point & catch. Do you want to keep it here, or shall I open a dedicated issue?
fixed for the xml in question. prevalidation will only check 5 core attributes required for all experiments, the two chip will be delegated to json schema
python -m version_metadata -overwrite-outfile -out:./delete_me -experiment version_metadata/examples/experiment-version_2.0_complete.xml
{
"version_metadata/examples/experiment-version_2.0_complete.xml": [
{
"IHECVersion2.0_test": {
"error_type": "__prevalidation__",
"errors": [
"missing at prevalidate : experiment_ontology_curie",
"missing at prevalidate : molecule_ontology_curie"
],
"ok": false,
"version": "1.1"
}
},
{
"IHECVersion2.0_test": {
"errors": [],
"ok": true,
"version": "1.0"
}
}
]
}
Perfect. Unless there is anything else, can you close this issue @sitag?
--- experiment-no_EXPERIMENT_ONTOLOGY_CURIE.xml Align to other error messages by removing 'missing' array
New (alternatively " is a required property" can be attached to be aligned to the json schema output):
-- experiment-no_EXPERIMENT_TYPE__EXPERIMENT_ONTOLOGY_URI.xml Return array for 1.0. If possible, remove underscores.
-- experiment-no_LIBRARY_STRATEGY.xml Assertion error. Can this be moved to prevalidation?
-- experiment-no_MOLECULE__MOLECULE_ONTOLOGY_URI.xml Align to other error messages by removing 'missing' array. See above
-- experiment-no_MOLECULEMOLECULE_ONTOLOGY_URIMOLECULE_ONTOLOGY_CURIE.xml Align to other error messages by removing 'missing' array. see above
-- experiment-only_LIBRARY_STRATEGY.xml Return array. If possible, remove underscores
New
experiment-empty_EXPERIMENT_ATTRIBUTES.xml Assertion error. Can this be moved to prevalidation?
-- experiment-no_EXPERIMENT_TYPEEXPERIMENT_ONTOLOGY_URIEXPERIMENT_ONTOLOGY_CURIE.xml Return array. If possible, remove underscores
experiment-version_2.0_complete.xml Should this not pass?