Skip to content

Instantly share code, notes, and snippets.

View hisplan's full-sized avatar
🎯
Focusing

Jaeyoung Chun hisplan

🎯
Focusing
  • Memorial Sloan Kettering Cancer Center
  • New York, NY
  • 01:32 (UTC -04:00)
View GitHub Profile
@hisplan
hisplan / jupyter-notebook-on-aws.md
Last active November 13, 2021 10:59
Setting up Jupyter Notebook on AWS

Setting up Jupyter Notebook on AWS

Launch an AWS EC2 instance.

Install Miniconda:

wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh
bash Miniconda3-py38_4.10.3-Linux-x86_64.sh
@hisplan
hisplan / install-pysam.md
Created July 29, 2019 19:38
Installing pysam on AWS Instance
conda create -n pysam python=3.6.5 pip

sudo yum install -y openssl-devel

wget https://github.com/pysam-developers/pysam/archive/v0.15.3.tar.gz
tar xvzf v0.15.3.tar.gz

cd pysam-0.15.3
sudo yum install git autoconf automake make gcc zlib-devel bzip2-devel xz-devel curl-devel openssl-devel
git clone https://github.com/samtools/htslib.git
cd htslib/
autoconf
autoheader
./configure
make
make test
sudo make install
@hisplan
hisplan / resolving-conda-install-samtools.md
Created July 24, 2019 15:27
Resolving conda install samtools
conda install -c bioconda samtools=1.9=h8ee4bcc_1 openssl=1.0
@hisplan
hisplan / installing-samtools.md
Last active August 30, 2022 16:35
How to Install samtools on CentOS or Ubuntu

For CentOS

sudo yum group install "Development Tools"
sudo yum install ncurses-devel bzip2-devel xz-devel

cd /tmp
wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2
tar xvjf samtools-1.9.tar.bz2
cd samtools-1.9
@hisplan
hisplan / jupyter-notebook-wide-cell.md
Created March 15, 2019 21:25
jupyter notebook wide cell
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:95% !important; }</style>"))
@hisplan
hisplan / samtools.md
Created January 29, 2019 16:54
samtools
Flags:
	0x1	PAIRED        .. paired-end (or multiple-segment) sequencing technology
	0x2	PROPER_PAIR   .. each segment properly aligned according to the aligner
	0x4	UNMAP         .. segment unmapped
	0x8	MUNMAP        .. next segment in the template unmapped
	0x10	REVERSE       .. SEQ is reverse complemented
	0x20	MREVERSE      .. SEQ of the next segment in the template is reversed
	0x40	READ1         .. the first segment in the template
	0x80	READ2 .. the last segment in the template
@hisplan
hisplan / add-rsync-to-git-bash.md
Created February 21, 2018 09:02
Add rsync to git bash for windows

Keybase proof

I hereby claim:

  • I am hisplan on github.
  • I am hisplan (https://keybase.io/hisplan) on keybase.
  • I have a public key ASCnl5x_S5t5h6syN6y3mf5b44YeY1T5AEUQpXrr-fHglQo

To claim this, I am signing this object: