Skip to content

Instantly share code, notes, and snippets.

library(limma)
library(statmod)
library(scatterplot3d)
library(made4)
library(arrayQualityMetrics)
library(Biobase)
## We want to read ony Read channels, the way to do it is to pass custom
## names to read.maimages() function specifying the green.only=TRUE option
## with source="genepix.custom" and G,Gb=Cy5,Cy5b respectively.
## Cy5 => RED Channel Forground
@saketkc
saketkc / methpipe.rb
Created September 29, 2014 22:29
methpipe.rb
require "formula"
class Methpipe < Formula
head "https://github.com/smithlabcode/methpipe.git"
homepage "http://smithlabresearch.org/software/methpipe/"
url "http://smithlabresearch.org/downloads/methpipe-3.3.1.tar.gz"
sha1 "00dea4a51e7b8ed5e7020bba89db63a91d86a70f"
depends_on "gsl" => :build
@saketkc
saketkc / compare_hg19_to_grch37.py
Created October 14, 2014 07:59
Compare GRCh37 to hg19
from Bio import SeqIO
import pickle
from pprint import pprint
import sys
hg19_location = "/usr/local/share/bcbio/genomes/Hsapiens/hg19/hg19.fa"
grch37_location = "/usr/local/share/bcbio/genomes/Hsapiens/GRCh37/bowtie/GRCh37.fa"
try:
pickled = pickle.load(open('comparison_pickled.p', 'rb'))
print (pickled)
sys.exit(0)
@saketkc
saketkc / .gitignore
Created October 25, 2014 22:05
.gitignore for latex/beamer projects
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
diff --git a/samblaster.cpp b/samblaster.cpp
index 14a2a40..2c33508 100644
--- a/samblaster.cpp
+++ b/samblaster.cpp
@@ -26,6 +26,14 @@
#include <map>
#include "sbhash.h"
+// Define mempcpy for Mac OS
+#ifdef __APPLE__
@saketkc
saketkc / CharScanner.patch
Created January 7, 2015 08:20
Patch for compiling antlr2 on linux
--- lib/cpp/antlr/CharScanner.hpp 2015-01-07 00:09:51.747913036 -0800
+++ lib/cpp/antlr/CharScanner.hpp 2015-01-07 00:10:31.883913806 -0800
@@ -11,6 +11,8 @@
#include <antlr/config.hpp>
#include <map>
+#include <cstring>
+#include <stdio.h>
#ifdef HAS_NOT_CCTYPE_H
diff --git libs/kxml/Makefile libs/kxml/Makefile
index 3635fa3..ff19f5b 100644
--- libs/kxml/Makefile
+++ libs/kxml/Makefile
@@ -42,9 +42,7 @@ include $(TOP)/build/Makefile.env
#
ifeq (1,$(HAVE_XML2))
-ifneq (,$(XML2_INCDIR))
INCDIRS += $(addprefix -I,$(XML2_INCDIR))
@saketkc
saketkc / MixedLM_compare_lr_test-Converging.ipynb
Created June 13, 2015 08:19
MixedLM LR Test[Converging Examples]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saketkc
saketkc / Vonmises Multidimensional Demo.ipynb
Created June 14, 2015 04:51
Demoing scipy.stats.vonmises
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.