BARTsc is an R package that analyzes transcriptional regulators (TRs) based on single-cell omics data. It supports the analysis of scRNA-seq, scATAC-seq and scMultiome (GEX+ATAC) data. As a successor to BART BART, which focuses on bulk data analysis, BARTsc learns binding events from a large collection of public ChIP-seq data instead of using TF binding motifs. BARTsc is a great tool for the identification of (1) TRs that contribute to cell cluster signatures, (2) relative activity of TRs across different cell clusters, and (3) key regulators for each cell cluster.
Install necessary dependencies
install.packages("remotes")
remotes::install_github("immunogenomics/presto")Install BARTsc
remotes::install_github("hongpan-uva/BARTsc")After BARTsc is installed, for the first time the user imports it, BARTsc needs to be initialized with function initialize(). This step will automatically create a python virtual environment and install the BART2 python module and related dependencies. The user can specify the path for storing relevant data library (recommended) and the path for the module.
library("BARTsc")
initialize()Start installing bart2 and related data library? (Yes/no/cancel) Yes Installation started...
Specify the absolute path to existing data library, e.g. Data/Path/bart2_library (skip if the data library is uninstalled):
Specify the path to store data library 13.3GB (skip to store under bartsc R package directory): /path/of/data/library ... Specify the path to install bart2 (skip to install under bartsc R package directory): /path/of/module
If you encounter a “connection timed out” error while installing the data library, it may indicate that your network is blocking access to the Box server used for hosting the files.
In this case, you may try
(1) run initialize() with parameter site="zenodo", which allows you to switch to our Zendo mirror. (recommend)
(2) connecting through a VPN and retry the installation.
(3) download the data library from our OneDrive mirror and install it manually (see below).
We recommend you installing data library through initialize() command. However, in the cases when there are connection errors, you may want to install it manually.
First, download the data library using any of the following public URLs.
hg38: https://virginia.box.com/shared/static/2kqczz9gixetcr9p4bl650uyrio5zd33.gz
mm10: https://virginia.box.com/shared/static/bxdggnhp4bjz2l5h2zjlisnzp0ac7axf.gz
hg38:https://zenodo.org/records/18854649/files/hg38_library.tar.gz?download=1
mm10:https://zenodo.org/records/18854649/files/mm10_library.tar.gz?download=1
hg38:https://myuva-my.sharepoint.com/:u:/g/personal/hz9fq_virginia_edu/IQB2IqcSn23wSaVIP9PoUS1iAVgA5x4T06AzsBcrQ0wLiDA?e=RPOgde
mm10:https://myuva-my.sharepoint.com/:u:/g/personal/hz9fq_virginia_edu/IQCankHDq3WqQIO7zYFP3EiqAe_bjFK14kWsQ8kJIpYOJZg?e=pO5PK1
Then, run the following code to install the data library.
# create a target directory
mkdir Data/Path/bart2_library
cd Data/Path/bart2_library
# download data library or,
# transfer the downloaded data to your target directory
cp OneDrive/Path/hg38_library.tar.gz .
cp OneDrive/Path/mm10_library.tar.gz .
# decompress
tar zxf hg38_library.tar.gz
tar zxf mm10_library.tar.gz
rm hg38_library.tar.gz
rm mm10_library.tar.gzAfter the library data is set up, when you go through the setup wizard using initialize(), input Data/Path/bart2_library as existing data library.
BARTsc is made to identify functional transcriptional regulators and reveal relative TF activity between cell types in scRNA-seq, scATAC-seq and single-cell multiome data. Click following links to learn how to apply BARTsc analysis on your data.