Giter Club home page Giter Club logo

cellrangerrkit's Introduction

10X Genomics Cell Ranger R kit

Description

R package that accompanies the 10X Genomics Cell Ranger pipeline. It supports manipulation and visualization of output from the pipeline as well as re-running of secondary analyses.

Development

Make sure you have R packages devtools and roxygen2 installed and loaded:

install.packages( c('devtools', 'roxygen2') )
library(devtools)
library(roxygen2)

To install the current version from master:

install_github( '10XDev/cellrangerRkit', user = 'github_user',
    auth_token = 'some_auth_token' )

The auth token can be generated using the default settings in https://github.com/settings/applications under 'Personal access tokens'. Make sure to save the token, otherwise you need to generate another one.

Workflow

Since you've already installed devtools, you should consider using it to help develop the package. Note that all 'path/to/working/copy' strings can be replaced by the empty string if you're inside the root of the package directory (which I strongly recommend). There is a developer mode you can enter by typing:

dev_mode()

and exit similarly. What this does is create a sandboxed development environment for your packages.

Throughout development, you probably will need to load updates regularly:

install('path/to/working/copy')

If you're trying to access a new function outside of the package (in userspace land) make sure to add the @export decorator and generate documentation for it using roxygen2:

document('path/to/working/copy')

Once you dig the changes and you think it's stable, drop out of developer mode and install it into your main package set.

Testing

We are using the testthat package for unit testing. All tests live in inst/tests/. The directory tests/ simply contains a stub to test all things that live in inst/tests/. Using devtools you can call all tests by running:

test('path/to/working/copy')

Building for distribution

make rkit && R CMD INSTALL . && make vignette

Uninstalling

remove.packages('cellrangerRkit')

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.