Skip to content

Instantly share code, notes, and snippets.

View gblanchard4's full-sized avatar

Gene Blanchard gblanchard4

  • New Orleans
View GitHub Profile
### Keybase proof
I hereby claim:
* I am gblanchard4 on github.
* I am geneblanchard (https://keybase.io/geneblanchard) on keybase.
* I have a public key ASBpQQuqCR7mwRtT7cEu8T8pPtcrLKWnKYINwwkqWPZjZgo
To claim this, I am signing this object:
@gblanchard4
gblanchard4 / kdv_swapper.py
Last active February 1, 2017 00:52
KDV window swapper
#!/usr/bin/env python
import ctypes
import sys
import time
EnumWindows = ctypes.windll.user32.EnumWindows
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int))
GetWindowText = ctypes.windll.user32.GetWindowTextW
GetWindowTextLength = ctypes.windll.user32.GetWindowTextLengthW
IsWindowVisible = ctypes.windll.user32.IsWindowVisible
levels = [u' KEGG Orthology (KO) [BR:ko00001]',
u' Metabolism',
u' Carbohydrate metabolism',
u' 00040 Pentose and glucuronate interconversions',
u' K00012 UGDH, ugd; UDPglucose 6-dehydrogenase',
u' 00053 Ascorbate and aldarate metabolism',
u' K00012 UGDH, ugd; UDPglucose 6-dehydrogenase',
u' 00520 Amino sugar and nucleotide sugar metabolism',
u' K00012 UGDH, ugd; UDPglucose 6-dehydrogenase']
@gblanchard4
gblanchard4 / biom_kegg_extract.py
Created July 1, 2016 20:20
Extract Kegg pathways from a biom file
#!/usr/bin/env python
import argparse
from biom import parse_table
__author__ = "Gene Blanchard"
__email__ = "me@geneblanchard.com"
# Scrub that junk!
def symbolic_cleaner(pathway):
@gblanchard4
gblanchard4 / derep_and_map.py
Created January 26, 2016 19:42
Derep and keep a map of original seqs
#!/usr/bin/env python
import argparse
import collections
from itertools import groupby
__author__ = "Gene Blanchard"
__email__ = "me@geneblanchard.com"
'''
Dereplicate an fna and keep original mapping
@gblanchard4
gblanchard4 / install.md
Last active March 22, 2018 23:17
Qiime 1.9.1 Virtualenv

Local Qiime 1.9 install with Virtualenv

Basic install

  • Make a new virtual env

    • virtualenv qiime19
  • Source the new virtual env

    • source qiime19/bin/activate
@gblanchard4
gblanchard4 / templet.py
Last active November 16, 2015 03:02
Python Templet
#!/usr/bin/env python
import argparse
__author__ = "Gene Blanchard"
__email__ = "me@geneblanchard.com"
'''
Python Templet
< Insert Description Here >
'''
@gblanchard4
gblanchard4 / derep_seqs.py
Last active August 29, 2015 13:56
Python Fasta Dereplicator
#! /usr/bin/env python
__author__ = "Gene Blanchard"
__email__ = "me@geneblanchard.com"
'''
derep_seqs.py
Python version of USEARCH's derep command
Fixed the time output to H:M:S format