Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 13, 2024 22:10
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@brentp
brentp / one-channel-agilent.R
Created August 17, 2011 22:58
use limma to normalize 1-channel agilent data and write out differentially expressed genes.
library(limma)
GROUP="62976"
# targets.txt has columns of "FileName" and "Condition" e.g.
"""
FileName Condition
data/scrubbed/LT001098RU_COPD.45015.txt COPD
data/scrubbed/LT001600RL_ILD.45015.txt ILD
data/scrubbed/LT003990RU_CTRL.45015.txt CTRL
data/scrubbed/LT004173LL_ILD.45015.txt ILD
@saketkc
saketkc / TEST.rb
Created July 14, 2011 06:37
CodeChef(SPOJ) Problem1 Ruby Solution
a=[]
while STDIN.readline.chomp!="42"
a.push($_)
end
a.each { |s| puts s }
@brantfaircloth
brantfaircloth / get_protein.py
Created April 3, 2011 23:50
Get protein sequences from Genbank given a genomic accession number and a gene name
import sys
import time
from Bio import Entrez
Entrez.email = "your.email@domain.tld"
if not Entrez.email:
print "you must add your email address"
sys.exit(2)
# create an empty list we will fill with the gene names