Skip to content
Snippets Groups Projects
Commit 17a8dd54 authored by Adam Caprez's avatar Adam Caprez
Browse files

Merge branch 'sample-genome-assembly-naming' into 'master'

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

See merge request !36
parents 12fbb5bc bb113d0e
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