Skip to content

Commit

Permalink
little change
Browse files Browse the repository at this point in the history
  • Loading branch information
zprobot committed Nov 29, 2024
1 parent da0650d commit 28d8eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibaqpy/bin/peptides2protein.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def get_average_nr_peptides_unique_bygroup(pdrow: Series) -> Series:
return pdrow.NormIntensity / map_size[pdrow.name] / (summ / len(proteins))
# If there is no protein in the group, return np nan
return np.nan # type: ignore

def get_protein_group_mw(group: str) -> float:
mw_list = [mw_dict[i] for i in group.split(";")]
return sum(mw_list)

if peptides is None or fasta is None:
raise ValueError("Fasta and peptides files are required")

Expand Down

0 comments on commit 28d8eec

Please sign in to comment.