Giter VIP home page Giter VIP logo

cram_accessor's Introduction

CRAM Accessor

Accessing CRAMs on UKBiobank for testing

Note : Do not use the code in the zip with the v1.0 release it is broken. The docker image provided can still be used if when running the docker image a git pull and make command are run to make the most recent version of the tool. See the example below.

Run on DNANexus

  • The -t option is for number of threads (put 0 to let it choose).
  • The --cram-path option is to specify a directory where there are CRAM files, the software will do random accesses in those files.
  • Replace the path in -iimage_file to where your docker image is (you can download it here).
  • Note : the repo is pulled and the cram accessor is built in the command below, to make sure the most recent version of the code is used
dx run swiss-army-knife -icmd="echo \"$(date)\"; cd /usr/src/cram_accessor/; git pull; make; time ./cram_accessor -t 12 --cram-path \"/mnt/project/Bulk/Whole genome sequences/Whole genome CRAM files/20\"" \
    --name CRAM_Accessor \
    -iimage_file=docker/cram_accessor_v1.0.tar.gz \
    --instance-type mem2_ssd1_v2_x4 -y

Build Docker image

cd Docker
docker build -t cram_accessor:v1.0 .
# Takes some time !
time docker save cram_accessor:v1.0 | gzip > cram_accessor_v1.0.tar.gz

Build locally

If you don't have HTSLIB

git submodule update --init --recursive htslib
cd htslib
autoreconf -i
./configure
make
make install
ldconfig
cd ..
make

If you have it installed, either :

git submodule update --init --recursive htslib
cd htslib
autoreconf -i
./configure
make
cd ..
make

or :

# Edit the Makefile and set the correct paths
make

cram_accessor's People

Contributors

rwk-unil 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.