Skip to content

Instantly share code, notes, and snippets.

View shka's full-sized avatar

Shintaro Katayama shka

  • Folkhälsan Research Center & Karolinska Institutet
  • Finland & Sweden
View GitHub Profile
@shka
shka / NBGLM-LBC.md
Last active August 30, 2022 14:19
Library bias correction for multiplex RNAseq
#!/usr/bin/env ruby
# tfe_annotation.rb <kgXref.gz> <knownGene.gz> <tfe.bed> :: shintaro.katayama at gmail.com
file_kgXref = ARGV[0]
file_knownGene = ARGV[1]
file_TFE = ARGV[2]
# UCSC Known Genes accession to gene symbol
acc2sym = Hash.new
;; Server
(require 'server)
(unless (server-running-p) (server-start))
(global-set-key (kbd "C-x C-c") 'ns-do-hide-emacs)
(defalias 'exit 'save-buffers-kill-emacs)
echo osascript -e \'tell application \"Emacs\" to activate\'\; emacsclient -c \"\$@\" | platypus -o None -i /usr/local/Cellar/emacs/24.3/Emacs.app/Contents/Resources/Emacs.icns -B -R - /Applications/EmacsClient.app
echo '/usr/local/Cellar/emacs/24.3/Emacs.app/Contents/MacOS/Emacs &' | platypus -o None -i /usr/local/Cellar/emacs/24.3/Emacs.app/Contents/Resources/Emacs.icns -B -R - /Applications/Emacs.app