Skip to content

yasin-uzun/SINBAD.1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SINBAD: A pipeline for processing SINgle cell Bisulfite sequencing samples and Analysis of Data

SINBAD is an R package for processing single cell DNA methylation data. It accepts fastq files as input, performs demultiplexing, adapter trimmming, mapping, quantification, dimensionality reduction and differential methylation analysis for single cell DNA methylation datasets.

NOTE: SINBAD 1.0 is tested on paired snmC-Seq data.

System requirements

R 3.6.0 or later version is required for installation.

Installation

To install SINBAD, install vioplot first:

install.packages("vioplot")

Then type the following commands in R command prompt:

library(devtools)
install_github("yasin-uzun/SINBAD.1.0")

Once you have installed the SINBAD, verify that it is installed correctly as follows:

library(SINBAD)
SINBAD::test()

If SINBAD is installed without any problems, you should see the following message:
SINBAD installation is ok.

Dependencies

To run SINBAD, you need to have the underlying software:

  • Adapter Trimmer: Cutadapt or TrimGalor or Trimmomatic
  • Aligner: Bismark (with Bowtie) or BSMAP or BS3
  • Duplicate removal: samtools
  • Demultiplexer: demultiplex_fastq.pl perl script (see below).

Note that you only need the tools you will use to be installed, i.e, you don't need BSMAP or BS3 if you will only use Bismark as the aligner.

You can install these tools by yourself. For convenience, we provide the binaries in here . Please cite the specific tool when you use it, in adition to MethylPipe.

You can download demultiplex_fastq.pl script from here.

You also need genomic sequence and annotated genomic regions for quantification of methylation calls. We provide the sequence data for hg38 assembly in here.

Configuration

To run SINBAD, you need three configuration files to modify:

  • config.general.R : Sets the progam paths to be used by MethylPipe. You need to edit this file only once.
  • config.genome.R : Sets the genomic information and paths to be used by MethylPipe. You need to generate one for each organism. We provide the built-in configuration by hg38.
  • config.project.R : You need to configure this file for your project.

You can download the templates for the configuration files from here and edit them for your purposes.

Running

You can run SINBAD as follows:

# Import libraries
library(SINBAD)
SINBAD::test()
packageVersion('SINBAD')
library(doSNOW)

# Read configuration parameters
config_dir = 'config_files/config_files.hg38_plus_lambda.paired/'
read_configs(config_dir)

# Set input and output directories, sample name
raw_fastq_dir = 'data/example_paired/reads/'
demux_index_file = paste0('data/demux_index.snmc.txt')
working_dir = 'data/example_paired/working_dir/'
dir.create(working_dir, recursive = T)
sample_name <- 'Sample'

# Do the processing
process_sample_wrapper(raw_fastq_dir, demux_index_file, working_dir, sample_name)
  • config_dir should point to your configuration file directory (mentioned above).
  • raw_fastq_dir should point to the directory containing fastq files as the input.
  • demux_index_file should point to the demultiplexing index file for the fastq files.
  • working_dir should point to the directory where all the outputs will be placed into.
  • sample_name is the name for the sample or project.

This function reads fastq files, demultiplexes them into single cells, performs filtering, mapping (alignment), DNA methylation calling and quantification, dimensionality reduction, clustering and differential methylation analysis for the given input. All the outputs are placed into related directories in working_dir.

Example Data

To try SINBAD with some example data, please contact the authors (see below).

Citation

If you use SINBAD in your study, please cite it as follows:

Yasin Uzun, Wenbao Yu, Changya Chen and Kai Tan. SINBAD: a flexible tool for single cell DNA methylation data. bioRxiv, 2021. doi: https://doi.org/10.1101/2021.10.23.465577

Contact

For any questions or comments, please contact Yasin Uzun (uzuny at email chop edu)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published