Code Monkey home page Code Monkey logo

ribosomeprofiling's Introduction

Ribosome profiling quality control

  • Prepare annotaion files
  • Get count at each position for each mapping length
  • Get mapping length abundance distribution
  • Calculate P site by plotting the coverage around TSS and TSE

Steps to run the pipeline

  1. put all bam files into one folder. Here let's say 01_bam
  2. In terminal run: ** python /path/to/p01_prepare_annotation.py -g /full/path/to/gffFile
    • Right now it only accepts ncbi gff format. -g needs to be gff or gff3 file
  3. In terminal run: ** python /path/to/p02_bam_count.py -b /path/to/folder/that/has/bamFiles -t thread -m max_length -r read_length
    • Here -b is folder instead of file.
    • max_length is the maximum mapping to length to consider. Usually ribosome covers 30 bps, but due to the experiments done, it usually has a wide range. By setting this, it will consider reads ranging from 20 to the setting values.
    • read_length: read length in raw fastq files.
  4. P site calibration. In terminal run: ** python /path/to/p03_P_site_cal.py -b /path/to/folder/that/has/bamFiles -g /full/path/to/gffFile -t thread
    • parameters are same as before
  5. Based on the P site plot, decide the offset for each mapping length when calculating the count. And put the information into a txt file in the same folder with gff file. The file should have two columns, the first one is mapping length, the second one is offset. And the first line of the file should be the header 'offset len'.

files starting with f** are modules files that has functions or class to parse the files.

files starging with m** are parts of analysis pipeline.

  • 03_P_site_cal.py: Ribosome usually protects around 30 nts of mRNA sequence, P-site reflects which AA that ribosome is translating. When getting the position of mapped reads, usually we use 5' end or sometime 3'end of the read to indicate where does the read maps to. In this case, we need to calculate how far is the 5/3'end to the P site, which is called P-site offset. In addition, as said before, ribosome usually protects around 30 nts, but it's not exact 30 bps. So here, we extract read counts at positions near tss and tse for each mapping length separately.

ribosomeprofiling's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shl198 bioxiao

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.