aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader
diff options
context:
space:
mode:
authorlltommy2020-04-07 19:51:49 +0200
committerlltommy2020-04-07 19:51:49 +0200
commit40df65dec296b81650987c8ee4f832b703ab8f74 (patch)
tree7c66d6c8c3e836d08cd6a9361982385e7ffa0b1c /bh20sequploader
parent9b1c125f91469074c7586a1278d89b85919e3eae (diff)
downloadbh20-seq-resource-40df65dec296b81650987c8ee4f832b703ab8f74.tar.gz
bh20-seq-resource-40df65dec296b81650987c8ee4f832b703ab8f74.tar.lz
bh20-seq-resource-40df65dec296b81650987c8ee4f832b703ab8f74.zip
adding dummy metadata qc to the project
Diffstat (limited to 'bh20sequploader')
-rw-r--r--bh20sequploader/qc_metadata.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bh20sequploader/qc_metadata.py b/bh20sequploader/qc_metadata.py
new file mode 100644
index 0000000..0632777
--- /dev/null
+++ b/bh20sequploader/qc_metadata.py
@@ -0,0 +1,13 @@
+import yamale
+
+## NOTE: this is just a DUMMY. Everything about this can and will change
+def qc_metadata(metadatafile):
+ print("Start metadata validation...")
+ schema = yamale.make_schema('../example/dummyschema.yaml')
+ data = yamale.make_data(metadatafile)
+ # Validate data against the schema. Throws a ValueError if data is invalid.
+ yamale.validate(schema, data)
+ print("...complete!")
+
+#qc_metadata("../example/metadata.yaml")
+