def test_non_standard(self): hit = ">CVNH01000008|c1|65549-69166|-|BN1184_AH_00620|Urea_carboxylase_{ECO:0000313|EMBL:CCF11062.1}|CRH36422" with unittest_mock.patch("builtins.open", self.mock_with(hit)): proteins = core.load_reference_proteins(set(), "clusterblast") assert len(proteins) == 1 protein = proteins["CRH36422"] assert protein.name == "CRH36422" assert protein.annotations == "Urea_carboxylase_{ECO:0000313|EMBL:CCF11062.1}"
def _check_proteins_match_clusters(self, searchtype): clusters = core.load_reference_clusters(searchtype) proteins = core.load_reference_proteins(searchtype) for cluster in clusters.values(): for protein in cluster.tags: assert protein in proteins, "missing: %s" % protein