readSCP: Read single-cell proteomics tabular data

View source: R/readSCP.R

readSCPR Documentation

Read single-cell proteomics tabular data

Description

Function to import and convert tabular data from a spreadsheet or a data.frame into a SingleCellExperiment and QFeatures object.

Usage

readSCP(...)

readSCPfromDIANN(...)

readSingleCellExperiment(...)

Arguments

...

Parameters passed to readSummarizedExperiment(), readQFeatures() or readQFeaturesFromDIANN(). See these respective manual pages for details.

Value

An instance of class SingleCellExperiment or a QFeatures, composed of SingleCellExperiment objects.

Note

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

See Also

  • 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.

Examples


######################################################
## 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")

UCLouvain-CBIO/scp documentation built on Oct. 12, 2024, 2:37 a.m.