Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ1 = $(SRA:%.sra=%_1.fastq) | |
FASTQ2 = $(SRA:%.sra=%_2.fastq) | |
all: $(FASTQ1) $(FASTQ2) | |
# obtain the paired-end fastq files from a given sra file |
This file contains 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
#usage: make SRA=XXXXX.sra | |
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ1 = $(SRA:%.sra=%_1.fastq) | |
FASTQ2 = $(SRA:%.sra=%_2.fastq) | |
all: $(FASTQ1) $(FASTQ2) |
This file contains 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
#------------------------------------------------------------------------------ | |
# Configurable configuration | |
#------------------------------------------------------------------------------ | |
c = get_config() | |
#c.NotebookApp.ip = '*' | |
c.NotebookApp.password = u'sha1:xxxx' | |
c.NotebookApp.open_browser = False | |
#c.NotebookApp.port = 8899 |
This file contains 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
local$ ssh -L 8888:localhost:8888 remote | |
remote$ jupyter notebook |
This file contains 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
from scipy import stats | |
help(stats.rv_discrete) |
This file contains 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
import string; | |
def revcomp(sequence): | |
return string.translate(sequence[::-1], string.maketrans("ACGT", "TGCA")) |
This file contains 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
CC = gcc | |
LD = gcc | |
CFLAGS = -Wall -Wextra -O2 | |
LDFLAGS = #-lpthread -lm | |
SRCS := $(wildcard *.c) | |
OBJS = $(SRCS:.c=.o) | |
DEPS = $(SRCS:.c=.dep) | |
EXEC = $(SRCS:.c=) | |
RM = rm -f |
This file contains 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
$ ./chrom -f /data/yt/GRCh37.ch21.fasta -H /data/yt/GM12878_combined/ -o /work2/yt/scripts/20151105/out/ -k1 -r1000 -c21 -m10000 -M1000000 -n"KR" -e"KR" | |
fasta file: /data/yt/GRCh37.ch21.fasta | |
Hi-C data dir: /data/yt/GM12878_combined/ | |
Output dir: /work2/yt/scripts/20151105/out/ | |
k: 1 | |
resolution: 1000 | |
chromosome: 21 | |
min distance: 10000 | |
Max distance: 1000000 | |
Normalization: KR |
This file contains 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
sudo port install scala2.11 scala2.11-docs | |
sudo port select --set scala scala2.11 | |
$scalac -version | |
Scala compiler version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL | |
$ fsc -version | |
Fast Scala compiler version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL |