Coder Social home page Coder Social logo

cmapr's Introduction

cmapR (CMap R code)

Parsing and utility functions for analyzing CMap data. To learn more about the CMap project at the Broad Institute, please visit clue.io.

NOTICE - Updates for Bioconductor

cmapR has been accepted in Bioconductor. In accordance with Bioconductor standards, we have changed some of the function naming conventions. Function names that used to contain . have been replaced with _. Hence, parse.gctx is now parse_gctx and so on. The older function names will still work with a warning. There is additional info and examples in the vignettes/tutorial.Rmd.

Install instructions

Installing from Bioconductor

In R version 4.0 or newer:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("cmapR")

Dependencies are listed in DESCRIPTION

Docker

A docker container with a slightly earlier version of cmapR can be obtained here: https://hub.docker.com/r/cmap/cmapr. This may be preferable for those who would like to use the package without installing on their system.

Installing from Github source

Perhaps the simplest way to install directly from github is using devtools::install_github("cmap/cmapR"). Note that this requires having previously installed the devtools package.

The script install_cmapR.R takes care of installing all the dependencies and then running devtools::install_github("cmap/cmapR"), so you can simply source this script after cloning this repository.

Alternatively, you can point your R's install.packages function at a tarball of the cmapR archive. You can generate this archive by cloning this repository and doing the following:

# make a gzip tar ball of the repo
R CMD build cmapR
# makes cmapR_1.0.tar.gz

# check that the package is ok
R CMD check cmapR_1.0.tar.gz	

Once you have created the tarball, open an R terminal and execute the following:

install.packages("cmapR_1.0.tar.gz", type="source", repos=NULL)
library("cmapR")

You can also source individual files as needed instead of installing the entire package.

# For example, just load the IO methods
source("cmapR/R/io.R")

Citation information

If you use GCTx and/or cmapR in your work, please cite Enache et al.

cmapr's People

Contributors

dedavison avatar grimbough avatar jananiravi avatar jasiedu avatar kant avatar nturaga avatar nuno-agostinho avatar oena avatar oganm avatar tnat1031 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.