File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,19 @@ def get_chain_count(molecule_type: CLUSTERING_RESIDUE_MOLECULE_TYPE) -> Tuple[in
2525
2626 Example:
2727 n_prot, n_nuc, n_ligand = get_chain_count("protein")
28- """
29- match molecule_type :
30- case "protein" :
31- return 1 , 0 , 0
32- case "rna" :
33- return 0 , 1 , 0
34- case "dna" :
35- return 0 , 1 , 0
36- case "ligand" :
37- return 0 , 0 , 1
38- case "peptide" :
39- return 1 , 0 , 0
40- case _:
41- raise ValueError (f"Unknown molecule type: { molecule_type } " )
28+ """
29+ if molecule_type == "protein" :
30+ return 1 , 0 , 0
31+ if molecule_type == "rna" :
32+ return 0 , 1 , 0
33+ if molecule_type == "dna" :
34+ return 0 , 1 , 0
35+ if molecule_type == "ligand" :
36+ return 0 , 0 , 1
37+ if molecule_type == "peptide" :
38+ return 1 , 0 , 0
39+
40+ raise ValueError (f"Unknown molecule type: { molecule_type } " )
4241
4342
4443def calculate_weight (
You can’t perform that action at this time.
0 commit comments