Skip to content

Instantly share code, notes, and snippets.

View dblyon's full-sized avatar

David Lyon dblyon

View GitHub Profile
name: bio134
channels:
- anaconda
- bioconda
- nodefaults
dependencies:
- python=3.7
- numpy
- scipy
- sympy
@dblyon
dblyon / volcano.py
Last active August 14, 2022 13:32
Volcano plot: log2(ratio) vs. log10(p-value)
class Volcano(object):
"""
create a Volcano plot from log2(ratios) and corresponding -log10(p_values)
ToDo: take care of infinite ratios
e.g. usage
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib