From 80718c061d90ef4771dd0fa441091320d4fbcaad Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Wed, 9 Sep 2020 22:10:43 -0500
Subject: [PATCH] Add extractRefData.py

---
 workflow/scripts/extractRefData.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 workflow/scripts/extractRefData.py

diff --git a/workflow/scripts/extractRefData.py b/workflow/scripts/extractRefData.py
new file mode 100644
index 0000000..7c9dfa9
--- /dev/null
+++ b/workflow/scripts/extractRefData.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import argparse
+import pandas as pd
+import warnings
+warnings.simplefilter(action='ignore', category=FutureWarning)
+
+def main():
+    refQuery=pd.read_json("refQuery.json")
+    if refQuery["File_URL"].count() == 1:
+       print(refQuery["File_URL"].values[0])
+    else:
+        raise Exception("Multple references found: \n%s" %
+            refQuery["RID"])
+
+if __name__ == '__main__':
+    main()
-- 
GitLab