Skip to content
Snippets Groups Projects
Commit bb113d0e authored by Natasha Pavlovikj's avatar Natasha Pavlovikj
Browse files

Modify chip-meta-import to first try and set the genome type based on the...

Modify chip-meta-import to first try and set the genome type based on the sample file information instead of the experiment
parent 12fbb5bc
No related branches found
No related tags found
1 merge request!36Modify chip-meta-import to first try and set the genome type based on the sample
......@@ -68,8 +68,8 @@ if not args.quiet:
for i, document in enumerate(cursor):
for f in document["files"]:
doc = {}
if ("assembly" in document and len(document["assembly"]) > 0) or "assembly" in f:
assembly = document["assembly"][0] if ("assembly" in document and len(document["assembly"]) > 0) else f["assembly"]
if "assembly" in f or ("assembly" in document and len(document["assembly"]) > 0):
assembly = f["assembly"] if "assembly" in f else document["assembly"][0]
if "accession" in f:
doc["experiment_id"] = document["uuid"]
doc["organism"] = organism[assembly[:2].lower()]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment