Skip to content

Commit

Permalink
handle missing neoprep concentration
Browse files Browse the repository at this point in the history
  • Loading branch information
Galithil committed Jan 30, 2017
1 parent d2aa88b commit dcc3317
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions LIMS2DB/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,14 @@ def get_library_preps(self, sample):
self.log.info("Did not find a libprep caliper image for sample {}".format(sample.name))
# handling neoprep
if "NeoPrep" in agrlibval.type.displayname:
self.obj['samples'][sample.name]['library_prep'][prepname]['library_validation'][agrlibval.luid]['conc_units'] = "nM"
self.obj['samples'][sample.name]['library_prep'][prepname]['library_validation'][agrlibval.luid]['concentration'] = inp_artifact.udf_dict['Normalized conc. (nM)']
try:
self.obj['samples'][sample.name]['library_prep'][prepname]['library_validation'][agrlibval.luid]['concentration'] = inp_artifact.udf_dict['Normalized conc. (nM)']
self.obj['samples'][sample.name]['library_prep'][prepname]['library_validation'][agrlibval.luid]['conc_units'] = "nM"
except KeyError:
#The first neoprep projects did not go that well and have no concentration.
pass


# get output resultfile named like the sample of a Neoprep QC
query = "select art.* from artifact art \
inner join artifact_sample_map asm on art.artifactid=asm.artifactid \
Expand Down

0 comments on commit dcc3317

Please sign in to comment.