Skip to content

Instantly share code, notes, and snippets.

View cfljam's full-sized avatar

John McCallum cfljam

View GitHub Profile
@cfljam
cfljam / Designing CAPS Markers.ipynb
Last active December 19, 2015 03:49
iPython Notebook describing basic use of the Python PCR Design Tools
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
##remove non-printing characters from a file
cat file | tr -dc "[:alnum:][:space:][:punct:]"
@cfljam
cfljam / using_PCR_design_python_tools_1.ipynb
Created September 30, 2013 02:36
Designing HRM primer sets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfljam
cfljam / using_PCR_design_python_tools_1.ipynb
Created September 30, 2013 03:50
Designing HRM primer sets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfljam
cfljam / gist:7036413
Created October 18, 2013 04:15
install a python package to $HOME when you dont have root access
pip install --install-option="--prefix=$HOME/local" package-name
export PYTHONPATH=$PYTHONPATH:~/local/lib/python2.6/site-packages/
@cfljam
cfljam / gist:7104939
Created October 22, 2013 17:48
Remove descriptions from fasta headers
sed 's/\(>\w*\)\s*.*/\1/'
@cfljam
cfljam / gist:7130580
Created October 24, 2013 02:58
Revealing and Removing ^M from a file in Unix
##To reveal non-printing characters
cat -v my_file
##To remove
cat my_file | col -v > new_file
@cfljam
cfljam / ipcress_tabular2gff
Last active December 30, 2015 17:59
parse hits in ipcress output into simple columnar form and parse this into gff
awk '/^ipcress:/, split($2,HIT,":"){print HIT[1],$3,$4,$5,$6,$7,$8,$9,$10,$11}'
@cfljam
cfljam / Exploring Vcf analysis with PyVCF .ipynb
Created January 28, 2014 17:41
Using PyVcf to parse vcf format variant data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfljam
cfljam / Exploring use of vcftools for VCF parsing.ipynb
Created January 30, 2014 19:03
Using vcftools for VCF parsing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.