Title: | Read qPCR data |
---|---|
Description: | The package provides functions to read raw RT-qPCR data of different platforms. |
Authors: | James Perkins, Matthias Kohl, Nor Izayu Abdul Rahman |
Maintainer: | James Perkins <[email protected]> |
License: | LGPL-3 |
Version: | 1.53.0 |
Built: | 2024-11-17 06:12:12 UTC |
Source: | https://github.com/bioc/ReadqPCR |
The package provides functions to read raw RT-qPCR data of different platforms.
Package: | ReadqPCR |
Type: | Package |
Version: | 1.5.3 |
Date: | 2013-03-23 |
Depends: | R(>= 2.14.0), Biobase, methods, affy |
Imports: | Biobase |
Suggests: | qpcR |
License: | LGPL-3 |
LazyLoad: | yes |
library(ReadqPCR)
James Perkins <[email protected]>
Matthias Kohl <[email protected]>
Nor Izayu Abdul Rahman
Maintainer: James Perkins <[email protected]>
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
## some examples are given in the vignette ## Not run: library(ReadqPCR) vignette("ReadqPCR") ## End(Not run)
## some examples are given in the vignette ## Not run: library(ReadqPCR) vignette("ReadqPCR") ## End(Not run)
Class to contain and describe raw fluorescence data. Extends eSet
new("CyclesSet")
assayData
: Object of class AssayData
containing the raw data,
which will be a matrix of fluorescence values.
phenoData
:Object of class AnnotatedDataFrame
containing phenotypic data for the samples.
annotation
A character string identifying the
annotation that may be used for the CyclesSet
instance.
protocolData
:Object of class AnnotatedDataFrame
containing protocol data for the samples.
featureData
Object of class AnnotatedDataFrame
containing feature-level (e.g., probeset-level) information.
experimentData
:Object of class "MIAME" containing experiment-level information.
.__classVersion__
:Object of class Versions
describing the R and Biobase version number used to create the
instance. Intended for developer use.
signature(object = "CyclesSet")
: extracts the matrix with
the fluorescence values.
signature(object = "CyclesSet", value = "matrix")
:
replaces the matrix with the fluorescence values.
Nor Izayu Abdul Rahman, Matthias Kohl [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
Generic function for the merging an eSet
and an AnnotatedDataFrame
;
that is, the informatiton given in the AnnotatedDataFrame
is merged into
the appropriate slot of the given eSet
. This can be slot phenoData
(default), featureData
, or protocolData
.
merge(x, y, ...) ## S4 method for signature 'eSet,AnnotatedDataFrame' merge(x, y, eSet.slot = "phenoData", by = intersect(names(pData(x)), names(pData(y))), by.x = by, by.y = by, all = FALSE, all.x = all, all.y = all, sort = FALSE, suffixes = c(".x",".y"), incomparables = NULL, ...) ## S4 method for signature 'AnnotatedDataFrame,eSet' merge(x, y, eSet.slot = "phenoData", by = intersect(names(pData(x)), names(pData(y))), by.x = by, by.y = by, all = FALSE, all.x = all, all.y = all, sort = FALSE, suffixes = c(".x",".y"), incomparables = NULL, ...)
merge(x, y, ...) ## S4 method for signature 'eSet,AnnotatedDataFrame' merge(x, y, eSet.slot = "phenoData", by = intersect(names(pData(x)), names(pData(y))), by.x = by, by.y = by, all = FALSE, all.x = all, all.y = all, sort = FALSE, suffixes = c(".x",".y"), incomparables = NULL, ...) ## S4 method for signature 'AnnotatedDataFrame,eSet' merge(x, y, eSet.slot = "phenoData", by = intersect(names(pData(x)), names(pData(y))), by.x = by, by.y = by, all = FALSE, all.x = all, all.y = all, sort = FALSE, suffixes = c(".x",".y"), incomparables = NULL, ...)
x |
object of class |
y |
object of class |
eSet.slot |
name of the slot of the given |
by |
specifications of the columns used for merging. |
by.x |
specifications of the columns used for merging. |
by.y |
specifications of the columns used for merging. |
all |
logical; |
all.x |
logical; if |
all.y |
logical; analogous to |
sort |
logical. Should the result be sorted on the by columns? |
suffixes |
a character vector of length 2 specifying the suffixes to be used for making unique the names of columns in the result which not used for merging (appearing in by etc). |
incomparables |
values which cannot be matched. See |
... |
additional arguments to be passed to or from methods. |
For details on the arguments see merge
.
Object of class "CyclesSet"
.
merge y
into specified
slot of x
.
merge x
into specified
slot of y
.
Nor Izayu Abdul Rahman, Matthias Kohl [email protected]
path <- system.file("exData", package = "ReadqPCR") LC480.example <- file.path(path, "LC480_Example.txt") ## Read in the raw qPCR data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 45 (default). cycData <- read.LC480(file = LC480.example) LC480.SamInfo <- file.path(path, "LC480_Example_SampleInfo.txt") # Read in the sample information data from file "LC480_Example_SampleInfo.txt". samInfo <- read.LC480SampleInfo(LC480.SamInfo) cycData1 <- merge(cycData, samInfo)
path <- system.file("exData", package = "ReadqPCR") LC480.example <- file.path(path, "LC480_Example.txt") ## Read in the raw qPCR data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 45 (default). cycData <- read.LC480(file = LC480.example) LC480.SamInfo <- file.path(path, "LC480_Example_SampleInfo.txt") # Read in the sample information data from file "LC480_Example_SampleInfo.txt". samInfo <- read.LC480SampleInfo(LC480.SamInfo) cycData1 <- merge(cycData, samInfo)
Transform a dataset from package qpcR into an object of class "CyclesSet"
.
qpcR2CyclesSet(x, cyc = 1, cycleThreshold)
qpcR2CyclesSet(x, cyc = 1, cycleThreshold)
x |
the name of the dataset from package qpcR to be transformed. |
cyc |
the column number which contains cycle data. |
cycleThreshold |
maximum number of cycles which the data will be counted and transformed. |
Allows the user to transform a dataset from package qpcR into an object of class
"CyclesSet"
class, alongside phenotypic data.
Object of class "CyclesSet"
.
Nor Izayu Abdul Rahman, Matthias Kohl [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
library(qpcR) ## Transform the reps dataset from qpcR Package ## with maximum cycle to be read in the value is 45. repsdata <- qpcR2CyclesSet(reps, cyc=1, cycleThreshold=45) ## Transform the batsch1 dataset from qpcR Package ## with maximum cycle to be read in the value is 40. batsch1data <- qpcR2CyclesSet(batsch1, cyc=1, cycleThreshold=40)
library(qpcR) ## Transform the reps dataset from qpcR Package ## with maximum cycle to be read in the value is 45. repsdata <- qpcR2CyclesSet(reps, cyc=1, cycleThreshold=45) ## Transform the batsch1 dataset from qpcR Package ## with maximum cycle to be read in the value is 40. batsch1data <- qpcR2CyclesSet(batsch1, cyc=1, cycleThreshold=40)
Class to Contain and Describe raw and normalised qPCR Data, as Cq or delta-Cq values. Extends eSet
new("qPCRBatch")
assayData
: Object of class AssayData
containing the raw data,
which will be at minimum a matrix of Cq values. This
slot can also hold a matrix of well.info values if these are present in the input file read
in by read.qPCR
or read.taqman
phenoData
:Object of class AnnotatedDataFrame
containing phenotypic data for the samples.
annotation
A character string identifying the
annotation that may be used for the qPCRBatch
instance.
protocolData
:Object of class AnnotatedDataFrame
containing protocol data for the samples.
featureData
Object of class AnnotatedDataFrame
containing feature-level (e.g., probeset-level) information.
experimentData
:Object of class "MIAME" containing experiment-level information.
.__classVersion__
:Object of class Versions
describing the R and Biobase version number used to create the
instance. Intended for developer use.
signature(object = "qPCRBatch")
: extracts the Cq
expression matrix.
signature(object = "qPCRBatch", value = "matrix")
:
replaces the Cq expression matrix.
signature(object = "qPCRBatch")
: extracts the
expression matrix with SDs of Cq values.
signature(object = "qPCRBatch", value = "matrix")
:
replaces the expression matrix with SDs of Cq values.
signature(object = "qPCRBatch")
: extracts the Cq
well order matrix (if it exists).
signature(object = "qPCRBatch", value = "matrix")
:
replaces the Cq well order matrix.
signature(object = "qPCRBatch")
: extracts the efficiency
matrix (if it exists).
signature(object = "qPCRBatch", value = "matrix")
:
replaces the efficiency matrix.
signature(object = "qPCRBatch")
: extracts the matrix
with the standard errors/deviations of the efficiencies (if it exists).
signature(object = "qPCRBatch", value = "matrix")
:
replaces the matrix with the standard errors/deviations of the efficiencies.
This class is better described in the vignette.
James Perkins [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
Reads in raw qPCR data of Light Cycler 480 and uses the data to populate
an object of class "CyclesSet"
.
read.LC480(file, colNames = c("Sample position", "Sample name", "Program number", "Segment number", "Cycle number", "Acquisition time", "Acquisition temperature", "Fluorescence data"), cycleThreshold = 45, fileType = "txt", skip = 1, header = TRUE, sep = "\t", quote = "\"", dec = ".", fill = TRUE, comment.char = "")
read.LC480(file, colNames = c("Sample position", "Sample name", "Program number", "Segment number", "Cycle number", "Acquisition time", "Acquisition temperature", "Fluorescence data"), cycleThreshold = 45, fileType = "txt", skip = 1, header = TRUE, sep = "\t", quote = "\"", dec = ".", fill = TRUE, comment.char = "")
file |
the name of the file to be read in. |
colNames |
a character vector of names to be assumed for the columns. |
cycleThreshold |
maximum number of cycles which will be read in. |
fileType |
the type of the file. |
skip |
integer: the number of lines of the data file to skip before beginning to read data. |
header |
a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns. |
sep |
the field separator character. Values on each line of the file are separated by this character. If |
quote |
the set of quoting characters. To disable quoting altogether, use |
dec |
the character used in the file for decimal points. |
fill |
logical. If TRUE then in case the rows have unequal length, blank fields are implicitly added.
See |
comment.char |
character: a character vector of length one containing a single character or an empty string. Use |
Allows the user to read in qPCR fluorescence data from Light Cycler 480 which has been exported to a txt-file, alongside phenotypic data.
Object of class "CyclesSet"
.
Nor Izayu Abdul Rahman, Matthias Kohl [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
read.LC480SampleInfo
for reading in sample information of qPCR data from Light Cycler and produce an object of Class "CyclesSet"
.
merge
for merging the phenodata from read.LC480
and read.LC480SampleInfo
and produce an object of Class "CyclesSet"
.
read.qPCR
and read.taqman
for reading in the RT-qPCR data consisting of Cq values.
path <- system.file("exData", package = "ReadqPCR") LC480.example <- file.path(path, "LC480_Example.txt") ## Read in the raw qPCR data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 45 (default). cycData <- read.LC480(file = LC480.example) ## Read in the data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 50. rawdata <- read.LC480(file=LC480.example, cycleThreshold=50)
path <- system.file("exData", package = "ReadqPCR") LC480.example <- file.path(path, "LC480_Example.txt") ## Read in the raw qPCR data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 45 (default). cycData <- read.LC480(file = LC480.example) ## Read in the data from file "LC480_Example.txt" ## with maximum cycle to be read in the values is 50. rawdata <- read.LC480(file=LC480.example, cycleThreshold=50)
Reads sample information data of a qPCR experiment from Light Cycler 480 which is in txt-file and uses the data to populate an object of Class "AnnotatedDataFrame"
.
read.LC480SampleInfo(file, removeEmptyCols = TRUE, header = TRUE, sep = "\t", quote = "\"", dec = ".",fill = TRUE, comment.char = "", skip = 0)
read.LC480SampleInfo(file, removeEmptyCols = TRUE, header = TRUE, sep = "\t", quote = "\"", dec = ".",fill = TRUE, comment.char = "", skip = 0)
file |
the name of the file to be read in. |
removeEmptyCols |
a logical value which indicates whether the empty column(s) should be removed or not. |
header |
a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns. |
sep |
the field separator character. Values on each line of the file are separated by this character. If |
quote |
the set of quoting characters. To disable quoting altogether, use |
dec |
the character used in the file for decimal points. |
fill |
logical. If TRUE then in case the rows have unequal length, blank fields are implicitly added.
See |
comment.char |
character: a character vector of length one containing a single character or an empty string. Use |
skip |
integer: the number of lines of the data file to skip before beginning to read data. |
Allows the user to read in sample information data of a qPCR experiment from Light Cycler 480 which is in txt-file.
Object of class "AnnotatedDataFrame"
.
Nor Izayu Abdul Rahman, Matthias Kohl [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
read.LC480
for reading in the qPCR data from Light Cycler and produce an object of Class "CyclesSet"
.
merge
for merging the phenodata from read.LC480
and read.LC480SampleInfo
and produce an object of Class "CyclesSet"
.
read.qPCR
and read.taqman
for reading in the RT-qPCR data.
path <- system.file("exData", package = "ReadqPCR") LC480.SamInfo <- file.path(path, "LC480_Example_SampleInfo.txt") # Read in the sample information data from file "LC480_Example_SampleInfo.txt". samInfo <- read.LC480SampleInfo(LC480.SamInfo)
path <- system.file("exData", package = "ReadqPCR") LC480.SamInfo <- file.path(path, "LC480_Example_SampleInfo.txt") # Read in the sample information data from file "LC480_Example_SampleInfo.txt". samInfo <- read.LC480SampleInfo(LC480.SamInfo)
Reads RT-qPCR data in format specified in the ReadqPCR vignette and uses the data to populate an object of class
"qPCRBatch"
.
read.qPCR(filename = character(0), phenoData = new("AnnotatedDataFrame"), notes = "", verbose = FALSE)
read.qPCR(filename = character(0), phenoData = new("AnnotatedDataFrame"), notes = "", verbose = FALSE)
filename |
file name (must be formatted as shown in vignette). |
phenoData |
an |
notes |
notes. |
verbose |
verbosity flag. If true more messages are given to the user on the processing steps |
Permits the user to read in qPCR Cq value data in a predefined format
(more details on this format in the ReadqPCR
package vignette), alongside
phenotypic data and further notes about the data. If phenoData
is a data.frame
,
it is converted to an AnnotatedDataFrame
. If it is NULL
then a default object
of class AnnotatedDataFrame
is created, whose pData
is a
data.frame
with rownames being the names of the samples, and
with one column sample
with an integer index.
More details on how technical replicates are handled in the ReadqPCR
package vignette
Object of class "qPCRBatch"
.
James Perkins [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
ExpressionSet-class
path <- system.file("exData", package = "ReadqPCR") qPCR.example <- file.path(path, "qPCR.example.txt") qPCRBatch.qPCR <- read.qPCR(qPCR.example)
path <- system.file("exData", package = "ReadqPCR") qPCR.example <- file.path(path, "qPCR.example.txt") qPCRBatch.qPCR <- read.qPCR(qPCR.example)
Reads Taqman RT-qPCR data and uses the data to populate an object of class
"qPCRBatch"
.
read.taqman(..., filenames = character(0), phenoData = new("AnnotatedDataFrame"), notes = "", verbose = FALSE)
read.taqman(..., filenames = character(0), phenoData = new("AnnotatedDataFrame"), notes = "", verbose = FALSE)
... |
file names separated by comma. |
filenames |
file names in a character vector. |
phenoData |
an
|
notes |
notes. |
verbose |
verbosity flag. If true more messages are given to the user on the processing steps |
Permits the user to read in qPCR Cq value data from an sds output file,
alongside phenotypic data and further notes about the data. If phenoData
is a data.frame
, it is converted to an AnnotatedDataFrame
. If it
is NULL
then a default object of class AnnotatedDataFrame
is
created, whose pData
is a data.frame
with rownames being the
names of the , and with one column sample
with an integer index.
More details on how technical replicates are handled in the ReadqPCR
package vignette
Object of class "qPCRBatch"
.
James Perkins [email protected]
Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.
ExpressionSet-class
path <- system.file("exData", package = "ReadqPCR") # read 1 file taqman.example <- file.path(path, "example.txt") qPCRBatch.taq <- read.taqman(taqman.example) # read 2 files taqman.example.second.file <- file.path(path, "example2.txt") qPCRBatch.taq.two.files <- read.taqman(taqman.example, taqman.example.second.file)
path <- system.file("exData", package = "ReadqPCR") # read 1 file taqman.example <- file.path(path, "example.txt") qPCRBatch.taq <- read.taqman(taqman.example) # read 2 files taqman.example.second.file <- file.path(path, "example2.txt") qPCRBatch.taq.two.files <- read.taqman(taqman.example, taqman.example.second.file)