Skip to content

Instantly share code, notes, and snippets.

View gregcaporaso's full-sized avatar
🌱

Greg Caporaso gregcaporaso

🌱
View GitHub Profile
@gregcaporaso
gregcaporaso / README.md
Created October 27, 2012 00:09
A quick and dirty script for generating "positive control" data for the PICRUST project

Notes by Greg Caporaso ([email protected])

Analysis goals

From email to picrust-developers on 4 Oct 2012:

  1. Filter the HMP (not HMP-mock) data set to ~50-100k sequences at random to form a filtered dataset (for decreased run time).

  2. Select ~12 of the most abundant IMG-defined OTUs from the HMP, and slice the reference sequence to the amplified region in that dataset. "IMG-defined" here means that we have an IMG genome attached to the OTU, opposed to the Greengenes-defined OTUs where we don't have a genome for that specific OTU. "most abundant" will be somewhat arbitrary - I'm thinking something like a random 12 IMG-defined from the 25% most abundant OTUs in the dataset.

@gregcaporaso
gregcaporaso / another_file.md
Created October 15, 2012 21:53
code sprint notes

some other information.

@gregcaporaso
gregcaporaso / README.md
Created October 10, 2012 16:17
Script for running merge_otu_tables.py in parallel

Code for merging OTU tables in parallel. This code was written by Daniel McDonald.

@gregcaporaso
gregcaporaso / mapper-comparison-notes.ipynb
Created October 3, 2012 02:23
Comparison of several features of tools for mapping DNA reads to a DNA reference database
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregcaporaso
gregcaporaso / gmail.py
Created September 29, 2012 19:07
Functions for sending messages with gmail
import os.path
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email import Encoders
def mail(to, subject, text, mail_user, mail_password, attach=None):
msg = MIMEMultipart()
@gregcaporaso
gregcaporaso / test.txt
Created September 17, 2012 22:15
temp biom file
test
@gregcaporaso
gregcaporaso / compare_categories.py
Created September 12, 2012 16:58
Patched version of Qiime/scripts/compare_categories.py for QIIME 1.5.0
#!/usr/bin/env python
from __future__ import division
__author__ = "Logan Knecht"
__copyright__ = "Copyright 2012, The QIIME project"
__credits__ = ["Logan Knecht", "Michael Dwan", "Damien Coy", "Jai Ram Rideout",
"Levi McCracken"]
__license__ = "GPL"
__version__ = "1.5.0-dev-svn3058-bugfix"
__maintainer__ = "Jai Ram Rideout"
@gregcaporaso
gregcaporaso / cloud_demo_complete.ipynb
Created September 10, 2012 20:06
IPython notebooks corresponding to Reagan et al, ISME Journal 2012
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregcaporaso
gregcaporaso / qiime_to_humann.py
Created July 20, 2012 02:14
Quick-and-dirty script to take combined bl6 file and split it into per-metagenome bl6 files.
#!/usr/bin/env python
# File created on 19 Jul 2012
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"
@gregcaporaso
gregcaporaso / summarize_barcodes.py
Created July 10, 2012 17:07
Script for summarizing barcode error in the 'ultra-deep' ANL sequencing run
#!/usr/bin/env python
# File created on 03 Jul 2012
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"