-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(converters): Load MSstatsConvert converters when calling lib…
…rary(MSstats) (#146) * refactor(converters): Load MSstatsConvert converters when calling library(MSstats) * refactor(converters): Reexport converters to MSstats namespace
- Loading branch information
1 parent
a1760a1
commit 6df52e6
Showing
17 changed files
with
104 additions
and
1,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
.DS_Store | ||
*.log | ||
*.txt | ||
.codiumai | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' A dummy function to store shared documentation items. | ||
#' | ||
#' @import data.table | ||
#' @importFrom MSstatsConvert MSstatsImport MSstatsClean MSstatsPreprocess | ||
#' MSstatsBalancedDesign MSstatsMakeAnnotation MSstatsLogsSettings | ||
#' | ||
#' @param removeFewMeasurements TRUE (default) will remove the features that have 1 or 2 measurements across runs. | ||
#' @param useUniquePeptide TRUE (default) removes peptides that are assigned for more than one proteins. | ||
#' We assume to use unique peptide for each protein. | ||
#' @param summaryforMultipleRows max(default) or sum - when there are multiple measurements for certain feature and certain run, use highest or sum of multiple intensities. | ||
#' @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. | ||
#' @param removeProtein_with1Peptide TRUE will remove the proteins which have only 1 peptide and charge. FALSE is default. | ||
#' @param removeOxidationMpeptides TRUE will remove the peptides including 'oxidation (M)' in modification. FALSE is default. | ||
#' @param removeMpeptides TRUE will remove the peptides including 'M' sequence. FALSE is default. | ||
#' @param use_log_file logical. If TRUE, information about data processing | ||
#' will be saved to a file. | ||
#' @param append logical. If TRUE, information about data processing will be added | ||
#' to an existing log file. | ||
#' @param verbose logical. If TRUE, information about data processing wil be printed | ||
#' to the console. | ||
#' @param log_file_path character. Path to a file to which information about | ||
#' data processing will be saved. | ||
#' If not provided, such a file will be created automatically. | ||
#' If `append = TRUE`, has to be a valid path to a file. | ||
#' | ||
#' @keywords internal | ||
#' | ||
.documentFunction = function() { | ||
NULL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#' Load core packages when loading MSstats | ||
#' @noRd | ||
#' @keywords internal | ||
.onAttach = function(libname, pkgname) { | ||
# Load core packages dynamically | ||
to_load <- c("MSstatsConvert") | ||
|
||
# Attach them quietly | ||
if (length(to_load) > 0) { | ||
lapply(to_load, function(pkg) { | ||
suppressPackageStartupMessages(library(pkg, character.only = TRUE)) | ||
}) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.