This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
$ uname -a | |
Linux coderuler 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | |
$ node -v | |
v0.6.18 | |
$ echo "console.log('foobar'); process.exit(0);" > foo.js | |
$ node node_cluster_child_process.js | |
child stderr > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
ocamlfind ocamlopt -o netclient_https_threads -thread -linkpkg -package threads,netclient,ssl,equeue-ssl netclient_https_threads.ml | |
http://docs.camlcity.org/docs/godipkg/3.12/godi-ocamlnet/doc/godi-ocamlnet/html/Https_client.html | |
*) | |
open Printf | |
module HTTP = Http_client | |
module HTTPS = Https_client | |
;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["Human","hg19"], | |
["Chimp","panTro4"], | |
["Gorilla","gorGor3"], | |
["Orangutan","ponAbe2"], | |
["Gibbon","nomLeu3"], | |
["Rhesus","rheMac3"], | |
["Crab_eating_macaque","macFas5"], | |
["Baboon","papHam1"], | |
["Green_monkey","chlSab1"], | |
["Marmoset","calJac3"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic Dockerfile for PhyloCSF. | |
# Example usage: | |
# docker build -t mlin:PhyloCSF https://gist.githubusercontent.com/mlin/31c0a7623f99d3bf3222/raw/Dockerfile | |
# docker run -v /path/to/host/data:/data mlin:PhyloCSF 29mammals /data/input.fa | |
# PhyloCSF homepage: https://github.com/mlin/PhyloCSF/wiki | |
FROM ubuntu:trusty | |
MAINTAINER Mike Lin <[email protected]> | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-suggests --no-install-recommends ca-certificates software-properties-common time git build-essential gfortran | |
RUN add-apt-repository ppa:avsm/ppa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile for PhyloCSF using OpenBLAS to take advantage of vector | |
# instructions (AVX). On supported processors, this can significantly speed up | |
# PhyloCSF (25-50%) compared to the default GSL BLAS. | |
# Example usage: | |
# docker build -t mlin:PhyloCSF https://gist.githubusercontent.com/mlin/5ea4ca5d2a2a198e5659/raw/Dockerfile | |
# docker run -v /path/to/host/data:/data mlin:PhyloCSF 29mammals /data/input.fa | |
# PhyloCSF homepage: https://github.com/mlin/PhyloCSF/wiki | |
FROM ubuntu:trusty | |
MAINTAINER Mike Lin <[email protected]> | |
RUN apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2) | |
require(data.table) | |
require(compiler) | |
# First run LASTZ to produce MAF output. Options for matching near-identical assemblies: --notransition --seed=match15 --step=10 --hspthresh=100000 --gapped --ydrop=3400 --gappedthresh=400000 --ambiguous=iupac --allocate:traceback=200M | |
# Then we postprocess the MAF with: cat alignments.maf | awk 'NF' | tr -s " " | cut -d ' ' -f1-6 | paste - - - | tr " " "\t" | tr "=" "\t" | cut -f 3,5-9,11-15 | gzip -c > alignments.gz | |
# read and filter hits | |
fn <- "alignments.gz" | |
all.hits <- read.delim(gzfile(fn),header=FALSE) | |
colnames(all.hits) <- c("score","target","tpos","thitlen","tstrand","tlen","query","qpos","qhitlen","qstrand","qlen") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Initializes a git repository with some suggested best practices for DNAnexus | |
# workflow development & continuous integration. Run dx-ci-init.py in the root | |
# of your git repository; it creates the following, which you should then | |
# customize as you like: | |
# | |
# applets/hello-world | |
# Trivial applet template which you can build on or copy. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* index (vg_index:main) (failed) job-Bk01J1Q0QpJ6F3BZv5ZyjBBq | |
mlin 2015-11-08 19:44:06 (runtime 12:57:05) | |
2015-11-09 11:33:40 index ALERT This job has been restarted due to UnresponsiveWorker from running this job | |
2015-11-09 11:33:49 index INFO Logging initialized (priority) | |
2015-11-09 11:33:50 index INFO Downloading bundled file gcc4.9_runtime_debs.tar | |
2015-11-09 11:33:51 index STDOUT >>> Unpacking gcc4.9_runtime_debs.tar to / | |
2015-11-09 11:33:51 index INFO Downloading bundled file vg_bundle.tar.gz | |
2015-11-09 11:33:52 index STDOUT >>> Unpacking vg_bundle.tar.gz to / | |
2015-11-09 11:33:53 index INFO Installing apt packages libjansson4, dx-toolkit | |
2015-11-09 11:33:57 index INFO Setting SSH public key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# dx-yml-build: transcodes dxapp.yml to dxapp.json and then runs `dx build` | |
# with command-line arguments passed through. | |
# | |
# Requires PyYAML (apt-get install python-yaml OR pip install pyyaml) | |
import os, sys | |
import yaml, json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Initializes a git repository with some suggested best practices for DNAnexus | |
# WDL workflow development & continuous integration. Run | |
# dxWDL_ci_init.py hello_world | |
# to create a subdirectory with that name, initialized as a local git repo, | |
# with the following which you can then customize: | |
# | |
# hello_world.wdl | |
# Trivial WDL workflow template. |
OlderNewer