aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader/qc_metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'bh20sequploader/qc_metadata.py')
-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")
+