Reshape the MSstats results file from long to wide format
Source:R/MSstats_functions.R
artmsResultsWide.RdConverts the normal MSStats results.txt file into "wide" format where each row represents a unique protein's results, and each column represents the comparison made by MSStats. The fold change and p-value of each comparison will be its own column.
Usage
artmsResultsWide(
results_msstats,
output_file = NULL,
select_pvalues = c("adjpvalue", "pvalue"),
species,
verbose = TRUE
)Arguments
- results_msstats
(char) Input file name and location (MSstats
results.txtfile)- output_file
(char) Output file name and location (e.g.
results-wide.txt). IfNULL(default) returns an R object (data.frame)- select_pvalues
(char) Either
pvalueoradjpvalue(default)
- species
(char) Specie name for annotation purposes. Check
?artmsMapUniprot2Entrezto find out more about the supported species (e.gspecies = "human")- verbose
(logical)
TRUE(default) shows function messages