def microbAssayPreps(self): """ Return an iterator of the MicrobiomeAssayPreps prepared from this sample. """ self.logger.debug("In microbAssayPreps().") for doc in self._dep_docs(): if doc['node_type'] == "microb_assay_prep": yield MicrobiomeAssayPrep.load_microassayprep(doc)
def preps(self): """ Return an iterator of all the preps taken from this sample. """ self.logger.debug("In preps().") for doc in self._dep_docs(): if doc['node_type'] == "16s_dna_prep": yield SixteenSDnaPrep.load_sixteenSDnaPrep(doc) elif doc['node_type'] == "wgs_dna_prep": yield WgsDnaPrep.load_wgsDnaPrep(doc) elif doc['node_type'] == "host_seq_prep": yield HostSeqPrep.load_host_seq_prep(doc) elif doc['node_type'] == "microb_assay_prep": yield MicrobiomeAssayPrep.load_microassayprep(doc) elif doc['node_type'] == "host_assay_prep": yield HostAssayPrep.load_host_assay_prep(doc)