Fishplot#

missionbio.plotting.fishplot.Fishplot

class Fishplot(labels: Sequence[str], parents: Sequence[Optional[str]], sample_order: Sequence[str], times: Optional[List[float]], barcode_labels: Sequence[str], barcode_samples: Sequence[str])#

Container for creating a fishplot.

Functions#

draw(palette[, align, offset_start, fig, ...])

Create and draw the fishplot.

Parameters:
labelsSequence[str]

The list of labels (i.e. subclones) to include in the plot. All values must be unique.

parentsSequence[str]

The list of parents for each clone. It must be None for the root clone.

sample_orderSequence[str]

Names of the samples to include in the plot and the order in which to plot the samples. All values must be unique.

timeslist[float]

List of relative time points for the samples. Must be the same length as the number of samples. The timepoints will benormalized to between 0 and 1.

barcode_labelsSequence[str]

The labels for all the barcodes. This value is used to determine the proportions of each clone at each time point

barcode_samplesSequence[str]

The sample for all the barcodes. This value is used to determine the proportions of each clone at each time point