Skip to content

Commit 3ed95ce

Browse files
committed
fix docs
1 parent 9fc5b0f commit 3ed95ce

24 files changed

Lines changed: 51 additions & 44 deletions

R/converters_MaxQtoMSstatsTMTFormat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @param which.proteinid Use 'Proteins' (default) column for protein name. 'Leading.proteins' or 'Leading.razor.proteins' or 'Gene.names' can be used instead to get the protein ID with single protein. However, those can potentially have the shared peptides.
77
#' @param rmProt_Only.identified.by.site TRUE will remove proteins with '+' in 'Only.identified.by.site' column from proteinGroups.txt, which was identified only by a modification site. FALSE is the default.
88
#' @param rmPSM_withfewMea_withinRun TRUE (default) will remove the features that have 1 or 2 measurements within each Run.
9-
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Defaut is FALSE.
9+
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Default is FALSE.
1010
#' @param ... additional parameters to `data.table::fread`.
1111
#' @inheritParams .sharedParametersAmongConverters
1212
#'

R/converters_OpenMStoMSstatsTMTFormat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Generate MSstatsTMT required input format for OpenMS output
22
#' @param input MSstatsTMT report from OpenMS
33
#' @param rmPSM_withfewMea_withinRun TRUE (default) will remove the features that have 1 or 2 measurements within each Run.
4-
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Defaut is FALSE.
4+
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Default is FALSE.
55
#' @param summaryforMultiplePSMs sum(default) or max - when there are multiple measurements for certain feature in certain run, select the feature with the largest summation or maximal value.
66
#' @param ... additional parameters to `data.table::fread`.
77
#' @inheritParams .sharedParametersAmongConverters

R/converters_PhilosophertoMSstatsTMTFormat.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' The probability is confidence score determined by PeptideProphet and higher values indicate greater confidence.
1414
#' @param rmPSM_withfewMea_withinRun TRUE (default) will remove the features that have 1 or 2 measurements within each Run.
1515
#' @param rmPeptide_OxidationM TRUE (default) will remove the peptides including oxidation (M) sequence.
16-
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Defaut is FALSE.
16+
#' @param rmProtein_with1Feature TRUE will remove the proteins which have only 1 peptide and charge. Default is FALSE.
1717
#' @param ... additional parameters to `data.table::fread`.
1818
#' @inheritParams .sharedParametersAmongConverters
1919
#'
@@ -102,7 +102,9 @@ PhilosophertoMSstatsTMTFormat = function(
102102

103103

104104
#' Convert Philosopher parameters to consistent format
105-
#' @inheritParams PhilosophertoMSstatsTMTFormat
105+
#' @inheritParams PhilosophertoMSstatsTMTFormat
106+
#' @param path character. Path to a file or directory containing msstats.csv output(s) from Philosopher. Used when \code{input} is NULL.
107+
#' @param folder logical. If TRUE, \code{path} is treated as a directory and all msstats files within it are read. If FALSE, \code{path} is treated as a single file path.
106108
#' @keywords internal
107109
.getPhilosopherInput = function(input, path, folder) {
108110
if (!is.null(input)) {

R/utils_documentation.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' @param removeFewMeasurements TRUE (default) will remove the features that have 1 or 2 measurements across runs.
66
#' @param useUniquePeptide TRUE (default) removes peptides that are assigned for more than one proteins.
77
#' We assume to use unique peptide for each protein.
8-
#' @param summaryforMultipleRows max(default) or sum - when there are multiple measurements for certain feature and certain run, use highest or sum of multiple intensities.
8+
#' @param summaryforMultipleRows max or sum - when there are multiple measurements for certain feature and certain run, use highest or sum of multiple intensities. Default is max for label-free converters and sum for TMT converters.
99
#' @param removeProtein_with1Feature TRUE will remove the proteins which have only 1 feature, which is the combination of peptide, precursor charge, fragment and charge. FALSE is default.
1010
#' @param removeProtein_with1Peptide TRUE will remove the proteins which have only 1 peptide and charge. FALSE is default.
1111
#' @param removeOxidationMpeptides TRUE will remove the peptides including 'oxidation (M)' in modification. FALSE is default.
@@ -14,7 +14,7 @@
1414
#' will be saved to a file.
1515
#' @param append logical. If TRUE, information about data processing will be added
1616
#' to an existing log file.
17-
#' @param verbose logical. If TRUE, information about data processing wil be printed
17+
#' @param verbose logical. If TRUE, information about data processing will be printed
1818
#' to the console.
1919
#' @param log_file_path character. Path to a file to which information about
2020
#' data processing will be saved.

inst/tinytest/test_converters_PDtoMSstatsTMTFormat.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ annotation.pd = data.table::fread(system.file("tinytest/raw_data/PDTMT/pd_annota
2424
package = "MSstatsConvert"))
2525

2626
expect_error(PDtoMSstatsTMTFormat(input = pd_raw[, !colnames(pd_raw) == "Protein.Accessions"], # missing columns in input
27-
annotation = annot))
27+
annotation = annot, use_log_file = FALSE))
2828

2929
expect_error(PDtoMSstatsTMTFormat(input = pd_raw,
30-
annotation = annot[, !colnames(annot) == "Condition"])) # missing columns in annotation
30+
annotation = annot[, !colnames(annot) == "Condition"], # missing columns in annotation
31+
use_log_file = FALSE))
3132

3233
# Verify output intensities are present in input
3334
intensity_cols = grep("^Abundance", colnames(pd_raw), value = TRUE)

man/DIANNtoMSstatsFormat.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/DIAUmpiretoMSstatsFormat.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/FragPipetoMSstatsFormat.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MaxQtoMSstatsFormat.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MaxQtoMSstatsTMTFormat.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)