Skip to content

Instantly share code, notes, and snippets.

View joowkim's full-sized avatar

J Kim joowkim

  • Ohio, USA
View GitHub Profile
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 16, 2025 21:45
set -e, -u, -o, -x pipefail explanation

서울대 경영대, 2016 벤처창업웹프로그래밍1 (이하 벤1), 파이썬 기말고사 시험문제입니다. 각자 한 번 풀어보세요.

이와 관련해서 질문이 있으신 분은 댓글 혹은 AskDjango 페이스북 그룹 에 질문을 남겨주세요.

벤1 은 파이썬 강의이며, 벤처창업웹프로그래밍2 (이하 벤2) 의 선수과목입니다. 벤2 에서는 Django 웹프레임워크를 1학기 동안 다룹니다.

문제풀이도 공개했습니다. : https://github.com/askdjango/snu-web-2016-09/tree/master/finals

AskDjango 이진석

library(devtools)
library(sleuth)
library(dplyr)
library("biomaRt")
#load annotation from ensembl
ensembl = useMart("ENSEMBL_MART_ENSEMBL",dataset="mmusculus_gene_ensembl", host="www.ensembl.org")
t2g <- biomaRt::getBM(attributes = c("ensembl_transcript_id", "ensembl_gene_id", "external_gene_name"), mart = ensembl)
t2g <- dplyr::rename(t2g, target_id = ensembl_transcript_id, ens_gene = ensembl_gene_id, ext_gene = external_gene_name)
#change this directory as your directory
@stephenturner
stephenturner / install-gcc48-linuxbrew-centos6.md
Last active January 8, 2025 06:27
Installing gcc 4.8 and Linuxbrew on CentOS 6

Installing gcc 4.8 and Linuxbrew on CentOS 6

The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. I'd like to use gcc 4.8+. Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. Here's how I solved the problem.

Note: Requires sudo privileges.

Resources:

@giwa
giwa / file0.txt
Last active December 6, 2023 07:36
Install g++/gcc 4.8.2 in CentOS 6.6 ref: http://qiita.com/giwa/items/28c754d8fc2936c0f6d2
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
$ yum install devtoolset-2-gcc devtoolset-2-binutils
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active May 17, 2025 12:58
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@quwubin
quwubin / fastaParser.go
Created September 18, 2014 02:28
A fasta parser in go lang
package main
import (
"bytes"
"fmt"
"log"
"os"
"strings"
"bufio"
"io"
@jdblischak
jdblischak / README.md
Last active January 29, 2025 23:15
rnaseq-de-tutorial

Differential expression analysis with edgeR

This is a tutorial I have presented for the class Genomics and Systems Biology at the University of Chicago. In this course the students learn about study design, normalization, and statistical testing for genomic studies. This is meant to introduce them to how these ideas are implemented in practice. The specific example is a differential expression analysis with edgeR starting with a table of counts and ending with a list of differentially expressed genes.

Past versions:

@xguse
xguse / ParseFastQ.py
Created February 19, 2012 22:43
Simple Python FastQ Parser class
class ParseFastQ(object):
"""Returns a read-by-read fastQ parser analogous to file.readline()"""
def __init__(self,filePath,headerSymbols=['@','+']):
"""Returns a read-by-read fastQ parser analogous to file.readline().
Exmpl: parser.next()
-OR-
Its an iterator so you can do:
for rec in parser:
... do something with rec ...