aboutsummaryrefslogtreecommitdiff
path: root/scripts/import_to_arvados.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/import_to_arvados.py')
-rw-r--r--scripts/import_to_arvados.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/import_to_arvados.py b/scripts/import_to_arvados.py
new file mode 100644
index 0000000..78cd13d
--- /dev/null
+++ b/scripts/import_to_arvados.py
@@ -0,0 +1,14 @@
+import os
+import subprocess
+import glob
+import sys
+
+os.chdir(os.environ["TMPDIR"])
+os.symlink(sys.argv[2], "dict_ontology_standardization")
+subprocess.run(sys.argv[1])
+
+os.chdir("fasta_and_yaml")
+fasta_files = glob.glob("*.fasta")
+
+for f in fasta_files:
+ subprocess.run(["bh20-seq-uploader", f, "%s.yaml" %f[:-6]])