Skip to content

Commit

Permalink
full example added
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Aug 16, 2024
1 parent 3b41694 commit 3410e09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quantmsutils/features/snr.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def spectrum2feature(ctx, ms_path: str, idxml: str, output: str) -> None:
# Add quantms:SNR as a feature
search_parameters = protein_ids[0].getSearchParameters()
features = search_parameters.getMetaValue("extra_features")
extra_features = features + ",quantms:SNR,quantms:SpectralEntropy,quantms:FracTICinTop10Peaks,quantms:WeightedStdMz"
extra_features = (
features
+ ",quantms:SNR,quantms:SpectralEntropy,quantms:FracTICinTop10Peaks,quantms:WeightedStdMz"
)
search_parameters.setMetaValue("extra_features", extra_features)
protein_ids[0].setSearchParameters(search_parameters)

Expand Down

0 comments on commit 3410e09

Please sign in to comment.