Skip to content

Commit 275bf95

Browse files
authored
Merge pull request #476 from OpenMS/cbielow-patch-1
fix PSM_to_features tutorial
2 parents fbdfcac + 33c7a02 commit 275bf95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/user_guide/PSM_to_features.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Use the configured `IDMapper` to link peptide IDs to the FeatureMap:
6969

7070
.. code-block:: python
7171
72-
id_mapper.annotate(feature_map, peptide_ids, protein_ids, use_centroid_rt=True, use_centroid_mz=True, spectra=None)
72+
# annotate() can optionally use the underlying raw MS data (spectra) to annotate unidentified MS/MS scans to features in the FeatureMap
73+
# We don't need this here, so we provide an empty default.
74+
spectra = oms.MSExperiment()
75+
id_mapper.annotate(feature_map, peptide_ids, protein_ids, True, True, spectra)
7376
7477
Step 5: Save the Annotated FeatureMap
7578
--------------------------------------

0 commit comments

Comments
 (0)