knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
infercna aims to provide functions for inferring CNA values from scRNA-seq data and related queries.
infercna()
to infer copy-number alterations from single-cell RNA-seq datarefCorrect()
to convert relative CNA values to absolute values
+ computed in infercna()
if reference cells are providedcnaPlot()
to plot a heatmap of CNA valuescnaScatterPlot()
to visualise malignant and non-malignant cell subsets cnaCor()
a parameter to identify cells with high CNAs
+ computed in cnaScatterPlot()
cnaSignal()
a second parameter to identify cells with high CNAs
+ computed in cnaScatterPlot()
findMalignant()
to find malignant subsets of cellsfindClones()
to identify genetic subclonesfitBimodal()
to fit a bimodal gaussian distribution
+ used in findMalignant()
+ used in findClones()
filterGenes()
to filter genes by their genome featuressplitGenes()
to split genes by their genome featuresorderGenes()
to order genes by their genomic positionuseGenome()
to change the default genome configured with infercnaaddGenome()
to configure infercna with a new genome specified by the userSee Reference tab for a full list and documentation pages.
To install infercna
:
# install.packages("devtools") devtools::install_github("jlaffy/infercna")
The methodology behind infercna has been tried and tested in several high-impact publications. It was actually in the earliest of these papers (last listed) that the idea to infer CNAs from single-cell RNA-sequencing data was first formulated.
The bare minimum for use in infercna is:
log2(TPM/10 + 1)
infercna::TPM
and infercna::logTPM
If you would like to compute absolute (rather than relative) CNA values, you should additionally provide:
infercna::refCells
Finally, if your genome is not available in the current implementation of infercna, you should additionally provide:
symbol
, chromosome_name
, start_position
, arm
.infercna is built with two example datasets of scRNA-seq data from two patients with Glioblastoma, infercna::bt771
and infercna::mgh125
, along with two normal reference groups, infercna::refCells
. The matrices are stored as sparse matrices and you can use infercna::useData()
to load them as normal matrices. These patients are taken from a much larger cohort of 28 Glioblastoma samples. You can look at the complete study here and can download the complete dataset via the Single Cell Portal.
Future implementations will include:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.