Skip to content

Instantly share code, notes, and snippets.

View gawbul's full-sized avatar

Steve Moss gawbul

View GitHub Profile
@gawbul
gawbul / spectra_code.R
Last active August 29, 2015 13:55
Spectra data code to produce box plot
# load libraries
library(gdata)
library(reshape2)
library(ggplot2)
# load data - trim last two rows
spectra_data <- read.xls("/Users/stevemoss/Downloads/CORRECTIONS.xls", sheet="Corrected Values")[1:11,]
names(spectra_data)
head(spectra_data)
tail(spectra_data)
@gawbul
gawbul / r66_unique_family_descriptions.csv
Created March 21, 2015 19:01
r66_unique_family_descriptions.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Family.Description
AMBIGUOUS
DISINTEGRIN AND METALLOPROTEINASE DOMAIN CONTAINING 5 TRANSMEMBRANE METALLOPROTEINASE DISINTEGRIN AND CYSTEINE RICH II TMDC II
PROBABLE RIBOSOME BIOGENESIS RLP24 RIBOSOMAL L24 DOMAIN CONTAINING 1
ADENOSINE RECEPTOR A3
TRANSCRIPTION FACTOR 19 TCF 19 TRANSCRIPTION FACTOR SC1
PROLIFERATION ASSOCIATED 2G4 P38 2G4
TRIPARTITE MOTIF CONTAINING 40
ANKYRIN REPEAT AND SOCS BOX ASB
BUTYROPHILIN 2
@gawbul
gawbul / r67_unique_family_descriptions.csv
Created March 21, 2015 19:04
r67_unique_family_descriptions.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Family.Description
COMPLEMENT C3 COMPLEMENT C3 BETA CHAIN; COMPLEMENT C3 ALPHA CHAIN; C3A ANAPHYLATOXIN; COMPLEMENT
PROTOCADHERIN GAMMA PRECURSOR PCDH GAMMA
UNKNOWN
HISTONE H3
MHC CLASS I POLYPEPTIDE RELATED SEQUENCE PRECURSOR MIC
KERATIN TYPE II CYTOSKELETAL CYTOKERATIN CK KERATIN TYPE II KERATIN
OLFACTORY RECEPTOR
60S RIBOSOMAL L7A
PRAME FAMILY MEMBER
@gawbul
gawbul / keybase.md
Created April 14, 2015 20:59
keybase.md

Keybase proof

I hereby claim:

  • I am gawbul on github.
  • I am gawbul (https://keybase.io/gawbul) on keybase.
  • I have a public key whose fingerprint is 705F CA8A 945B A999 F7A9 AFE9 59C3 CB71 CBC4 3646

To claim this, I am signing this object:

@gawbul
gawbul / missing_maker_prerequisites.txt
Last active August 29, 2015 14:21
MISSING MAKER PREREQUISITES - CANNOT CONTINUE!!
==> Installing maker from homebrew/homebrew-science
/usr/bin/env perl -e use Bio::Perl
/usr/bin/env perl -e use Bit::Vector
/usr/bin/env perl -e use DBD::SQLite
/usr/bin/env perl -e use DBI
/usr/bin/env perl -e use File::Which
/usr/bin/env perl -e use IO::All
/usr/bin/env perl -e use IO::Prompt
/usr/bin/env perl -e use Inline
/usr/bin/env perl -e use Perl::Unsafe::Signals
@gawbul
gawbul / mira_quirks_error.txt
Last active August 29, 2015 14:21
mira error quirks.C:56:5: error: 'cout' is not a member of 'std'
==> Installing mira from homebrew/homebrew-science
couldn't understand kern.osversion `14.3.0'
==> Downloading https://downloads.sourceforge.net/project/mira-assembler/MIRA/stable/mira-4.0.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mira-4.0.2.tar.bz2
==> Verifying mira-4.0.2.tar.bz2 checksum
tar xf /Library/Caches/Homebrew/mira-4.0.2.tar.bz2
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/mira/4.0.2 --with-expat=/usr/local/opt/expat --with-expat-lib=-L/usr/local/opt/expat/lib --with-boost=/usr/local/opt/boost --with-boost-libdir=/usr/local/opt/boost/lib --with-boost-regex=boost_regex-mt --with-boost-system=boost_system-mt --with-boost-filesystem=boost_filesystem-mt --with-boost-iostreams=boost_iostreams-mt --with-tcmalloc --with-tcmalloc-dir=/usr/local/opt/google-perftools/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
@gawbul
gawbul / fastq_rnd_seek.py
Last active August 29, 2015 14:21
Random FASTQ record seeker
#!/usr/bin/env python
# import modules
import os, random, sys
# parse arguments
if len(sys.argv) != 2:
print "Requires one input filename as an argument."
sys.exit()
filename = sys.argv[1]
@gawbul
gawbul / fastq_rnd_seek_proper.py
Last active August 29, 2015 14:21
Proper random FASTQ record seeker
#!/usr/bin/env python
# import modules
import mmap, os, random, sys
from Bio import SeqIO
from StringIO import StringIO
# parse arguments
if len(sys.argv) != 3:
print "Requires an input filename and integer as arguments."
sys.exit()
@gawbul
gawbul / fastq_rnd_seek_proper_re.py
Created May 16, 2015 20:12
Proper random FASTQ record seeker using RegEx
#!/usr/bin/env python
# import modules
import mmap, os, random, re, sys
# parse arguments
if len(sys.argv) != 3:
print "Requires an input filename and integer as arguments."
sys.exit()
filename = sys.argv[1]
try:
@gawbul
gawbul / poretools.rb
Last active August 29, 2015 14:21
poretools installation using homebrew
class Poretools < Formula
desc "Tools for working with nanopore sequencing data"
homepage "http://poretools.readthedocs.org/"
url "https://github.com/arq5x/poretools/archive/v0.5.1.tar.gz"
sha256 "7cd55a8f30290992dcf8d7792401e7f21efadfde02b3f4604d6680d2f8300479"
head "https://github.com/arq5x/poretools.git"
depends_on "hdf5"
depends_on "r"
depends_on :python if MacOS.version <= :snow_leopard