Giter Club home page Giter Club logo

binify_mappability's Introduction

Binify Mappability Data

A script for the sole purpose of taking a UMAP multi-read mappability file & converting it into a 5kB-binned bed file for later use/processing.

UMAP

The files this script was intended to be used on are obtained here: https://bismap.hoffmanlab.org/

Please note that as of the day of writing this README (11/13/18), the UMAP multi-read file for 50bp reads does not contain the Y chromosome. For the work around used to generate the grch38 binned mappability provided with version 2.0 of the Broad Epi-Correlation pipeline, please see the Y-Chromosome Workaround section below.

How-To

As of version 0.1, the way to run the above code is as follows:

  1. Compile binifyBedgraph.cpp using g++
  2. Split the bedgraph file into separate chromosomes; i.e. grep chr1 [bedgraphfile] > bedgraph_chr1.bedGraph
  3. Run the compiled binifyBedgraph on each separated bedgraph file; i.e. binifyBedgraph bedgraph_chr1.bedGraph > binned_chr1.bed
  4. Re-prefix all files with the appropriate chromosome, i.e. sed -i -e 's/^/chr1<tab>/' binned_chr1.bed (ensure that <tab> is a true tab character, such as with the key combination "CTRL+V, <tab>" in BASH.)
  5. Concatenate all files together; i.e. cat binned_chr*.bed > binned_whole_genome.bed

A hopefully more straight-forward method will be implemented with the 1.0 release.

This script is entirely assembly-neutral, as it assumes you will add missing tailing bins yourself and will not attempted to pad with 5kb 0 bins until it reaches some certain chromosome size.

Y-Chromosome Workaround

When this pipline was run to generate the grch38 mappability bed file for the Epi-Correlation pipeline, the available UMAP BedGraph files did not contain any values for the Y chromosome. Despite this, the UCSC browser session link provided on that very same page had values for Y chromosome locations. Therefore, in order to create a complete grch38 track, the .bed file from the provided UCSC session was downloaded, converted into a BedGraph, and then run through this pipeline.

If you are obtaining no values for the Y chromosome, I would strongly suggest you do the same. For example, when creating the separated bedgraph files in step 1 of the How-To, if your bedgraph_chrY.bedGraph file is 0B, that means you are missing the Y chromosome.

binify_mappability's People

Contributors

infispiel avatar

Watchers

 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.