View source: R/readIonbotPeptides.R
readIonbotPeptides | R Documentation |
This function allows importing initial petide identification and quantification results from Ionbot
which were exported as tabulated tsv can be imported and relevant information extracted.
The final output is a list containing 3 main elements: $annot
, $raw
and optional $quant
, or returns data.frame with entire content of file if separateAnnot=FALSE
.
readIonbotPeptides(
fileName,
path = NULL,
normalizeMeth = "median",
sampleNames = NULL,
gr = NULL,
sdrf = NULL,
read0asNA = TRUE,
quantCol = "^Abundances*",
annotCol = NULL,
contamCol = "Contaminant",
refLi = NULL,
separateAnnot = TRUE,
FDRCol = list(c("^Protein.FDR.Confidence", "High"), c("^Found.in.Sample.", "High")),
plotGraph = TRUE,
suplAnnotFile = TRUE,
groupPref = list(lowNumberOfGroups = TRUE, chUnit = TRUE),
titGraph = "Ionbot",
wex = 1.6,
specPref = c(conta = "CON_|LYSC_CHICK", mainSpecies = "OS=Homo sapiens"),
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
fileName |
(character) name of file to be read |
path |
(character) path of file to be read |
normalizeMeth |
(character) normalization method, defaults to |
sampleNames |
(character) new column-names for quantification data (ProteomeDiscoverer does not automatically use file-names from spectra); this argument has priority over |
gr |
(character or factor) custom defined pattern of replicate association, will override final grouping of replicates from |
sdrf |
(character, list or data.frame) optional extraction and adding of experimenal meta-data: if character, this may be the ID at ProteomeExchange,
the second & third elements may give futher indicatations for automatic organization of groups of replicates.
Besides, the output from |
read0asNA |
(logical) decide if initial quntifications at 0 should be transformed to NA |
quantCol |
(character or integer) exact col-names, or if length=1 content of |
annotCol |
(character) column names to be read/extracted for the annotation section (default c("Accession","Description","Gene","Contaminant","Sum.PEP.Score","Coverage....","X..Peptides","X..PSMs","X..Unique.Peptides", "X..AAs","MW..kDa.") ) |
contamCol |
(character or integer, length=1) which columns should be used for contaminants marked by ProteomeDiscoverer.
If a column named |
refLi |
(character or integer) custom specify which line of data is main species, if character (eg 'mainSpe'), the column 'SpecType' in $annot will be searched for exact match of the (single) term given |
separateAnnot |
(logical) if |
FDRCol |
(list) optional indication to search for protein FDR information |
plotGraph |
(logical or integer) optional plot of type vioplot of initial and normalized data (using |
suplAnnotFile |
(logical or character) optional reading of supplemental files produced by ProteomeDiscoverer; however, if |
groupPref |
(list) additional parameters for interpreting meta-data to identify structure of groups (replicates), will be passed to |
titGraph |
(character) depreciated custom title to plot, please use 'tit' |
wex |
(integer) relative expansion factor of the violin-plot (will be passed to |
specPref |
(character or list) define characteristic text for recognizing (main) groups of species (1st for comtaminants - will be marked as 'conta', 2nd for main species- marked as 'mainSpe',
and optional following ones for supplemental tags/species - maked as 'species2','species3',...);
if list and list-element has multiple values they will be used for exact matching of accessions (ie 2nd of argument |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
Using the argument suplAnnotFile
it is possible to specify a specific file (or search for default file) to read for extracting file-names as sample-names
and other experiment realted information.
This function returns a list with $raw
(initial/raw abundance values), $quant
with final normalized quantitations, $annot
, $counts
an array with number of peptides, $quantNotes
and $notes
; or if separateAnnot=FALSE
the function returns a data.frame with annotation and quantitation only
/link[utils]{read.table}
, /link{readMaxQuantFile}
, /link{readProteomeDiscovererFile}
, /link[wrMisc]{normalizeThis}
)
path1 <- system.file("extdata", package="wrProteo")
fiIonbot <- "tinyIonbotFile1.tsv.gz"
datIobPep <- readIonbotPeptides(fiIonbot, path=path1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.