readSCP | R Documentation |
Function to import and convert tabular data from a spreadsheet or
a data.frame
into a SingleCellExperiment
and QFeatures
object.
readSCP(...)
readSCPfromDIANN(...)
readSingleCellExperiment(...)
... |
Parameters passed to |
An instance of class SingleCellExperiment
or a
QFeatures
, composed of SingleCellExperiment
objects.
The SingleCellExperiment
class is built on top of the
RangedSummarizedExperiment
class. This means that some column names
are forbidden in the rowData
. Avoid using the following names:
seqnames
, ranges
, strand
, start
, end
,
width
, element
The more general QFeatures::readQFeatures()
function, which
this function depends on.
The more general QFeatures::readQFeaturesFromDIANN()
function,
for details and an example on how to read label-free and plexDIA
(mTRAQ) data processed with DIA-NN.
The QFeatures::readSummarizedExperiment()
function, which
readSingleCellExperiment()
depends on.
The SingleCellExperiment::SingleCellExperiment()
class.
######################################################
## Load a single acquisition as a SingleCellExperiment
## Load a data.frame with PSM-level data
data("mqScpData")
## Create the QFeatures object
sce <- readSingleCellExperiment(mqScpData,
quantCols = grep("RI", colnames(mqScpData)))
sce
######################################################
## Load multiple acquisitions as a QFeatures
## Load an example table containing MaxQuant output
data("mqScpData")
## Load the (user-generated) annotation table
data("sampleAnnotation")
## Format the tables into a QFeatures object
readSCP(assayData = mqScpData,
colData = sampleAnnotation,
runCol = "Raw.file")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.