aboutsummaryrefslogtreecommitdiff
path: root/scripts/import_to_arvados.py
blob: 78cd13dd55ce756fd6f931f137e69d855f44c7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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]])