choppa.logoplots.LogoPlot

class choppa.logoplots.LogoPlot(residue_dict, fitness_threshold)[source]

Given a dict with mutants for a given residue, generate logoplots.

__init__(residue_dict, fitness_threshold)[source]

Methods

__init__(residue_dict, fitness_threshold)

build_logoplot([global_min_confidence, ...])

divide_fitness_types()

Determines which mutants are fit/unfit given the fitness_threshold and returns all data required for logoplot generation in a simple dict form.

render_logoplot(mutants[, ...])

Creates a logoplot as a base64 string.

divide_fitness_types()[source]

Determines which mutants are fit/unfit given the fitness_threshold and returns all data required for logoplot generation in a simple dict form.

render_logoplot(mutants, global_min_confidence=False, global_max_confidence=False, lhs=True, wildtype=False)[source]

Creates a logoplot as a base64 string. Also annotes with confidence values if present.

TODO: nicer rounded ticks agnostic to array limits