Example #1
0
    def hostAssayPreps(self):
        """
        Return an iterator of the HostAssayPreps prepared from this sample.
        """
        self.logger.debug("In hostAssayPreps().")

        for doc in self._dep_docs():
            if doc['node_type'] == "host_assay_prep":
                yield HostAssayPrep.load_host_assay_prep(doc)
Example #2
0
    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)