Giter VIP home page Giter VIP logo

umitools's Introduction

#umitools

DOI

Tools to handle reads sequenced with unique molecular identifiers (UMIs).

Trim the UMI

Incorporate the UMI into the read name in order to later identify while processing mapped reads.

umitools trim --end 5 unprocessed_fastq NNNNNV > out.fq

If you want to save reads with invalid UMI sequences, you can specify --invalid.

umitools trim --end 5 --invalid bad_umi.fq unprocessed_fastq NNNNNV > out.fq

Remove Duplicates

For any given start site, save only one read per UMI. Writes bed3+ to stdout with before and after counts per start.

umitools rmdup unprocessed.bam out.bam > before_after.bed

Specifying --mismatches will, for a given start site, merge all UMIs within that edit distance into a single unique hit. For example, if a new UMI is within a single mismatch of any existing observed UMIs for a start position, it will be merged and considered a duplicate. The mismatch can occur at any position, regardless of the IUPAC sequence you're using.

Installation

umitools has two requirements: pysam and editdist. Use pip to install pysam.

pip install pysam

editdist has to be downloaded and installed from source (Downloads page).

wget https://py-editdist.googlecode.com/files/py-editdist-0.3.tar.gz
tar xzf py-editdist-0.3.tar.gz
cd py-editdist-0.3/
python setup.py install

Finally download and install umitools from source.

wget -O umitools-master.zip https://github.com/brwnj/umitools/archive/master.zip
unzip umitools-master.zip
cd umitools-master
python setup.py install

umitools's People

Contributors

brwnj avatar jayhesselberth avatar jdblischak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.