Skip to main content

Bioinformatic pipeline for the CHANGE-seq assay.

Project description

Version Python versions Platforms

CHANGE-seq: Circularization for High-throughput Analysis Nuclease Genome-wide Effects by Sequencing

This is a repository for CHANGE-seq analytical software, which takes sample-specific paired-end FASTQ files as input and produces a list of CHANGE-seq detected off-target cleavage sites as output.

Summary

This package implements a pipeline that takes in reads from the CHANGE-seq assay and returns detected cleavage sites as output. The individual pipeline steps are:

  1. Merge: Merge read1 an read2 for easier mapping to genome.
  2. Read Alignment: Merged paired end reads from the assay are aligned to the reference genome using the BWA-MEM algorithm with default parameters (Li. H, 2009).
  3. Cleavage Site Identification: Mapped sites are analyzed to determine which represent high-quality cleavage sites.
  4. Visualization of Results: Identified on-target and off-target cleavage sites are rendered as a color-coded alignment map for easy analysis of results.

Installation

The most easiest way to install change-seq pipeline is via conda.


conda create -n changeseq -c conda-forge -c bioconda -c anaconda -c omnia -c tsailabSJ changeseq

source activate changeseq

changeseq.py -h

## BWA 0.7.17 and samtools 1.9 are automatically installed

## If Homer is available, the identified off-targets will be annotated using "annotatePeaks.pl", specify the genome version in the YAML file.


Alternatively, you can git clone this repository and install


git clone https://github.com/tsailabSJ/changeseq

cd changeseq

pip install -r requirements.txt

python setup.py install

changeseq.py -h

## Please install BWA and samtools if you choose this option

Download Reference Genome

The CHANGEseq package requires a reference genome for read mapping. You can use any genome of your choosing, but for all of our testing and original CHANGE-seq analyses we use hg19 (download). Be sure to (g)unzip the FASTA file before use if it is compressed.

Usage

The change-seq pipeline requires a manifest yaml file specifying input files, output directory, and pipeline parameters. Once the yaml file is created, users can simply run change_seq.py all --manifest /path/to/manifest.yaml

Below is an example manifest.yaml file::

reference_genome: /data/joung/genomes/Homo_sapiens_assembly19.fasta
analysis_folder: /data/joung/CHANGE-Seq/test2

bwa: bwa
samtools: samtools

read_threshold: 4
window_size: 3
mapq_threshold: 50
start_threshold: 1
gap_threshold: 3
mismatch_threshold: 6
search_radius: 30
merged_analysis: True

samples:
    U2OS_exp1_VEGFA_site_1:
        target: GGGTGGGGGGAGTTTGCTCCNGG
        read1: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/1_S1_L001_R1_001.fastq.gz
        read2: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/1_S1_L001_R2_001.fastq.gz
        controlread1: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/4_S4_L001_R1_001.fastq.gz
        controlread2: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/4_S4_L001_R2_001.fastq.gz
        description: U2OS_exp1
    U2OS_exp1_EMX1:
        target: GAGTCCGAGCAGAAGAAGAANGG
        read1: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/2_S2_L001_R1_001.fastq.gz
        read2: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/2_S2_L001_R2_001.fastq.gz
        controlread1: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/4_S4_L001_R1_001.fastq.gz
        controlread2: /data/joung/sequencing_fastq/150902_M01326_0235_000000000-AHLT8/fastq/4_S4_L001_R2_001.fastq.gz
        description: U2OS_exp1

Quickstart


git clone https://github.com/tsailabSJ/changeseq

cd changeseq/test

changeseq.py all --manifest CIRCLEseq_MergedTest.yaml

Example Output

x

Writing A Manifest File

When running the end-to-end analysis functionality of the CHANGEseq package a number of inputs are required. To simplify the formatting of these inputs and to encourage reproducibility, these parameters are inputted into the pipeline via a manifest formatted as a YAML file. YAML files allow easy-to-read specification of key-value pairs. This allows us to easily specify our parameters. The following fields are required in the manifest:

  • reference_genome: The absolute path to the reference genome FASTA file.
  • output_folder: The absolute path to the folder in which all pipeline outputs will be saved.
  • bwa: The absolute path to the bwa executable
  • samtools: The absolute path to the samtools executable
  • read_threshold: The minimum number of reads at a location for that location to be called as a site. We recommend leaving it to the default value of 4.
  • window_size: Size of the sliding window, we recommend leaving it to the default value of 3.
  • mapq_threshold: Minimum read mapping quality score. We recommend leaving it to the default value of 50.
  • start_threshold: Tolerance for breakpoint location. We recommend leaving it to the default value of 1.
  • gap_threshold: Distance between breakpoints. We recommend leaving it to the default value of 3 for Cas9.
  • mismatch_threshold: Number of tolerated gaps in the fuzzy target search setp. We recommend leaving it to the default value of 6.
  • read_length: Fastq file read length, default is 151.
  • PAM: PAM sequence, default is NGG.
  • genome: used for homer peak annotation, e.g., hg19, hg38, mm9, or mm10.
  • merged_analysis: Whether or not the paired read merging step should takingTrue
  • samples: Lists the samples you wish to analyze and the details for each. Each sample name should be nested under the top level samples key, and each sample detail should be nested under the sample name. See the sample manifest for an example.
    • For each sample, you must provide the following parameters:
      • target: Target sequence for that sample. Accepts degenerate bases.
      • read1: The absolute path to the .FASTQ(.gz) file containing the read1 reads.
      • read2: The absolute path to the .FASTQ(.gz) file containing the read2 reads.
      • controlread1: The absolute path to the .FASTQ(.gz) file containing the control read1 reads.
      • controlread2: The absolute path to the .FASTQ(.gz) file containing the control read2 reads.
      • description: A brief description of the sample

Pipeline Output

When running the full pipeline, the results of each step are outputted to the output_folder in a separate folder for each step. The output folders and their respective contents are as follows:

  • output_folder/aligned: Contains an alignment .sam, alignment .bam, sorted bam, and .bai index file for each sample.
  • output_folder/fastq: Merged .fastq.gz files for each sample.
  • output_folder/identified: Contains tab-delimited .txt files for each sample containing the identified DSBs, control DSBs, filtered DSBs, and read quantification.
  • output_folder/visualization: Contains a .svg vector image representing an alignment of all detected off-targets to the targetsite for each sample.

FAQ

Homer installation


conda install -c bioconda homer

# To install genome annotation
# Ref: http://homer.ucsd.edu/homer/introduction/configure.html

## Suppose you want to install hg19, follow the command here:

annotatePeaks.pl xxx hg19

## You should be able to see:

!!!!Genome hg19 not found in /rgs01/project_space/tsaigrp/Genomics/common/anaconda3/envs/changeseq/share/homer-4.11-2/.//config.txt

	To check if is available, run "perl /rgs01/project_space/tsaigrp/Genomics/common/anaconda3/envs/changeseq/share/homer-4.11-2/.//configureHomer.pl -list"
	If so, add it by typing "perl /rgs01/project_space/tsaigrp/Genomics/common/anaconda3/envs/changeseq/share/homer-4.11-2/.//configureHomer.pl -install hg19"

## Copy and paste the perl command to install genome annotation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

changeseq-1.2.9.1.tar.gz (491.6 kB view details)

Uploaded Source

Built Distributions

changeseq-1.2.9.1-py2.7.egg (1.5 MB view details)

Uploaded Source

changeseq-1.2.9.1-py2-none-any.whl (1.5 MB view details)

Uploaded Python 2

File details

Details for the file changeseq-1.2.9.1.tar.gz.

File metadata

  • Download URL: changeseq-1.2.9.1.tar.gz
  • Upload date:
  • Size: 491.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15

File hashes

Hashes for changeseq-1.2.9.1.tar.gz
Algorithm Hash digest
SHA256 79ae8d75796195fa53991d3c8d9229bfaea0f131ea620e2415c82702ef9aad4a
MD5 0dd6eeb876fdc8c556a1e13d1cf5f0a2
BLAKE2b-256 c9573aae9f106203bc9981c60708c7cfc663a87998ffebc417f8deb415e074d2

See more details on using hashes here.

File details

Details for the file changeseq-1.2.9.1-py2.7.egg.

File metadata

  • Download URL: changeseq-1.2.9.1-py2.7.egg
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15

File hashes

Hashes for changeseq-1.2.9.1-py2.7.egg
Algorithm Hash digest
SHA256 308912b36c008b8eb597f6193f204083477dfbf2b3b8634e4ca99348d94a5bea
MD5 627a9f0b6b423572676443898172c64b
BLAKE2b-256 f9a615f4ebd34e0594cb184df28859b59e38155947d3b88644544aee418b9b0e

See more details on using hashes here.

File details

Details for the file changeseq-1.2.9.1-py2-none-any.whl.

File metadata

  • Download URL: changeseq-1.2.9.1-py2-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15

File hashes

Hashes for changeseq-1.2.9.1-py2-none-any.whl
Algorithm Hash digest
SHA256 104a8552247791f0d108f0f37895eeffc4efae8cd7ddcdd72f1394d866a8cbbc
MD5 f16e3de0b54b1027020f12e9532d264d
BLAKE2b-256 1b9ea0697b5a60370d0bdd8ca4049ffad4208886f8fb25ee616c4cb0918b9b51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page