AlignedRead
objects (from the ShortRead package) and creates an ExpData
object from them, with one column for each list element. Column names
are taken from list names, which must be unique. importFromAlignedReads(x, chrMap, dbFilename, tablename, overwrite = TRUE, deleteIntermediates = TRUE, readPosition = c("5prime", "left", "center"), verbose = getOption("verbose"), ...)AlignedRead or a named character vector of
filenames. In both cases, the names of the object are used as
column names inthe resulting database (not that it is not easy to
change those names). Therefore the names of x needs to be
present and non-empty and also to satisfy the requirements of
column names in SQLite. If x is a list of
AlignedRead, the column names needs to be unique. If
x is a character vector of filenames, the names do not have
to be unique, in which case two filenames with the same (column)
name gets collapsed into the same column.
chrMap vector.
tablename argument should be overwritten.
"5prime" indicating that the location is the position of the
5' end of the reads, "left" indicates that the position of
the left part of the read is used (5' end for reads mapping to the
forward strand, 3' for reads mapping to the reverse strand),
"center" indicates that the position of the center of the
read is used.
readAligned from ShortRead.
ExpData with a column for each
element of the x argument.
AlignedRead class from ShortRead.) This can be
changed by the readPosition argument. If the x argument is a character vector of filenames, the
function will require enough memory to parse each input file in turn.
If there are duplicates in names of x the function requires
enough memory to parse all files with the same column name at the same
time.
If the AlignedRead class object has a weights column in
its alignData slot, this weights column is used as the
data to aggregate over.
Genominator vignette for more information.
See also ExpData-class,
AlignedRead-class and readAligned.
## Not run:
# require(ShortRead)
# require(yeastRNASeq)
# data("yeastAligned")
# chrMap <- levels(chromosome(yeastAligned[[1]]))
# eData <- importFromAlignedReads(yeastAligned, chrMap = chrMap,
# dbFilename = tempfile(), tablename = "raw",
# overwrite = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab