Skip to content

Instantly share code, notes, and snippets.

@afrendeiro
afrendeiro / divideAndSlurm.py
Last active March 13, 2017 11:28
Class to perform map reduce-style operations split in jobs across high-performance computing cluster
class DivideAndSlurm(object):
"""
DivideAndSlurm is a class to handle a map-reduce style submission of jobs to a Slurm cluster.
Add a particula task to the object (though a specific function) and it will divide the input data
into pools, which will be submitted (use the submit() function) in parallel to the cluster.
Tasks can also further process its input in parallel, taking advantage of all processors.
"""
def __init__(self, tmpDir="/fhgfs/scratch/users/user/", logDir="/home/user/logs", queue="shortq", userMail=""):
super(DivideAndSlurm, self).__init__()
@brantfaircloth
brantfaircloth / travis-with-conda.yml
Created December 30, 2013 02:26
Use conda + travis-ci.org to setup complex dependency chain for running tests.
# borrowed from here: https://gist.github.com/dan-blanchard/7045057
# lint it here: http://lint.travis-ci.org/
language: python
python:
- 2.7
notifications:
email: false
# whitelist
branches:
@ramhiser
ramhiser / CyTOF-visualization.Rmd
Last active February 15, 2016 21:10
3D-PCA of CyTOF Data from Newell et al. (2012)
Interactive Visualization of CyTOF Data
========================================================
```{r setup, echo=FALSE}
library(rgl)
knit_hooks$set(webgl = hook_webgl)
opts_knit$set(upload.fun = imgur_upload, base.url = NULL) # upload all images to imgur.com
```
This report produces a 3D visualization of the CD8+ T-cell subsets from [Newell et al. (2012)](http://www.ncbi.nlm.nih.gov/pubmed/22265676) using principal components analysis (PCA).
@kevinelliott
kevinelliott / osx-10.9-setup.md
Last active November 6, 2020 14:19 — forked from juev/gist:3124344
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store