knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This vignette gives an overview about importing files for downstream analysis with mpwR.
Importing the output files from each software can be easily performed with prepare_mpwR
. Please put all output files in one folder and follow the guidelines for naming the files. No other files/subfolders are allowed.
files <- prepare_mpwR(path = "Path_to_Folder_with_files")
The software output files need to be named according some simple rules.
Please use the following suffixes for the corresponding software:
Spectronaut
MaxQuant
DIA-NN
ProteomeDiscoverer
Note that the suffixes for MaxQuant and ProteomeDiscoverer can be used as is.
Please use the same prefix for your analysis and the respective software output file(s). Each analysis needs a unique identifier.
Examples:
Spectronaut
MaxQuant
DIA-NN
ProteomeDiscoverer
Subsequently, common error messages are explained and solutions are pointed out.
Error in prepare_mpwR(path = path) : Unknown file suffix detected! Please use: _evidence, _peptides, _proteinGroups, _PSMs, _Proteins, _PeptideGroups, _ProteinGroups, _Report
Solution: Check your suffixes and make sure to use the correct spelling and the correct one for the respective software.
Error in prepare_mpwR(path = path) : Wrong number of analyses detected for WorkflowA2! MaxQuant requires 3 input files. Remember: Use unique name for each analysis.
Solution: Make sure to include all output files from the respective software. MaxQuant requires 3 files, PD 4 files, DIA-NN and Spectronaut 1 file, respectively. Also use the same name (prefix) for all files.
Error in data.table::fread(input_file, ...) : File 'DIR//subfolder' is a directory. Not yet implemented.
Solution: Do not use subfolders in the directory of the output files. Put all files in a folder and use this path for prepare_mpwR.
Error in prepare_mpwR(path = path) : Please use a unique filename for each analysis.
Solution: Please use a unique name (prefix) for each respective output file(s). E.g. if you used...:
... the error message is displayed. As a solution, for example add the used software to the name:
Error in prepare_input(ordered_files[[i]][["data"]][["DIA-NN"]], software = "DIA-NN") : Not all required columns present in submitted data.
Here example for DIA-NN. Similar messages for other software tools. Please make sure to include all required columns for the used software. Details are in the vignette Requirements.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.