Commit 3421ed5b authored by aknecht2's avatar aknecht2
Browse files

Fixed an issue caused by replace all. ENCODE metadata uses 'experiment_id'...

Fixed an issue caused by replace all.  ENCODE metadata uses 'experiment_id' not 'experiment_accession'.  Also changed name of experiment_inputs to signal_inputs.
parent 18c92f68
......@@ -323,7 +323,7 @@ class MongoDB(object):
"$lookup": {
"from": "samples",
"localField": "uuid",
"foreignField": "experiment_accession",
"foreignField": "experiment_id",
"as": "samples"
}
},
......@@ -334,7 +334,7 @@ class MongoDB(object):
"$lookup": {
"from": "samples",
"localField": "possible_controls.uuid",
"foreignField": "experiment_accession",
"foreignField": "experiment_id",
"as": "possible_controls.samples"
}
},
......@@ -359,7 +359,7 @@ class MongoDB(object):
}
else:
valid = False
msg = "Experiment with id '%s' has %s possible control inputs, and %s possible experiment inputs.\n" % (experiment_accession, len(control_inputs), len(experiment_inputs))
msg = "Experiment with id '%s' has %s possible control inputs, and %s possible signal inputs.\n" % (experiment_accession, len(control_inputs), len(signal_inputs))
else:
valid = False
msg = "Experiment with id '%s' does not have possible_controls.\n" % (experiment_accession,)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment