Giter Site home page Giter Site logo

rn5_mappability's Introduction

Rn5_mappability (by Yu Wang, 02/02/2016).

Summary for Mappability file for Rat Genome(rn5)

In our rat project, with the help of NGS sequencing, we aimed to establish a SNP Array Panel for Rat genotyping. After the design of SNP array, the first thing is evaluation of SNP Array density. This procedure need the help of mapping ability file of rn5, and turn out there is no available mappability file for rat. In the annotation of rn5 from UCSC, they have no record for telomere and centromere.

In this repository, I make a note for how to generate mappability files, both with GEM package and my own tools. I adpoted the method of GEM for mapping score (Derrien et al. 2012, http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0030377) and the whole procedure followed the instruction of BITS (http://wiki.bits.vib.be/index.php/Create_a_mappability_track#create_a_.27gem.27_index). The real mapping ability for pair end reads is a little higher, because GEM only consider single end reads.

Preparation for Dataset and Softwares.

  1. download reference from UCSC (http://hgdownload.soe.ucsc.edu/goldenPath/rn5/bigZips/rn5.fa.gz);

  2. install GEM package following these instructions: http://algorithms.cnag.cat/wiki/The_GEM_library;

  3. install tabix from Heng Li, which is useful for quick jump from location to location. (http://www.htslib.org/doc/tabix.html)

Command line (take 100bp read for example):

gem-indexer -T 4 -c dna -i rn5.fa -o rn5.index # index reference with 4 processors

gem-mappability -T 8 -I rn5.index.gem -l 100 -o rn5_100 # create mappability raw data, ASCII Score for each site, take 1-2 hours.

gem-2-wig -I rn5.index.gem -i rn5_100.mappability -o rn5_100 # create wig file based on raw ASCII Score

./BigWig2Bed.pl rn5_100.wig | bgzip -c > rn5_100.wig.mapQ.gz # use inhouse tool, covert BigWig format to Bed and bgzip for tabix index.

tabix -p bed rn5_100.wig.mapQ.gz # index genome location with tabix

How to use these files

Get mappability of region 1:2000-3000: tabix rn5_100.wig.mapQ.gz 1:2000-3000 > rn5_100.wig.mapQ.seg

Get mappability of whole chromosome 1 and draw a figure for that: tabix rn5_100.wig.mapQ.gz 1 | ./SlideWinDepth.pl -w 1000000 -s 0 -c1 -p2 -d4 -b - > rn5_100.chr1.slide

File Description:

rn5_100.wig.mapQ.gz: includes mappability for each segment, read length: 100bp, Bed format with 1-based coordinate, format: chr, pos_start, pos_end, mapping_score.

BigWig2Bed.pl: Script for converting BigWig format to BED format;

SlideWinDepth.pl: Script for sliding window statistics, firstly design for pileup, now available for BED file.

rn5_mappability's People

Contributors

cancergenome avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zitsen junlilab

rn5_mappability's Issues

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.