Code Monkey home page Code Monkey logo

dng-mutmap's Introduction

This repository is a sort of "plugin" for denovogear. It adds the mutmap command to dng, which allows the generation of an HTML file which contains an interactive visualization.

Installation

Copy everything in this repository (except this README file) into the root of your denovogear repository.

You also need to add the following line to src/CMakeLists.txt:

add_subdirectory(mutmap)

There are also some runtime dependencies. You'll need to have R installed (specifically the Rscript command), along with the R libraries listed in src/mutmap/tools/install_r_dependencies.R.

Once everything is in place, rebuild and install denovogear. You should now have the dng mutmap command available.

Running

You need 2 things to generate the visualization file:

  1. A VCF file as output from a denovogear run
  2. A corresponding ped file for the pedigree matching the VCF

Then you can run something like the following:

dng mutmap -p PED_FILE.ped -d DNG_OUTPUT_FILE.vcf -o mutmap.html

You should then be able to open the mutmap.html file in any modern browser to see the visualization. Note that currently the entire contents of the VCF file is included in the HTML file, so it can be quite large and take a bit of time to load, especially if you host the HTML file over the internet. This has only been tested with a ~20MiB file so far.

dng-mutmap's People

Contributors

anderspitman avatar

Watchers

James Cloos avatar  avatar  avatar

dng-mutmap's Issues

Remove backend server

What we want is for denovogear to generate an HTML file that includes all the pedigree and layout information embedded directly. This simplifies the user interface (user doesn't have to upload files) and more tightly integrates the visualization with that specific run of denovogear, which gives us more control for validation, etc.

Since we're using R as a dependency on the server for calculating the layout, we can change that to be a direct dependency for denovogear and compute the layout directly on the client.

It's ok to still call out to static servers for javascript libraries, etc.

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.