Skip to content

Instantly share code, notes, and snippets.

View ipstone's full-sized avatar
🌐
studying cancer genomics

Isaac Pei ipstone

🌐
studying cancer genomics
View GitHub Profile
@jennybc
jennybc / yaml_frontmatter_r_github_document.yaml
Last active February 9, 2022 21:36
YAML frontmatter for R Markdown to cause rmarkdown::render() to retain intermediate Markdown file for .R and .Rmd files, respectively
#' ---
#' title: "Something fascinating"
#' author: "Jenny Bryan"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
@zcaceres
zcaceres / supercharge-your-bash-workflows-with-gnu-parallel.md
Last active October 19, 2021 12:05
Supercharge Your Bash Workflows with GNU `parallel`

Supercharge Your Bash Workflows with GNU parallel

GNU parallel is a command line tool for running jobs in parallel.

parallel is awesome and belongs in the toolbox of every programmer. But I found the docs a bit overwhelming at first. Fortunately, you can start being useful with parallel with just a few basic commands.

Why is parallel so useful?

Let's compare sequential and parallel execution of the same compute-intensive task.

Imagine you have a folder of .wav audio files to convert to .flac:

@ianyfchang
ianyfchang / hg19.chrlen.bed
Created May 16, 2014 07:38
HG19 Chromosome length BED file
chr1 0 249250621
chr1_gl000191_random 0 106433
chr1_gl000192_random 0 547496
chr2 0 243199373
chr3 0 198022430
chr4 0 191154276
chr4_ctg9_hap1 0 590426
chr4_gl000193_random 0 189789
chr4_gl000194_random 0 191469
chr5 0 180915260
@elucify
elucify / README.md
Last active May 13, 2020 17:40
ClinVar sample 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.
@lambdalisue
lambdalisue / install_gvim.sh
Created July 7, 2014 07:08
GVim compile and install script for CentOS
#!/usr/bin/env bash
#==============================================================================
# GVim compile and install script for CentOS
#
# Description: Install VIM with +python/+python3 via pyenv installed pythons
# Author: Alisue <lambdalisue@hashnote.net>
# License: MIT
# GistID: 01996ca7877f72b860b2
#==============================================================================
#!/usr/bin/ruby
`cat ~/.bash_aliases | egrep '^alias' | sed 's/alias//'`.split("\n").each do |line|
parts = line.strip.split(/=/)
name, cmd = parts[0], parts[1].gsub(/('|")/,'')
file = '/home/%s/.config/fish/functions/%s.fish' % [`whoami`.strip, name]
content = [ 'function %s' % name, ' %s $argv;' % cmd, 'end' ].join("\n")
File.open(file, 'w+'){|io| io.write(content) }
end
local function groupby(func, seq)
local t = {}
for _, val in ipairs(seq) do
local key = func(val)
t[key] = t[key] or {}
t[key][#t[key] + 1] = val
end
return t
end