Skip to content

Commit

Permalink
Parse molecular profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Oct 11, 2024
1 parent 7e538f5 commit 0145341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hub/dataload/sources/civic/civic_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def load_data(data_folder):
print(glob.glob(os.path.join(data_folder,"variant_*.json")))
for infile in glob.glob(os.path.join(data_folder,"variant_*.json")):
logging.info(infile)
doc = json.load(open(infile))["data"]["variant"]
doc = json.load(open(infile))
if set(['error', 'status']) != set(doc.keys()):
[chrom, pos, ref, alt] = [doc['coordinates'][x] for x in ['chromosome', 'start', 'referenceBases', 'variantBases']]
variant_id = doc.pop("id")
Expand Down

0 comments on commit 0145341

Please sign in to comment.