aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/from_sparql.py
blob: 4610cad309e5bff36cbcb7948b57da14deaca67f (plain)
1
2
3
4
5
6
7
8
from rdflib import Graph
import sys
import subprocess
g = Graph()
g.parse(sys.argv[1], format="nt")
res = g.query(sys.argv[3])
for r in res:
    subprocess.run(["samtools", "faidx", sys.argv[2], r[0]])