Skip to content

Instantly share code, notes, and snippets.

@sbamin
sbamin / 1_check_jax_helix_hpc_health.md
Last active December 28, 2018 17:16
Peek at JAX Helix HPC Health

Peek into HPC Helix Health

Samir B. Amin, @sbamin

hpcinfo is a primary script to check status of Helix HPC at JAX GM. Optimized for VerhaakEnv but should work for most users.

Place both hpcinfo and check_helix_health in either ${HOME}/bin/ or directory which is under HPC $PATH.

@sbamin
sbamin / how-to-jax-ezproxy.md
Last active July 17, 2018 16:23
Enable JAX ezproxy for accessing journal articles from non-VPN connected devices
@sbamin
sbamin / bkup_dotfiles_configs.md
Created February 12, 2017 17:35
How to rsync dot files and directories of remote server

backup dotfiles

  • Following will copy all of dot ~/. files and directories (including its contents) directly underneath home directory.
  • To avoid copying cache and other local configs, e.g., that of web browser, java apps, etc., preferably query directory size tool under entire home $HOME/, using ncdu $HOME of similar tool.
  • Exclude all those large directories using rsync --exclude=.local --exclude=.cache format
  • Avoid rsync password, ssh keys, .bash_history, etc. if you are uploading to github, etc.
  • rsync home dotfiles and configs as follows:
# in your local machine
source 'https://rubygems.org'
gem 'nokogiri', '= 1.6.8.1'
group :jekyll_plugins do
gem 'github-pages', '>= 127'
end
group :jekyll_misc_plugins do
gem 'jekyll-compose', '>= 0.4.1'
@sbamin
sbamin / sracmd
Last active December 5, 2022 15:35
Interact with NCBI SRA using aspera ascp command line client
#!/bin/bash
## Wrapper to interact with NCBI SRA using aspera ascp command line interface
## v 2.5 | 04/2017
## @sbamin
# More info: http://download.asperasoft.com/download/docs/ascp/2.7/html/
# usage
show_help() {
@sbamin
sbamin / .bash_aliases
Created April 27, 2017 14:21
bash dotfiles for helix
# User specific aliases and functions
# JAX Helix - HPC
# v 2.2.3 | 03-17 | @sbamin
alias ll='ls -alhF'
alias la='ls -A'
alias l='ls -CF'
alias df='df -H'
alias du='du -ch'
alias cd..='cd ..'
@sbamin
sbamin / r_packages_verhaakenv.tsv
Last active June 18, 2019 01:25
List of R packages under default VerhaakEnv, using R 3.3: Updates, if any are pushed daily; For R 3.4, view https://gist.github.com/sbamin/34c60e74a3d9c20a63016a570d00b81d
Package Version LibPath Built
abind 1.4-5 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
ABSOLUTE 1.2.1 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
acepack 1.4.1 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
ade4 1.7-8 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
afex 0.20-2 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
affy 1.52.0 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
affyio 1.44.0 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
animation 2.5 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
annotate 1.52.1 /projects/verhaak-lab/verhaak_env/verhaak_libs/R/3.3.2 3.3.2
@sbamin
sbamin / mutect_v1.1.7_manpage.txt
Created October 12, 2017 20:38
mutect v1.1.7 manpage
--------------------------------------------------------------------------------
The Genome Analysis Toolkit (GATK) v3.1-0-g72492bb, Compiled 2015/01/21 17:10:56
Copyright (c) 2010 The Broad Institute
For support and documentation go to http://www.broadinstitute.org/gatk
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
usage: java -jar mutect-1.1.7.jar -T <analysis_type> [-args <arg_file>] [-I <input_file>] [-rbs <read_buffer_size>] [-et
<phone_home>] [-K <gatk_key>] [-tag <tag>] [-rf <read_filter>] [-L <intervals>] [-XL <excludeIntervals>] [-isr
<interval_set_rule>] [-im <interval_merging>] [-ip <interval_padding>] [-R <reference_sequence>] [-ndrs] [-maxRuntime
<maxRuntime>] [-maxRuntimeUnits <maxRuntimeUnits>] [-dt <downsampling_type>] [-dfrac <downsample_to_fraction>] [-dcov
@sbamin
sbamin / exampleRScript1.r
Last active November 11, 2017 17:00 — forked from ericminikel/exampleRScript1.r
An example of how to use Rscript and optparse to run R in batch mode with command line args.
#!/usr/bin/env Rscript
# modified from a script by:
# Eric Vallabh Minikel
# https://gist.github.com/ericminikel/8428297
# example of how to use optparse in R scripts
# usage: ./exampleRScript1.r -a thisisa -b hiagain
# ./exampleRScript1.r --avar thisisa --bvar hiagain