Description Slots Methods Author(s) See Also Examples
The class InputFrame provides core functionalities to read gene and sample information from SDM files and calculate them with a ddCt algorithm.
The function InputFrame
reads the data given in the colums
'Detector','Sample' and 'Ct' of the specified SDM output files and
stores them as a data.frame. An additional column including the
respective filename is added.
coreData
:Object of class "data.frame"
: Holds
all the required data extracted from the SDM file
files
:Object of class "character"
contains the
source SDM files
signature(x = "InputFrame")
: primitive
accessors. Returns an object of InputFrame-class
with the subset data.
signature(x = "InputFrame")
: returns the column
names in this SDM object
signature(object = "InputFrame")
: runs
a ddCt algorithm with this SDM object and returns a object of
class ddCtExpression
signature(object="InputFrame")
: returns the
source SDM file names.
signature(object = "InputFrame")
: returns
the detector names in this SDM object
signature(object = "InputFrame", value =
"character")
: replaces the detector names in this SDM object
signature(object = "InputFrame")
: returns
the sample names in this SDM object
signature(object = "InputFrame", value =
"character")
: replaces the sample names in this SDM object
signature(object = "InputFrame")
:
returns a vector of unique detector names in this SDM object
signature(object = "InputFrame",
target = "missing", value = "character")
: replaces all detector
names given by the 'names' attribute in 'value' with new detector
names
signature(object = "InputFrame",
target = "character", value = "character")
: replaces all detector
names given by 'target' with new detector names
signature(object = "InputFrame",
target = "missing", value = "character")
: replaces all sample
names given by the 'names' attribute in 'value' with new sample
names
signature(object = "InputFrame",
target = "character", value = "character")
: replaces all sample
names given by 'target' with new sample names
signature(object = "InputFrame")
:
returns a vector of unique sample names in this SDM object
signature(object = "InputFrame", sample="character")
:
removes the sample(s) specified from the InputFrame object
signature(object = "InputFrame",
target="character", value="character")
:
replace the detectors equal to the target with the value. Both
target
and value
can be vectors of the same length,
then the replace takes place iteratively.
signature(object = "InputFrame",
target="character", value="character")
:
replace the samples equal to the target with the value. Both
target
and value
can be vectors of the same length,
then the replace takes place iteratively.
signature(object="InputFrame")
: pretty print of the
InputFrame instance.
signature(object="InputFrame",
threshold="numeric")
: Right censoring the Ct value, which
targets the data points above a certain value
(threshold
). High Ct values (higher than 40 or 45 by the rule
of thumb) are often not accurate and may indicate too weak
expression. The function performs the right censoring on the data and
set the value above the threshold as NA
(by default) or a
given value. See the example.
signature(object="InputFrame")
: returns the
data frame read from SDM file.
signature(object="InputFrame")
: replace the
data frame read from SDM file.
signature(object="InputFrame")
: returns the Ct value
of the SDM file.
signature(object="InputFrame", value="numeric")
:
replace the Ct value in the object with the new values, and return the object.
Rudolf Biczok mailto:r.biczok@dkfz.de, Jitao David Zhang mailto:jitao_david.zhang@roche.com
SDMFrame
function reads in data from SDM
files. Data from SDM files is used to construct
ddCtExpression
objects to analyze differetial expression.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ## read a SDM file
sampdat <- SDMFrame(system.file("extdata", "Experiment1.txt",
package="ddCt"))
## you can also write
## sampdat <- new("SDMFrame",system.file("extdata", "Experiment1.txt",
## package="ddCt"))
## use the getter methods
sampleNames(sampdat)
## or the overloaded primitive accessors
sampdat[1:3,"Sample"]
## see all unique samples
uniqueSampleNames(sampdat)
## replace all sample names 'Sample1' and 'Sample2' in sampdat
## with 'NewSample1' and 'NewSample2'
uniqueSampleNames(sampdat,c("Sample1","Sample2")) <- c("NewSample1","NewSample2")
uniqueSampleNames(sampdat)
## or use this syntax to replace the gene names
uniqueDetectorNames(sampdat) <- c(Gene1="NewGene1", Gene2="NewGene2")
uniqueDetectorNames(sampdat)
## remove sample or detector
removeSample(sampdat, "Sample1")
removeDetector(sampdat, "Gene1")
## replace sample or detector
replaceSample(sampdat, "Sample1", "Sample0")
replaceDetector(sampdat, "Gene1", "PLCG1")
## right censoring the data
rightCensoring(sampdat, 35)
rightCensoring(sampdat, 35, 35)
|
[1] "Sample1" "Sample1" "Sample1" "Sample1" "Sample1" "Sample1" "Sample1"
[8] "Sample1" "Sample1" "Sample2" "Sample2" "Sample2" "Sample2" "Sample2"
[15] "Sample2" "Sample2" "Sample2" "Sample2"
An instance of InputFrame:
====================================================================
Sample
Sample1
Sample1
...
Sample1
Sample1
====================================================================
3 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
[1] "Sample1" "Sample2"
[1] "NewSample1" "NewSample2"
[1] "Gene3" "NewGene2" "NewGene1"
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 35.52575 Experiment1.txt
NewSample1 Gene3 35.083927 Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 35.52575 Experiment1.txt
NewSample1 Gene3 35.083927 Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 35.52575 Experiment1.txt
NewSample1 Gene3 35.083927 Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
Warning message:
In replaceVectorByEquality(sampleNames(object), target, value) :
Following 'targets' are not found in the given vector: Sample1
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 35.52575 Experiment1.txt
NewSample1 Gene3 35.083927 Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
Warning message:
In replaceVectorByEquality(detectorNames(object), target, value) :
Following 'targets' are not found in the given vector: Gene1
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 <NA> Experiment1.txt
NewSample1 Gene3 <NA> Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
An instance of InputFrame:
====================================================================
Sample Detector Ct Platename
NewSample1 Gene3 35 Experiment1.txt
NewSample1 Gene3 35 Experiment1.txt
... ... ... ...
NewSample2 NewGene1 34.597477 Experiment1.txt
NewSample2 NewGene1 34.040577 Experiment1.txt
====================================================================
18 Sample-Detector pairs
File: ‘/usr/lib/R/site-library/ddCt/extdata/Experiment1.txt’
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.