This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i "<input.mkv>" -map 0 -c:v copy -c:a copy -c:s srt "<output.mkv>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://macos-defaults.com/ | |
# https://www.defaults-write.com | |
# reset with: defaults delete -g <FEATURE> | |
# dock | |
# position | |
defaults write com.apple.dock "orientation" -string "right" | |
# icon size | |
defaults write com.apple.dock "tilesize" -int "36" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep --color=always -e "^" -e <SEARCH_TERM> <FILE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy directory from A to B | |
rsync -ah --info=progress2 <DIR_SOURCE> <DIR_TARGET> | |
# copy directory from A into B | |
rsync -ah --info=progress2 <DIR_SOURCE> <PARENT_OF_DIR_TARGET>/ | |
# copy content of directory A into B | |
rsync -ah --info=progress2 <DIR_SOURCE>/ <DIR_TARGET>/ | |
# copy directory from A to B on remote machine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
less -r <FILE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iconv -f ISO-8859-1 -t UTF-8 -o <OUTPUT_FILE> <INPUT_FILE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert Docker container to Singularity format | |
singularity build cell_ranger_3.1.0.sif docker://romanhaa/cell_ranger:3.1.0 | |
# create index for Cell Ranger | |
# - modify "/hpcnfs" to your file system | |
singularity exec --bind /hpcnfs cell_ranger_3.1.0.simg \ | |
cellranger mkref \ | |
--genome=cell_ranger_3.1.0 \ | |
--fasta=GRCh38.primary_assembly.genome.fa \ | |
--genes=gencode.v32.annotation.gtf \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("tidyverse") | |
library("ggalluvial") | |
# original data | |
# every genomic bin of 200bp is assigned one of 8 possible chromatin states | |
# note that group1-3 are factors | |
input_data | |
# A tibble: 855,156 x 4 | |
# bin group1 group2 group3 | |
# <chr> <fct> <fct> <fct> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1" /> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<meta http-equiv="Access-Control-Allow-Origin" content="*"/> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<script src='//ramnathv.github.io/rCharts/libraries/widgets/polycharts/js/polychart2.standalone.js' type='text/javascript'></script> | |
<style> | |
.rChart { | |
display: block; |