Skip to content

Instantly share code, notes, and snippets.

View xguse's full-sized avatar

Gus Dunn xguse

View GitHub Profile
@xguse
xguse / noise.sh
Last active November 21, 2022 12:14 — forked from rsvp/noise.sh
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@xguse
xguse / requirements.bio.txt
Created September 22, 2020 13:34
pheno_tools install scripts
r-essentials
r-pheatmap
bioconductor-singler
r-seurat
r-hdf5r
r-tidyverse
bioconductor-scater
@xguse
xguse / ParseFastQ.py
Created February 19, 2012 22:43
Simple Python FastQ Parser class
class ParseFastQ(object):
"""Returns a read-by-read fastQ parser analogous to file.readline()"""
def __init__(self,filePath,headerSymbols=['@','+']):
"""Returns a read-by-read fastQ parser analogous to file.readline().
Exmpl: parser.next()
-OR-
Its an iterator so you can do:
for rec in parser:
... do something with rec ...
@xguse
xguse / pacman_backup_restore.txt
Last active December 4, 2016 10:34
pacman backup and restore commands
pacman -Qqe | grep -v "$(pacman -Qqm)" > pacman.lst
cat pacman.lst | xargs pacman -S --needed --noconfirm
========================
$ pacman -Qqe | grep -vx "$(pacman -Qqm)" > Packages
$ pacman -Qqm > Packages.aur
@xguse
xguse / g1kv37_vs_hg19.tsv
Last active June 15, 2016 19:23 — forked from lindenb/FastaMD5.java
md5sums and bash pipeline for confirming chromosome validity for human_g1k_v37.fasta
1b22b98cdeb4a9304cb5d48026a85128 1 dna:chromosome chromosome:GRCh37:1:1:249250621:1 chr1
988c28e000e84c26d552359af1ea2e1d 10 dna:chromosome chromosome:GRCh37:10:1:135534747:1 chr10
98c59049a2df285c76ffb1c6db8f8b96 11 dna:chromosome chromosome:GRCh37:11:1:135006516:1 chr11
06cbf126247d89664a4faebad130fe9c GL000202.1 dna:supercontig supercontig::GL000202.1:1:40103:1 chr11_gl000202_random
51851ac0e1a115847ad36449b0015864 12 dna:chromosome chromosome:GRCh37:12:1:133851895:1 chr12
283f8d7892baa81b510a015719ca7b0b 13 dna:chromosome chromosome:GRCh37:13:1:115169878:1 chr13
98f3cae32b2a2e9524bc19813927542e 14 dna:chromosome chromosome:GRCh37:14:1:107349540:1 chr14
e5645a794a8238215b2cd77acb95a078 15 dna:chromosome chromosome:GRCh37:15:1:102531392:1 chr15
fc9b1a7b42b97a864f56b348b06095e6 16 dna:chromosome chromosome:GRCh37:16:1:90354753:1 chr16
351f64d4f4f9ddd45b35336ad97aa6de 17 dna:chromosome chromosome:GRCh37:17:1:81195210:1 chr17
@xguse
xguse / pooh.py
Last active June 11, 2016 16:41
pooh.py
# Gus
def m(y=3.65E4):
return y - 1
# Rei
@xguse
xguse / ElevatorPitch_Thesis.md
Created October 4, 2013 23:51
Concise explanation of my PhD thesis

My thesis involves lots of RNA-seq based gene expression from the midguts of three disease vector mosquitoes. The main aim is to see if certain gene expression regulatory patterns that are involved in the response to a bloodmeal might be conserved due the fact that bloodfeeding is believed to be ancestral to the mosquito linage. However, I have also written a couple python packages to aid in the project. The first is simply an automation tool for running the RNA-seq analyses and recording settings/intermediate data. The second is intended to facilitate the incorporation of multiple disparate genomic-scale data-types (orthology, phylogenetics, protein-domain annotations, etc) with the gene expression data in a network-graph-based data structure.

The major focus of my current lab is to produce genetically modified mosquitoes that do not transmit Malaria or Dengue Fever that will be able to spread this trait swiftly through local mosquito populations rendering the area protected from transmission. Since the mid

@xguse
xguse / antiGMO_is_like_antiVAX
Last active December 24, 2015 05:19
A heartfelt plea to re-evaluate the antiSCIENCE tendencies of the antiGMO movement
First of all, thank you for letting me say my piece. Unless directly addressed
after this, I will leave your page in peace and not disturb you further.
However, I feel I need to bring some things to light that many of you may not
have considered in depth. Again, I thank you for your civility and open
mindedness and hope that you believe me when I tell you that my actions stem
only from a place of deep deep frustration and the desire to help those who need
it. The same place, I dare say that many of you will be coming from. I ask
only that you read me out and DO try to avoid the reflex of writing what I say
off bc it goes against what you have read or heard or feel. My intentions are
as far from offense as is possible. After all, my self-professed cause is to
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - https://gpgtools.org
mQINBFIKB18BEADWZvUf+2taIgGEl+AbZVOEuPt1movmT2KG9qY0354RS4EVJU+s
3edCSm55ynazcJo6ikSEsVFb2LKa9Lmqpf//32Q3Mpt10AX7nLcnxYBrMCu6uVBV
l+9cpPKIFtOLLZQvLN4LhgS39wAi+Azin3on3LrTWc7knRwCeGrx+UupbDdYiExm
sVleD9gjKX9ri/sqEdBlNZV48pXrCGbEC3b50Jh1rdPIUg//KZMAwThuOzXo2Y8l
9pWLWZqbuNXCBNDixq3TVOZAptWrvSSCQDrfA+wJbho9dRR3jurgoF9kb8BiJnsL
CZkf2R8tMUfgG866okRisRCIE8VbRX19bS6is0czKa/1/HJc0NDhLV4hig2aijsP
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20130712
Comment: http://openpgpjs.org
xsBNBFINLngBCACTfqW1ZsIPtaBCeXGQ+KuG66wBCTVNodqhY5P292sekYOG
1ldjADX1bO/T88nqQlBgJi/gwzOb9dDkD/MXjcdX3buJS+oiPsHdG9+v34Xq
owZCbZP4XAHC3epXkpN/K/kMdjY5mPorakeP4eXWKT3XfKwhe/GoZ3eXcxaH
tfGIK1M055fBCQIuOusgMf55dbsfg9QyzTbXZciP0x9PuUvrd3TaYpebBmYq
cTc0Z44feQevj+/GQxh8Il4i+eJF1mpa1gzVbAKfnAXu1zxqOuHIwfbaKlgM
f32fXFC17ya/2ZQ7wkme/E2XOTrSjuSYLj5hewDccYat+T9dtaZRfFWjABEB