Last chance! 50% off unlimited learning
Sale ends in
arrayCGH
object, using additional information about the array design.Supported file types are Genepix Results file (.gpr), outputs from SPOT, or any text file with appropriate fields "Row" and "Column" and specified array design
import(file, var.names=NULL, spot.names=NULL, clone.names=NULL, type=c("default", "gpr", "spot"), id.rep=1, design=NULL, add.lines=FALSE, ...)
arrayCGH$arrayValues
arrayCGH$cloneValues
(only used in case of within-slide replicates)sep=
', or 'comment.char=
', to be passed to read.delim
function. Note that argument as.is=TRUE
is always passed to
read.delim, in order to avoid unapropriate conversion of character
vectors to factorsarrayCGH
objects are the array design and the x and y
absolute coordinates of each spot on the array. Output files
from SPOT contain x and y relative coordinates of each spot within a
block, as well as block coordinates on the array; one can therefore
easily construct te corresponding arrayCGH
object. .gpr files currently only contain x and y relative coordinates of each
spot within a block, and block index with no specification of the
spatial block design: if block design is not specified by user, we
compute it using the real pixel locations of each spot (X
and Y
variables in
usual .gpr files)
If clone.names is provided, an additional data frame is created with
clone-level information (e.g. clone names, positions,
chromosomes, quality marks), aggregated from array-level information
using the identifier specified by id.rep. This identifier is also
added to the arrayCGH
object created, with name 'id.rep'.
Due to space limitations, only the first 100 lines of sample 'gpr' and
'spot' files are given in the standard distribution of
MANOR
. Complete files are available at http://bioinfo.curie.fr/projects/manor/index.html
arrayCGH
dir.in <- system.file("extdata", package="MANOR")
## import from 'spot' files
spot.names <- c("LogRatio", "RefFore", "RefBack", "DapiFore", "DapiBack", "SpotFlag", "ScaledLogRatio")
clone.names <- c("PosOrder", "Chromosome")
edge <- import(paste(dir.in, "/edge.txt", sep=""), type="spot",
spot.names=spot.names, clone.names=clone.names, add.lines=TRUE)
## import from 'gpr' files
spot.names <- c("Clone", "FLAG", "TEST_B_MEAN", "REF_B_MEAN",
"TEST_F_MEAN", "REF_F_MEAN", "ChromosomeArm")
clone.names <- c("Clone", "Chromosome", "Position", "Validation")
ac <- import(paste(dir.in, "/gradient.gpr", sep=""), type="gpr",
spot.names=spot.names, clone.names=clone.names, sep="\t",
comment.char="@", add.lines=TRUE)
Run the code above in your browser using DataLab