Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/makePeptideSet.R
This function reads GenePix results (.gpr) files and creates a peptideSet object gathering experiment information.
1 2 3 4 |
files |
A |
path |
A |
mapping.file |
A |
use.flags |
A |
rm.control.list |
A |
empty.control.list |
A |
bgCorrect.method |
A |
log |
A |
check.row.order |
A |
verbose |
A |
GenePix results files (.gpr) are read when found in either the files or path arguments. By default, the foreground and background median intensities of the "red" channels, "F635 Median" and "B635 Median", are read. The background correction specified in bgCorrect.method is passed to the backgroundCorrect method in the limma package.
The mapping.file can be either a filename or a data.frame. In any case, it should
contain at least three columns labeled "filename", "ptid" and "visit". The
filenames given here should match those read from the path or files argument,
or be a subset of it. For each ptid (patient ID), the visit column should have at
least one "pre" and one "post" sample. Any additional column will be kept into
the resulting peptideSet
and can be used later on for groupping.
If check.row.order = TRUE, the final set of probes is taken to be those with IDs found in all arrays that were read.
Row, Column and Block spatial array position for each probe are stored in the
featureRanges
slot of the returned object.
A peptideSet
object that contain the intensities, peptide
sequences and annotations available in the mapping file.
Raphael Gottardo, Gregory Imholte
peptideSet
, read.maimages
,
backgroundCorrect
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Read gpr files
library(pepDat)
mapFile <- system.file("extdata/mapping.csv", package = "pepDat")
dirToParse <- system.file("extdata/gpr_samples", package = "pepDat")
pSet <- makePeptideSet(files = NULL, path = dirToParse,
mapping.file = mapFile, log=TRUE)
# Specify controls to be removed and empty controls
# to be used for background correction.
pSet <- makePeptideSet(files = NULL, path = dirToParse,
mapping.file = mapFile, log = TRUE,
rm.control.list = c("JPT-control", "Ig", "Cy3"),
empty.control.list= c("empty", "blank control"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.