Skip to content

Instantly share code, notes, and snippets.

View joowkim's full-sized avatar

J Kim joowkim

  • Ohio, USA
View GitHub Profile
@joowkim
joowkim / star-rsem-calculate-expression.txt
Created August 3, 2018 05:03
star-rsem-calculate-expression.txt
STAR_INDEX="/home/mRNAseq/ref/gencode/human/GRCh37.19/idx/"
INPUT_DIR="00_raw_fastq"
OUTPUT_DIR="01_alignment"
GTF="/home/mRNAseq/ref/gencode/human/GRCh37.19/gtf/gencode.v19.annotation.gtf"
RSEM_INDEX="/home/mRNAseq/ref/gencode/human/GRCh37.19/idx/GRCh37.p13.genome"
mkdir -p $OUTPUT_DIR
cat samples.list | parallel --jobs 1 "mkdir -p $OUTPUT_DIR/{}"
cat samples.list | parallel --jobs 1 "rsem-calculate-expression --estimate-rspd --paired-end -p 25 --star --star-gzipped-read-file --keep-intermediate-files $INPUT_DIR/{}_1.fastq.gz $INPUT_DIR/{}_2.fastq.gz /home/mRNAseq/ref/gencode/human/GRCh37.19/idx/GRCh37.p13.genome $OUTPUT_DIR/{}/"
@joowkim
joowkim / gnu parallel
Created July 25, 2018 00:39
gnu parallel
ls *R1* | sed 's/_R1.fastq.gz//' | parallel "echo {}_R1.fastq.gz {}_R2.fastq.gz"
@joowkim
joowkim / gist:bc2f217814b733117c5ae2597fc92961
Last active June 13, 2018 10:03
Rstudio 인코딩문제
Sys.setlocale(category="LC_ALL", locale = "korean")
read.csv(fileEncoding = "UTF-8")
@joowkim
joowkim / modified-make_distance_boxplots.py
Created May 31, 2018 04:59
modified make_distance_boxplots to get distance values.
#!/usr/bin/env python
from __future__ import division
__author__ = "Jai Ram Rideout"
__copyright__ = "Copyright 2012, The QIIME project"
__credits__ = ["Jai Ram Rideout"]
__license__ = "GPL"
__version__ = "1.9.1"
__maintainer__ = "Jai Ram Rideout"
__email__ = "[email protected]"
@joowkim
joowkim / sympy-test.ipynb
Created April 24, 2018 00:03
sympy-test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joowkim
joowkim / hgen-473-rna-seq.R
Created April 11, 2018 10:43 — forked from jdblischak/hgen-473-rna-seq.R
RNA-seq analysis with R/Bioconductor
# HGEN 473 - Genomics
# Spring 2017
# Tuesday, May 9 & Thursday, May 11
#
# RNA-seq analysis with R/Bioconductor
#
# John Blischak
# Introduction -------------------------------------------------------
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joowkim
joowkim / jupyter_shortcuts.md
Created March 23, 2018 01:50 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command