Code Monkey home page Code Monkey logo

mirna_processing's Introduction

smRNA / miRNA Processing

Usage

Usage:

pipeline.sh
            [-r <genome_reference_file> (FASTA)>]
            [-g <genome_feature_file (GTF/GFF)>]
            [-m <mirbase_file (FASTA)>]
            [-o <output_directory>]
            [-n <cores>]
            [-f (overwrite existing files)]
            [-k (keep temp files)]
            <sequence_file> [<additional_sequence_files> <will_be_merged> <before_processing>]

What It Does

Aligns single-read (not paired-end) RNA samples to reference genomes, annotates them, and counts gene frequencies. Also aligns against miRBase. Visualizes read lengths after trimming. More specifically:

  • Merges multiple FASTQ files into a single FASTQ file (simple concatenation)
  • Trims adapter sequences using cutadapt
  • Aligns to a reference file specified by the user using bowtie2
  • Tallies the number of times reads align to each feature in an annotation file specified by the user
  • Aligns to the miRBase microRNA database (http://www.mirbase.org)
  • Visualizes the read lengths after trimming on a histogram created with matplotlib

What It Does Not Do

  • Automatically generate a report or statistics. This must be done manually, although an example report in RST format is supplied

Required Software

  • bowtie2
  • HTSeq (python module)
  • matplotlib (python module)

Input

  • Single-read sample data in FASTQ format
  • Reference genome for alignment in fasta format (with bowtie2 indexes)
  • Annotation file in gff format
  • miRBase file for alignment in fasta format (with bowtie2 indexes)

Output

  • Alignment files in BAM format
  • Annotated alignment files in BAM format
  • Feature frequency counts in CSV format
  • Visualization of read lengths in JPG format
  • A log of the commands executed and their output

Example Usage

bash pipeline.sh \
    -r path/to/reference_file.fa \
    -g path/to/annotation_file.gff \
    -m path/to/miRBase.fa \
    -o output_dir/ \
    -n 8 \
    -f \
    -k \
    data_file1.fastq data_file2.fq data_file3_fastq

mirna_processing's People

Contributors

mariogiov avatar ewels avatar

Stargazers

Guillermo Carrasco avatar

Watchers

 avatar James Cloos avatar  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.