@@ -417,15 +417,13 @@ setGeneric("chromPeakData<-", function(object, value)
417
417
# ' spectra for one chromatographic peak (or a `Spectra` of length 0 if no
418
418
# ' spectrum was found for the respective chromatographic peak).
419
419
# '
420
- # ' Parameters `addColumnsChromPeaks ` allow the user to add specific metadata
420
+ # ' Parameters `chromPeakColumns ` allow the user to add specific metadata
421
421
# ' columns from the chromatographic peaks (`chromPeaks`) to the returned
422
422
# ' spectra object. This can be useful to retain information such as retention
423
423
# ' time (`rt`), m/z (`mz`). The columns will be named as they is written in the
424
- # ' `chromPeaks` object with a prefix that is defined by the parameter
425
- # ' `addColumnsChromPeaksPrefix`. The *peak ID* (i.e., the row name of the
426
- # ' peak in the `chromPeaks` matrix) is always added to the spectra object as
427
- # ' metadata column `paste0(addColumnsChromPeaksPrefix,id)`, by default it will
428
- # ' be `"chrom_peak_id"`.
424
+ # ' `chromPeaks` object with the prefix `"chrom_peak_"`. The *peak ID*
425
+ # ' (i.e., the row name of the peak in the `chromPeaks` matrix) is always added
426
+ # ' to the spectra object as a metadata column named `"chrom_peak_id"`.
429
427
# '
430
428
# ' See also the *LC-MS/MS data analysis* vignette for more details and examples.
431
429
# '
@@ -460,15 +458,10 @@ setGeneric("chromPeakData<-", function(object, value)
460
458
# ' @param return.type `character(1)` defining the type of result object that
461
459
# ' should be returned.
462
460
# '
463
- # ' @param addColumnsChromPeaks `character` vector with the names of the columns
461
+ # ' @param chromPeakColumns `character` vector with the names of the columns
464
462
# ' from `chromPeaks` that should be added to the returned spectra object.
465
463
# ' The columns will be named as they are written in the `chromPeaks` object
466
- # ' with a prefix that is defined by the parameter
467
- # ' `addColumnsChromPeaksPrefix`. Defaults to `c("mz", "rt")`.
468
- # '
469
- # ' @param addColumnsChromPeaksPrefix `character(1)` defining the prefix that
470
- # ' should be used for the columns from `chromPeaks` that are added to the
471
- # ' returned spectra object. Defaults to `"chrom_peak_"`.
464
+ # ' with a prefix `"chrom_peak_"`. Defaults to `c("mz", "rt")`.
472
465
# '
473
466
# ' @param BPPARAM parallel processing setup. Defaults to [bpparam()].
474
467
# '
@@ -517,7 +510,7 @@ setGeneric("chromPeakData<-", function(object, value)
517
510
# ' ms2_sps <- chromPeakSpectra(dda)
518
511
# ' ms2_sps
519
512
# '
520
- # ' ## spectra variable *peak_id * contain the row names of the peaks in the
513
+ # ' ## spectra variable *chrom_peak_id * contain the row names of the peaks in the
521
514
# ' ## chromPeak matrix and allow thus to map chromatographic peaks to the
522
515
# ' ## returned MS2 spectra
523
516
# ' ms2_sps$chrom_peak_id
@@ -817,23 +810,20 @@ setGeneric("featureDefinitions<-", function(object, value)
817
810
# ' spectra per feature).
818
811
# '
819
812
# ' The information from `featureDefinitions` for each feature can be included
820
- # ' in the returned [Spectra()] object using the `addColumnsFeatures ` parameter.
813
+ # ' in the returned [Spectra()] object using the `featureColumns ` parameter.
821
814
# ' This is useful for retaining details such as the median retention time (`rtmed`)
822
815
# ' or median m/z (`mzmed`). The columns will retain their names as specified
823
- # ' in the `featureDefinitions` object, prefixed by the value of the
824
- # ' `addColumnsFeaturesPrefix` parameter. Additionally, the *feature ID*
825
- # ' (i.e., the row name of the feature in the `featureDefinitions` data.frame)
826
- # ' is always added as a metadata column with the name
827
- # ' `paste0(addColumnsFeaturesPrefix, "id")`, which defaults to `"feature_id"`.
816
+ # ' in the `featureDefinitions` object, prefixed by `"feature_"`
817
+ # ' (e.g., `"feature_mzmed"`). Additionally, the *feature ID* (i.e., the row
818
+ # ' name of the feature in the `featureDefinitions` data.frame) is always added
819
+ # ' as a metadata column named `"feature_id"`.
828
820
# '
829
821
# ' See also [chromPeakSpectra()], as it supports a similar parameter for
830
822
# ' including columns from the chromatographic peaks in the returned spectra object.
831
823
# ' These parameters can be used in combination to include information from both
832
824
# ' the chromatographic peaks and the features in the returned [Spectra()].
833
825
# ' The *peak ID* (i.e., the row name of the peak in the `chromPeaks` matrix)
834
- # ' is added as a metadata column with the name
835
- # ' `paste0(addColumnsChromPeaksPrefix, "id")`, which defaults to
836
- # ' `"chrom_peak_id"`.
826
+ # ' is added as a metadata column named `"chrom_peak_id"`.
837
827
# '
838
828
# ' @param object [XcmsExperiment] or [XCMSnExp] object with feature defitions.
839
829
# '
@@ -846,15 +836,11 @@ setGeneric("featureDefinitions<-", function(object, value)
846
836
# ' `featureDefinitions(x)`). This parameter overrides `skipFilled` and is
847
837
# ' only supported for `return.type` being either `"Spectra"` or `"List"`.
848
838
# '
849
- # ' @param addColumnsFeatures `character` vector with the names of the columns
839
+ # ' @param featureColumns `character` vector with the names of the columns
850
840
# ' from `featureDefinitions` that should be added to the returned spectra
851
841
# ' object. The columns will be named as they are written in the
852
- # ' `featureDefinitions` object with a prefix that is defined by the parameter
853
- # ' `addColumnsFeaturesPrefix`. Defaults to `c("mzmed", "rtmed")`.
854
- # '
855
- # ' @param addColumnsFeaturesPrefix `character(1)` defining the prefix that
856
- # ' should be used for the columns from `featureDefinitions` that are added
857
- # ' to the returned spectra object. Defaults to `"feature_"`.
842
+ # ' `featureDefinitions` object with the prefix `"feature_`.
843
+ # ' Defaults to `c("mzmed", "rtmed")`.
858
844
# '
859
845
# ' @param ... additional arguments to be passed along to [chromPeakSpectra()],
860
846
# ' such as `method`.
@@ -866,7 +852,7 @@ setGeneric("featureDefinitions<-", function(object, value)
866
852
# ' the order and the length matches parameter `features` (or if no `features`
867
853
# ' is defined the order of the features in `featureDefinitions(object)`).
868
854
# '
869
- # ' Spectra variables `"peak_id "` and `"feature_id"` define to which
855
+ # ' Spectra variables `"chrom_peak_id "` and `"feature_id"` define to which
870
856
# ' chromatographic peak or feature each individual spectrum is associated
871
857
# ' with.
872
858
# '
0 commit comments