All Projects → jdidion → atropos

jdidion / atropos

Licence: other
An NGS read trimming tool that is specific, sensitive, and speedy. (production)

Programming Languages

python
139335 projects - #7 most used programming language
TeX
3793 projects
Nextflow
61 projects
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to atropos

Fusiondirect.jl
(No maintenance) Detect gene fusion directly from raw fastq files
Stars: ✭ 23 (-78.9%)
Mutual labels:  bioinformatics, ngs
Bioconvert
Bioconvert is a collaborative project to facilitate the interconversion of life science data from one format to another.
Stars: ✭ 112 (+2.75%)
Mutual labels:  bioinformatics, ngs
Fastp
An ultra-fast all-in-one FASTQ preprocessor (QC/adapters/trimming/filtering/splitting/merging...)
Stars: ✭ 966 (+786.24%)
Mutual labels:  bioinformatics, ngs
Htslib
C library for high-throughput sequencing data formats
Stars: ✭ 529 (+385.32%)
Mutual labels:  bioinformatics, ngs
Fgbio
Tools for working with genomic and high throughput sequencing data.
Stars: ✭ 166 (+52.29%)
Mutual labels:  bioinformatics, ngs
Galaxy
Data intensive science for everyone.
Stars: ✭ 812 (+644.95%)
Mutual labels:  bioinformatics, ngs
Gatk
Official code repository for GATK versions 4 and up
Stars: ✭ 1,002 (+819.27%)
Mutual labels:  bioinformatics, ngs
ctdna-pipeline
A simplified pipeline for ctDNA sequencing data analysis
Stars: ✭ 29 (-73.39%)
Mutual labels:  bioinformatics, ngs
Scde
R package for analyzing single-cell RNA-seq data
Stars: ✭ 147 (+34.86%)
Mutual labels:  bioinformatics, ngs
Ngless
NGLess: NGS with less work
Stars: ✭ 115 (+5.5%)
Mutual labels:  bioinformatics, ngs
Deeptools
Tools to process and analyze deep sequencing data.
Stars: ✭ 448 (+311.01%)
Mutual labels:  bioinformatics, ngs
Deepvariant
DeepVariant is an analysis pipeline that uses a deep neural network to call genetic variants from next-generation DNA sequencing data.
Stars: ✭ 2,404 (+2105.5%)
Mutual labels:  bioinformatics, ngs
Jvarkit
Java utilities for Bioinformatics
Stars: ✭ 313 (+187.16%)
Mutual labels:  bioinformatics, ngs
Manorm
A robust model for quantitative comparison of ChIP-Seq data sets.
Stars: ✭ 16 (-85.32%)
Mutual labels:  bioinformatics, ngs
platon
Identification & characterization of bacterial plasmid-borne contigs from short-read draft assemblies.
Stars: ✭ 52 (-52.29%)
Mutual labels:  bioinformatics, ngs
Migmap
HTS-compatible wrapper for IgBlast V-(D)-J mapping tool
Stars: ✭ 38 (-65.14%)
Mutual labels:  bioinformatics, ngs
peppy
Project metadata manager for PEPs in Python
Stars: ✭ 29 (-73.39%)
Mutual labels:  bioinformatics, ngs
gencore
Generate duplex/single consensus reads to reduce sequencing noises and remove duplications
Stars: ✭ 91 (-16.51%)
Mutual labels:  bioinformatics, ngs
Ugene
UGENE is free open-source cross-platform bioinformatics software
Stars: ✭ 112 (+2.75%)
Mutual labels:  bioinformatics, ngs
Afterqc
Automatic Filtering, Trimming, Error Removing and Quality Control for fastq data
Stars: ✭ 169 (+55.05%)
Mutual labels:  bioinformatics, ngs

Travis CI PyPi DOI

Atropos

Atropos is tool for specific, sensitive, and speedy trimming of NGS reads. It is a fork of the venerable Cutadapt read trimmer (https://github.com/marcelm/cutadapt, DOI:10.14806/ej.17.1.200), with the primary improvements being:

  1. Multi-threading support, including an extremely fast "parallel write" mode.
  2. Implementation of a new insert alignment-based trimming algorithm for paired-end reads that is substantially more sensitive and specific than the original Cutadapt adapter alignment-based algorithm. This algorithm can also correct mismatches between the overlapping portions of the reads.
  3. Options for trimming specific types of data (miRNA, bisulfite-seq).
  4. A new command ('detect') that will detect adapter sequences and other potential contaminants.
  5. A new command ('error') that will estimate the sequencing error rate, which helps to select the appropriate adapter- and quality- trimming parameter values.
  6. A new command ('qc') that generates read statistics similar to FastQC. The trim command can also compute read statistics both before and after trimming (using the '--stats' option).
  7. Improved summary reports, including support for serialization formats (JSON, YAML, pickle), support for user-defined templates (via the optional Jinja2 dependency), and integration with MultiQC.
  8. The ability to merge overlapping reads (this is experimental and the functionality is limited).
  9. The ability to write the summary report and log messages to separate files.
  10. The ability to read SAM/BAM files and read/write interleaved FASTQ files.
  11. Direct trimming of reads from an SRA accession.
  12. A progress bar, and other minor usability enhancements.

Manual installation

Atropos is available from pypi and can be installed using pip.

First install dependencies:

  • Required
  • Maybe python libraries
    • pytest (for running unit tests)
    • progressbar2 or tqdm (progressbar support)
    • pysam (SAM/BAM input)
    • khmer 2.0+ (for detecting low-frequency adapter contamination)
    • jinja2 (for user-defined report formats)
    • ngstream (for SRA streaming), which requires ngs

Pip can be used to install atropos and optional dependencies, e.g.:

pip install atropos[tqdm,pysam,ngstream]

Conda

There is an Atropos recipe in Bioconda.

conda install -c bioconda atropos

Docker

A Docker image is available for Atropos in Docker Hub.

docker run jdidion/atropos <arguments>

Usage

Atropos is almost fully backward-compatible with cutadapt. If you currently use cutadapt, you can simply install Atropos and then substitute the executable name in your command line, with one key difference: you need to use options to specify input file names. For example:

atropos -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCACGAGTTA -o trimmed.fq.gz -se reads.fq.gz

To take advantage of multi-threading, set the --threads option:

atropos --threads 8 -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCACGAGTTA -o trimmed.fq.gz -se reads.fq.gz

To take advantage of the new aligner (if you have paired-end reads with 3' adapters), set the --aligner option to 'insert':

atropos --aligner insert -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCACACAGTGATCTCGTATGCCGTCTTCTGCTTG \
  -A AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTAGATCTCGGTGGTCGCCGTATCATT -o trimmed.1.fq.gz -p trimmed.2.fq.gz \
  -pe1 reads.1.fq.gz -pe2 reads.2.fq.gz

See the Documentation for more complete usage information.

Publications

Atropos is published in PeerJ.

Please cite as:

Didion JP, Martin M, Collins FS. (2017) Atropos: specific, sensitive, and speedy trimming of sequencing reads. PeerJ 5:e3720 https://doi.org/10.7717/peerj.3720

The results in the paper can be fully reproduced using the workflow defined in the paper directory.

The citation for the original Cutadapt paper is:

Marcel Martin. "Cutadapt removes adapter sequences from high-throughput sequencing reads." EMBnet.Journal, 17(1):10-12, May 2011. http://dx.doi.org/10.14806/ej.17.1.200

Links

Roadmap

1.2

  • Migrate to xphyle for file management.
  • Migrate to pokrok for progress bar management.
  • Accept multiple input files.
  • Support SAM output (including #33).
  • Direct streaming and trimming of reads from SRA and htsget using ngstream.
  • Read "cropping" (#50)
  • Support for ThruPlex-style adapters (in which barcode is part of query sequence; #55)
  • Accessibility:
    • Create recipe for homebrew.
    • Automatically update conda and homebrew recipes for each release.
    • Create Galaxy tool description using argparse2tool.
  • Improve documentation (#24)
  • Port over improvements in latest versions of Cutadapt https://cutadapt.readthedocs.io/en/stable/
  • Switch to using entry point instead of Atropos executable.

1.3

  • Add auto-trimming mode for paired-end reads.
  • Support for UMIs.
  • Provide PacBio- and nanopore-specific options (marcelm/cutadapt#120).
  • Provide option for RNA-seq data that will trim polyA sequence.
  • Add formal config file support (#53)
  • Automate crash reporting using sentry.
  • Look at [NGMerge] for improving read merging: https://github.com/harvardinformatics/NGmerge
  • Look at replacing pysam with pybam

1.4

  • Currently, InsertAligner requires a single 3' adapter for each end. Adapter trimming will later be generalized so that A) the InsertAligner can handle multiple matched pairs of adapters and/or B) multiple different aligners can be used for different adapters.
  • Integrate with AdapterBase for improved matching of detected contaminants to known adapters, automated trimming of datasets with known adapters, and (opt-in) submission of adapter information for novel datasets.
  • Migrate to seqio (https://github.com/jdidion/seqio) for reading/writing sequence files.
  • General-purpose read filtering based on read ID: marcelm/cutadapt#107.
  • Currently, SAM/BAM input files must be name sorted; add an option to 1) pre-sort reads inline using samtools or sambamba, or 2) cache each read in memory until its mate is found.

1.5

  • Provide more user control over anchoring of adapters: marcelm/cutadapt#53.
  • Enable user to define custom read structure: https://github.com/nh13/read-structure-examples
  • Support for paired-end demultiplexing
  • Demultiplexing based on barcodes: marcelm/cutadapt#118.
  • Consider supporting different error rates for read1 vs read2.
  • Add a ClipOverlapping modifier that will remove read overlaps (as opposed to merging).
  • Look more closely at providing solutions to the Illumina two-color chemistry issue:
    • Provide and option to exempt G calls from the assessment of quality
    • Trim 3′ Gs from reads
  • Also look at addressing any issues with one-color chemistry (iSeq).
  • Consider whether to support trimming/QC of raw IonTorrent data.

1.6

2.0

Beyond 2.0

  • Implement additional alternate alignment algorithms.
  • Implement the error detection algorithm in ADEPT: https://github.com/LANL-Bioinformatics/ADEPT
  • Explore new quality trimming algorithms
  • Scythe is an interesting new trimmer. Depending on how the benchmarks look in the forthcoming paper, we will add it to the list of tools we compare against Atropos, and perhaps implement their Bayesian approach for adapter match.
  • Experiment with replacing the multicore implementation with an asyncio-based implementation (using ProcessPoolExecutor and uvloop).
  • Automatic adaptive tuning of queue sizes to maximize the balance between memory usage and latency.
  • FastProNGS has some nice visualizations that could be included, rather than relying on MultiQC: https://github.com/Megagenomics/FastProNGS

While we consider the command-line interface to be stable, the internal code organization of Atropos is likely to change. At this time, we recommend to not directly interface with Atropos as a library (or to be prepared for your code to break). The internal code organization will be stabilized as of version 2.0, which is planned for sometime in 2017.

If you would like to suggest additional enhancements, you can submit issues and/or pull requests at our GitHub page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].