Learn R Programming

⚠️There's a newer version (1.1.0) of this package.Take me there.

BASiCS

Bayesian Analysis of Single-Cell Sequencing Data is an integrated Bayesian hierarchical model where:

  • Cell-specific normalization constants are estimated as part of the model parameters.
  • Technical variability is quantified based on spike-in genes that are artificially introduced to each analysed cells lysate.
  • The total variability of the expression counts is decomposed into technical and biological components.

Installation

BASiCS will be submitted to BioConductor. In the meantime, the development version can be installed from GitHub:

# install.packages("devtools")
devtools::install_github("catavallejos/BASiCS", build_vignettes = TRUE)

This installation might fail if some of the dependency libraries are not yet installed. If so, please run the following lines and repeat the installation.

#library(devtools)
#source("http://bioconductor.org/biocLite.R")
#biocLite("BiocGenerics")
#biocLite("scran")
#install.packages("Rcpp")

After a successful installation, the BASiCS library can be loaded using[^footnoteInstall]

library(BASiCS)

[^footnoteInstall]: The warning "No methods found in "BiocGenerics"" might appear. Please ignore. BASiCS imports some of the generic functions provided by BiocGenerics that do not have any methods attached.

Troubleshooting

gfortran error

If you are unable to install BASiCS in a Mac OS X system, you might require an additional gfortran library.

  • If you are running R versions 3.0.0 - R 3.3.0, this can be installed in the Mac terminal using the following command:
curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /

pandoc error

If you are not using RStudio, you might need to manually install pandoc in order to create the vignette provided for BASiCS

Additional installation issues/solutions can be found here: https://github.com/catavallejos/BASiCS/issues/9

How to use BASiCS?

  • To detect highly and lowly variable genes within a populations of cells: please refer to the vignette
vignette('BASiCSIntro')
  • To detect changes whose expression changes between 2 or more populations of cells (mean and over-dispersion), please refer to the supplementary material related to Vallejos et al., 2016

TODO: a quick start for BASiCS. Like vignette("some-stuff")

Development

Sanity check

In the folder of the development version from GitHub:

R CMD check .

Build from source

In the parent folder of the development version from GitHub:

R CMD build BASiCS

And run then

install.packages('BASiCS_x.x.x.tar.gz', repos=NULL)

on the generated file.

Author

Catalina A. Vallejos (cvallejos 'at' turing.ac.uk)

Collaborators

  • Danilo Horta
  • Nils Eling

References

  • Vallejos et al. (2015). BASiCS: Bayesian Analysis of Single-Cell Sequencing Data
  • Vallejos et al. (2016). Beyond comparisons of means: understanding changes in gene expression at the single cell level

Copy Link

Version

Version

0.7.30

License

GPL (>= 2)

Maintainer

Catalina Vallejos

Last Published

February 10th, 2020

Functions in BASiCS (0.7.30)

BASiCS_D_Summary-methods

'show' method for BASiCS_D_Summary objects
BASiCS_D_TestDE

Detection of genes with changes in expression
BASiCS-package

Bayesian Analysis of Single Cell Sequencing data
BASiCS_Chain-class

The BASiCS_Chain class
BASiCS_D_Data-methods

S4 methods for BASiCS_D_Data objects
BASiCS_D_Summary-class

The BASiCS_D_Summary class contains posterior medians and the limits of the highest posterior density (HPD) interval for all BASiCS model parameters
BASiCS_D_Chain-methods

'show' method for BASiCS_D_Chain objects
BASiCS_D_Data-class

The BASiCS_D_Data class
BASiCS_Chain-methods

'show' method for BASiCS_Chain objects
BASiCS_D_Chain-class

The BASiCS_D_Chain class
BASiCS_Data-class

The BASiCS_Data class
BASiCS_Data-methods

S4 methods for BASiCS_Data objects
BASiCS_LoadChain

Loads pre-computed MCMC chains generated by the BASiCS_MCMC function
BASiCS_MCMC

BASiCS MCMC sampler
BASiCS_VarianceDecomp

Decomposition of gene expression variability according to BASiCS
CombineBASiCS_Chain

Creates a BASiCS_D_Chain object based on 2 independent `BASiCS_Chain` objects
BASiCS_Summary-methods

'show' method for BASiCS_Summary objects
BASiCS_VarThresholdSearchHVG

Detection method for highly and lowly variable genes using a grid of variance contribution thresholds
DenoisedRates

Calculates normalised and denoised expression rates
Summary

'Summary' method for BASiCS_Chain objects
newBASiCS_Data

Creates a BASiCS_Data object from a matrix of expression counts and experimental information about spike-in genes
displayChainBASiCS-BASiCS_D_Chain-method

Accessors for the slots of a BASiCS_D_Chain object
displaySummaryBASiCS-BASiCS_D_Summary-method

Accessors for the slots of a BASiCS_D_Summary object
newBASiCS_D_Chain

Creates a BASiCS_D_Chain object from pre-computed MCMC chains
newBASiCS_D_Data

Creates a BASiCS_D_Data object from expression counts matrices and experimental information about spike-in genes
makeExampleBASiCS_Data

Create a simple example of a BASiCS_Data object with random data
newBASiCS_Chain

Creates a BASiCS_Chain object from pre-computed MCMC chains
plot-BASiCS_Chain-method

'plot' method for BASiCS_Chain objects
BASiCS_DetectHVG

Detection method for highly and lowly variable genes
BASiCS_Filter

Filter for input datasets
displayChainBASiCS-BASiCS_Chain-method

Accessors for the slots of a BASiCS_Chain object
displaySummaryBASiCS-BASiCS_Summary-method

Accessors for the slots of a BASiCS_Summary object
makeExampleBASiCS_D_Data

Create a simple example of a BASiCS_D_Data object with random data
plot-BASiCS_Summary-method

'plot' method for BASiCS_Summary objects
BASiCS_Sim

Simulates expression counts according to the model implemented in BASiCS
BASiCS_Summary-class

The BASiCS_Summary class
CombineBASiCS_Data

Creates a BASiCS_D_Data object based on 2 independent `BASiCS_Data` objects
DenoisedCounts

Calculates normalised and denoised expression expression counts
plot-BASiCS_D_Chain-method

'plot' method for BASiCS_D_Chain objects
plot-BASiCS_D_Summary-method

'plot' method for BASiCS_D_Summary objects