Skip to content

Instantly share code, notes, and snippets.

Isaac Pei ipstone

Block or report user

Report or block ipstone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ipstone
ipstone / Emacs.md
Created Oct 25, 2018 — forked from redinger/Emacs.md
Setting up Emacs daemon on OS X
View Emacs.md

Setting up Emacs daemon on OS X

Tired of waiting for emacs to start on OS X? This step by step guide will teach you how to install the latest version of emacs and configure it to start in the background (daemon mode) and use emacsclient as your main editor.

Install Cocoa Emacs

Download the latest pretest version of [Emacs for Mac OS X]: http://emacsformacosx.com/builds

@ipstone
ipstone / start_interactive
Created Oct 25, 2018 — forked from sbamin/start_interactive
start interactive job on HPC Helix
View start_interactive
#!/bin/bash
# Wrapper to run interactive job on helix hpc.
# @sbamin | helix
# usage
show_help() {
cat << EOF
Start interactive job on Helix: Only one job is allowed at a time.
@ipstone
ipstone / tmux.md
Created Sep 8, 2018 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
@ipstone
ipstone / tmux.conf
Created Sep 5, 2018 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@ipstone
ipstone / extract_pp.sh
Created Aug 21, 2018 — forked from mtw/extract_pp.sh
Extract properly-paired reads and their mates (ie flags 99/147/163/83) from paired-end BAM files
View extract_pp.sh
#!/bin/bash
samtools=`which samtools`
bn=$(basename $1 .bam)
echo processing $bn
$samtools view -h -b -f99 $1 > $bn.flag99.bam
$samtools view -h -b -f147 $1 > $bn.flag147.bam
$samtools view -h -b -f163 $1 > $bn.flag163.bam
$samtools view -h -b -f83 $1 > $bn.flag83.bam
@ipstone
ipstone / README.md
Created Apr 17, 2018 — forked from elucify/README.md
ClinVar sample README.md
View README.md

ClinVar

This directory contains:

  • ClinVar (http://www.ncbi.nlm.nih.gov/clinvar/) dataset reports, and ClinVar development documents
  • documents related to the NCBI collaboration with ClinGen (http://www.clinicalgenome.org/)
  • ftp://ftp.ncbi.nih.gov/pub/clinvar/ClinGen/ExpertPanelRequestForm.docx - how to apply for expert panel status
  • data common to ClinVar and GTR
  • ftp://ftp.ncbi.nlm.nih.gov/pub/GTR/standard_terms - terminology used by both GTR and ClinVar.
You can’t perform that action at this time.