Skip to content

Instantly share code, notes, and snippets.

View ConstantinoSchillebeeckx's full-sized avatar

Constantino Schillebeeckx ConstantinoSchillebeeckx

View GitHub Profile
@bskinn
bskinn / intersphinx_mappings.txt
Last active May 31, 2024 17:54
Various intersphinx mappings
# The entries in this file are checked regularly for validity via the Github Action
# sited at github.com/bskinn/intersphinx-gist.
# Please feel free to post an issue at that repo if any of these mappings don't work for you,
# or if you're having trouble constructing a mapping for a project not listed here.
Python 3 [latest]: ('https://docs.python.org/3/', None)
Python 3 [3.x]: ('https://docs.python.org/3.9/', None)
attrs [stable]: ('https://www.attrs.org/en/stable/', None)
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/')
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None)
@adamrp
adamrp / filter_observations_by_sample.py
Last active December 11, 2019 10:32
Given a biom table, iterate over the SampleData. Set observations that represent less than a certain fraction of the sample's total abundance to zero.
#!/usr/bin/env python
from argparse import ArgumentParser
from numpy import array
from biom import load_table, Table
__author__ = "Adam Robbins-Pianka"
__copyright__ = "Copyright 2013"
__credits__ = ["Adam Robbins-Pianka"]