GithubHelp home page GithubHelp logo

transgirlcodes / dockerized_hybridcheck Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 820 KB

A Docker container of the R package HybridCheck and all of it's dependencies.

License: GNU General Public License v2.0

dockerized_hybridcheck's Introduction

Dockerized HybridCheck R package

This is the Dockerized R bundled with the R package HybridCheck and its dependencies.

The image is available from Docker Hub.

Usage:

Basic use:

To use this container you will need Docker installed on your computer.

To run R with HybridCheck on your computer in a terminal:

docker run -it ward9250/hybridcheck

Mounting directories with data:

You will probably want to mount your current working directory (i.e. the one with the data files you want to analyze with HybridCheck) so as the Docker container can 'see' the directory and your files.

docker run -ti --rm -v "$PWD":/home/docker/mydatafiles -w /home/docker/mydatafiles -u docker r-base

Running your analysis using your own Dockerfile:

As an alternative to the command for running the Docker container with a mounted working directory (above), you can collect the scripts and data needed to run your analysis, into a folder with your own Dockerfile for your analysis/project. The Dockerfile you put in this directory should specify ward9250/hybridcheck in the FROM line. An example Dockerfile which does this is below:

FROM ward9250/hybridcheck:latest
COPY . /home/docker/myanalysis
WORKDIR /home/docker/myanalysis
CMD ["Rscript", "myscript.R"]

Once you have made your Dockerfile and have it in the directory along with your R script and data-files, you can build it and then run your analysis, by executing the following command from your projects folder:

docker build -t myproject .

Then you can run the Docker container of your analysis you just built:

docker run myproject

Intended purpose:

This container was created to avoid issues installing and running the R package 'HybridCheck'. Common issues installing and running these include different versions of R or R packages, non-standard R library locations and so on.

If you learn Docker enough to use it to download and run containers, you avoid all these possible pitfalls, as everything needed to get the package running is provided for in this container, which will run on any system Docker is available for, which certainly covers Windows, OS X, and the popular GNU/Linux distros.

dockerized_hybridcheck's People

Watchers

James Cloos avatar TRΛNS-GIRL.C0DΞS 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.