Calculate Percent Discordant Reads (PDR) in bisulfite sequencing.
286
This repository https://github.com/aryeelab/dna-methylation-tools contains a suite of tools to conduct DNA methylation data analysis. It is maintained by Divy Kangeyan at the Aryee Lab
This platform contains publicly accessible cloud-based preprocessing and quality control pipelines that go from raw data to CpG-level methylation estimates. The technologies covered include Whole Genome Bisulfite Sequencing (WGBS), Reduced Representation Bisulfite Sequencing (RRBS) and Hybrid Selection (capture) Bisulfite Sequencing (HSBS). Leveraging the FireCloud platform allows users to:
Analysis should be run in two successive processes:
If you plan to use the WDL workflows in your local computing environment, then this repository should be cloned. If you are using FireCloud, then you should either clone the FireCloud workspace aryee-lab/dna-methylation or if you already have your own workspace you can import the method configuration of your interest from aryee-lab/dna-methylation workspace.
FASTQ files and target coverage files can be uploaded to FireCloud using gsutil (https://pypi.org/project/gsutil/)
Before running the processes, you need to generate participants file and participant_set file. Each line in participant file specify a single sample.
entity:participant_id column specifies the sample name
bs_fastq1 & bs_fastq2 specify the paired fastq files.
If one sample has multiple FASTQ files for different lanes or runs they can be added in the same column with comma separation.
Each line in participant_set file specify a set of samples that should be aggregated and analyzed together.
membership:participant_set_id specify the name of the participant set.
participant_id column specify the names of the participants in the set.
Both of these files are tab separated text files. Examples of these files are shown in Firecloud_imports subdirectory.
In order to perform alignment and methylation calling choose bismark_rrbs, bismark_wgbs or bismark_hsbs method configuration with appropriate reference genome suffix. As the name indicates bismark_rrbs is for samples that are generated from Reduced Representation Bisulfite Sequencing (RRBS) with Mspl digestion and bismark_wgbs is for data generated from Whole Genome Bisulfite Sequencing (WGBS). bismark_hsbs is for data generated from Hybrid Selection Bisulfite Sequencing (HSBS). These worflows can also combine fastq files from multiple lanes if the samples are sequenced in such a way.
If you are interested in conducting alignment and methylation calling for an entire participant set. Choose the participant set and in the box named Define expression type this.participants
You can observe the status of the job by going to Monitor tab
r1_fastq & r2_fastq
samplename
genome_index
n_bp_trim_read1 & n_bp_trim_read1
chrom_sizes
After the alignment and methylation calling each sample will have their methylation information and metadata stored in HDF5 format
In order to aggregate all of them and obtain the quality control report
To check the results from any of the work flows, go to Monitor tab, click View in the Status columns and then click the Workflow ID in the bottom of the page.
in_pe_reports_files
in_covgz_files
in_mbias_files
BSGenome_targz
BSGenome_package
Genome_build
cpu
disks
memory
multicore
preemptible
The per-sample preprocessing WDL workflow input parameters consist primarily of input file names and the Bismark genome index to use. A subset of the outputs from this step (Mbias files and methylated and unmethylated read coverage tables) are passed on as inputs to the subsequent aggregation and QC WDL workflow which in turn produces a QC report, aggregated methylation tables and a Bioconductor (bsseq) object. All tasks specify runtime parameters including disk size, CPU and memory requirements, and the docker image version to be executed.
Quality control analysis is conducted via the bioconductor package scmeth. QC analysis can be done independently with this package given that you have the appropriate objects.
git clone aryeelab/dna-methylation-tools
cd dna-methylation-tools
wget https://storage.googleapis.com/aryeelab/bismark-index/mm10_chr19/bismark_mm10_chr19.tar.gz
wget https://storage.googleapis.com/aryeelab/chrom.sizes/mm10_chr19.chrom.sizes
Note: On Mac, cromwell can be installed with the following command
brew install cromwell
Users can also use the following command in order to install cromwell from the docker image in this repo.
docker build Docker/cromwell
Following commands are based on cromwell version 30.
Edit the file paths for FASTQ files, genome index, chrom.sizes file and monitoring script in the json file according to your directory paths to run the test sample.
{
"call_bismark_pool.r1_fastq": "[INSERT ABSOLUTE PATH]/dna-methylation-tools/testdata/small_01_R1.fastq.gz",
"call_bismark_pool.r2_fastq": "[INSERT ABSOLUTE PATH]/dna-methylation-tools/testdata/small_01_R2.fastq.gz",
"call_bismark_pool.chrom_sizes": "[INSERT ABSOLUTE PATH]/dna-methylation-tools/mm10.chrom.sizes",
"call_bismark_pool.monitoring_script": "[INSERT ABSOLUTE PATH]/dna-methylation-tools/monitor.sh",
"call_bismark_pool.genome_index": "[INSERT ABSOLUTE PATH]/dna-methylation-tools/bismark_mm10_chr19.tar.gz"
}
java -jar cromwell-30.2.jar run bismark_wgbs.wdl -i bismark_wgbs.json
java -jar cromwell-30.2.jar run bismark_rrbs.wdl -i bismark_rrbs.json
java -jar cromwell-30.2.jar run bismark_hsbs.wdl -i bismark_hsbs.json
java -jar cromwell-30.2.jar run aggregate_bismark_output.wdl -i aggregate_bismark.json
java -jar cromwell-30.2.jar run bsseq_preprocess_se.wdl -i sample1_se.json
We estimated the time and cost for Whole Genome Bisulfite Sequencing (WGBS) sample from TCGA that contains approximately 290 million reads.
Also following plot shows the time & cost estimates for single cell samples in non-preemptible machine
For 10 sample set: samples were sequenced with a median of 741,214 reads (range of 414,443 to 1,825,672)
For 25 sample set: samples were sequenced with a median of 1,044,720 reads (range of 10,507 to 3,644,360)
Plots below are for same sample set but in preemptible machine
We also conducted similar analysis for the aggregation step
We have preprocessed and made available 47 WGBS samples available from TCGA. The raw (FASTQ) data, processed data and workflows are made available in a FireCloud workspace (See https://portal.firecloud.org/#workspaces/aryee-merkin/TCGA_WGBS_hg19). Processed data can also be found in bsseq format in tcgaWGBSData.hg19 package (https://bioconductor.org/packages/release/data/experiment/html/tcgaWGBSData.hg19.html).
Please use the Github Issues tracker with any issue you face with the platform. Any specific questions or comments, contact me at [email protected]
Content type
Image
Digest
Size
234.1 MB
Last updated
over 7 years ago
docker pull aryeelab/pdr