Skip to content
bismark-rust-v3.0.0

Quick Reference

Bismark is run from the command line. Bowtie 2 or HISAT2 needs to be installed on your computer. For more information on how to run Bismark with Bowtie 2 please go to the end of this manual.

As of version 0.14.0 or higher, Bismark may be run using parallelisation for both the alignment and the methylation extraction step. Search for --parallel / --multicore for more details below.

First you need to download a reference genome and place it in a genome folder. Genomes can be obtained e.g. from the Ensembl or NCBI websites. For the example below you would need to download the Homo sapiens genome. Bismark supports reference genome sequence files in FastA format, allowed file extensions are either either .fa or .fasta. Both single-entry and multiple-entry FastA files are supported.

The following examples will use the file test_dataset.fastq which is available for download from the Bismark project or Github pages (it contains 10,000 reads in FastQ format, Phred33 qualities, 50 bp long reads, from a human directional BS-Seq library). An example report can be found in Appendix IV.

Bismark ships as a single bismark binary. bismark <subcommand> is the recommended interface; the classic tool names remain fully supported as argv[0] aliases (a drop-in for existing pipelines and nf-core/methylseq).

SubcommandClassic namePurpose
bismark / bismark alignbismarkbisulfite read alignment
bismark dedupdeduplicate_bismarkdeduplicate alignments
bismark extractbismark_methylation_extractormethylation extraction
bismark bedgraphbismark2bedGraphbedGraph + coverage from extractor output
bismark cov2cytcoverage2cytosinegenome-wide cytosine report
bismark preparebismark_genome_preparationbuild the bisulfite genome indices
bismark bam2nucbam2nucmono-/di-nucleotide coverage stats
bismark nomeNOMe_filteringNOMe-seq GpC/CpG separation
bismark filterfilter_non_conversionfilter incompletely converted reads
bismark consistencymethylation_consistencysplit reads by methylation concordance
bismark reportbismark2reportper-sample HTML report
bismark summarybismark2summaryproject-level HTML summary

USAGE:

Terminal window
bismark prepare [options] <path_to_genome_folder>

A typical genome indexing could look like this:

Terminal window
bismark prepare --path_to_aligner /usr/bin/bowtie2/ --verbose /data/genomes/homo_sapiens/GRCh37/

USAGE:

Terminal window
bismark [options] --genome <genome_folder> {-1 <mates1> -2 <mates2> | <singles>}

Typical alignment example:

Terminal window
bismark --genome /data/genomes/homo_sapiens/GRCh37/ test_dataset.fastq

This will produce two output files:

  1. test_dataset_bismark_bt2.bam (contains all alignments plus methylation call strings)
  2. test_dataset_bismark_SE_report.txt (contains alignment and methylation summary)
Terminal window
bismark dedup --bam [options] <filenames>

This command will deduplicate the Bismark alignment BAM file and remove all reads but one which align to the the very same position and in the same orientation. This step is recommended for whole-genome bisulfite samples, but should not be used for reduced representation libraries such as RRBS, amplicon or target enrichment libraries.

USAGE:

Terminal window
bismark extract [options] <filenames>

A typical command to extract context-dependent (CpG/CHG/CHH) methylation could look like this:

Terminal window
bismark extract --gzip --bedGraph test_dataset_bismark_bt2.bam

This will produce three methytlation output files:

  • CpG_context_test_dataset_bismark_bt2.txt.gz
  • CHG_context_test_dataset_bismark_bt2.txt.gz
  • CHH_context_test_dataset_bismark_bt2.txt.gz

as well as a bedGraph and a Bismark coverage file. For more on these files and their formats please see below.

USAGE:

bismark report [options]

This command attempts to find Bismark alignment, deduplication and methylation extraction (splitting) reports as well as M-bias files to generate a graphical HTML report such as this example Bismark paired-end report for each sample in a directory.

USAGE:

bismark summary [options]

This command scans the current working directory for different Bismark alignment, deduplication and methylation extraction (splitting) reports to produce a graphical summary HTML report, as well as a data table, for all files in a directory. Here is a sample Bismark Summary Report. The Bismark summary report is meant to give you a quick visual overview of the alignment statistics for a large number of samples (tens, hundreds or thousands of samples); if you only want to look at a single report please check out bismark report.