Skip to content

Instantly share code, notes, and snippets.

View mikelove's full-sized avatar

Michael Love mikelove

View GitHub Profile
@mikelove
mikelove / Snakefile
Last active January 29, 2024 20:17
my Salmon Snakemake file
RUNS, = glob_wildcards("fastq/{run}_1.fastq.gz")
SALMON = "/proj/milovelab/bin/salmon-1.4.0_linux_x86_64/bin/salmon"
ANNO = "/proj/milovelab/anno"
rule all:
input: expand("quants/{run}/quant.sf", run=RUNS)
rule salmon_index:
@mikelove
mikelove / get_deps.R
Last active July 15, 2019 18:46
Get the missing packages from Suggests from R package DESCRIPTION
get_deps <- function(what="Suggests") {
deps <- desc::desc_get_deps()
suggests <- deps$package[deps$type==what]
setdiff(suggests, sub(".*/","",find.package(suggests, quiet=TRUE)))
}
@mikelove
mikelove / setup_mac.md
Last active March 3, 2021 17:36
setting up mac
  • xcode
  • iterm2
  • source code pro / fire mono
  • homebrew
  • zsh
  • git
  • emacs & ESS
  • R & Rstudio
  • mactex
  • ispell
@mikelove
mikelove / build_R.md
Last active February 20, 2017 16:43
build R on cluster
@mikelove
mikelove / .bashrc
Last active March 25, 2021 18:11
.bashrc
alias ls='ls -G'
alias ll='ls -lh'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias R='R --quiet'
alias Rdevel='/home/love/bin/R/bin/R --quiet'
alias emacs='emacs -nw'
@mikelove
mikelove / .Rprofile
Last active February 14, 2019 16:12
.Rprofile
options(repos=c("https://cran.rstudio.com/"),showWarnCalls=TRUE,showErrorCalls=TRUE,
max.print=1000,width=100,menu.graphics=FALSE)
options(defaultPackages = c(getOption("defaultPackages"),"devtools","rmarkdown"))
# Sys.setenv(TZDIR = "/usr/share/zoneinfo") # this is for a peculiar Mac OS X setup
library(utils)
rc.settings(ipck=TRUE)
if (interactive()) message(R.version$version.string)
@mikelove
mikelove / .emacs
Last active July 8, 2023 11:35
.emacs
; mike love's .emacs
; general stuff
(menu-bar-mode -1)
(tool-bar-mode -1)
(global-set-key "\C-x\C-b" 'electric-buffer-list)
(global-unset-key (kbd "\C-x DEL") )
(global-unset-key (kbd "\C-t") )
(setq inhibit-startup-screen t)
(setq backup-directory-alist '(("" . "~/emacs-backup")))