Skip to content

Instantly share code, notes, and snippets.

View gregcaporaso's full-sized avatar
🌱

Greg Caporaso gregcaporaso

🌱
View GitHub Profile
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Auto-generated by provenance_lib v.0.2.0 at 09:49:51 AM on 24 Jan, 2023
# This document is a representation of the scholarly work of the creator of the
# QIIME 2 Results provided as input to provenance_lib, and may be protected by
# intellectual property law. Please respect all copyright restrictions and
# licenses governing the use, modification, and redistribution of this work.
# For User Support, post to the Community Plugin Support channel of the QIIME 2
@gregcaporaso
gregcaporaso / empress-replay.bash
Last active January 26, 2023 19:29
example provenance replay scripts
#!/usr/bin/env bash
###############################################################################
# Auto-generated by provenance_lib v.0.2.0 at 09:49:20 AM on 24 Jan, 2023
# This document is a representation of the scholarly work of the creator of the
# QIIME 2 Results provided as input to provenance_lib, and may be protected by
# intellectual property law. Please respect all copyright restrictions and
# licenses governing the use, modification, and redistribution of this work.
# For User Support, post to the Community Plugin Support channel of the QIIME 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregcaporaso
gregcaporaso / qiime2-issue190.ipynb
Created December 1, 2016 20:06
QIIME 2 issue #190 example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregcaporaso
gregcaporaso / jgcaporaso-qiime2-scipy2016.ipynb
Last active March 25, 2020 19:55
QIIME 2 demo at SciPy2016
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-exercise.ipynb
Created April 5, 2016 15:46
Final assignment for BIO/CS 499/599 (Spring 2016)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregcaporaso
gregcaporaso / notes.md
Last active November 10, 2015 18:00
convert biom observation counts to per-sample rank abundances

You'll need to install master of biom-format to use this until the 2.1.6 release is posted (at which point that milestone will be closed, and you can skip this step if you're using biom-format >=2.1.6, < 2.2.0), which you can do as follows:

pip install https://github.com/biocore/biom-format/archive/master.zip

Then, run the following command, substituting your file names for in.biom and out.biom:

python -c "from biom import load_table; t = load_table('in.biom'); t.rankdata(); t.to_json('biom 2.1.5-dev', direct_io=open('out.biom','w'))"
@gregcaporaso
gregcaporaso / notes.md
Last active June 23, 2022 15:57
vsearch-based sequence dereplication through generation of a biom table

This depends on biom version >= 2.1.5, < 2.2.0 and vsearch >= 1.7.0.

Please note that all of this is highly experimental. I'm keeping these notes as I work with this approach. For published work, I still recommend using standard pipelines, such as those in QIIME 1.9.1.

$ biom --version
biom, version 2.1.5

$ vsearch --version
vsearch v1.7.0_osx_x86_64, 16.0GB RAM, 8 cores