Biology — raincloud plot of single-cell measurements
Raincloud plot of neurite length in three genotypes — half violin, box and every individual neuron — so a bimodal knockout is seen rather than averaged away. Typed FlowScript for laboratory biology. Keywords: experiment, assay, sample, protocol.
Make it your own.
// Raincloud plot of neurite length in three genotypes — half violin, box and every individual neuron — so a bimodal knockout is seen rather than averaged away.
//
// Every string below is EXAMPLE text from a fictional experiment: replace it.
//
// One value per neuron: total neurite length (µm) at day 14 in vitro,
// traced blind to genotype, 36 neurons per genotype pooled from three
// independent differentiations (12 per differentiation). Paste your own
// observations into values: — one number per cell, null for a cell that
// could not be traced — and the density, box, quartiles, Tukey fences, n
// and the per-group summaries are recomputed from them.
//
// Why a raincloud and not a bar of means: about a third of the knockout
// neurons grow normally. The mean of the knockout group sits between the
// two populations and describes almost no actual cell; the violin shows the
// second mode and the rain shows how many neurons are in it.
//
// The unit of replication for inference is the differentiation, not the
// neuron. Test the genotype effect on per-differentiation means, or with a
// mixed model with differentiation as a random effect; 36 neurons are not
// 36 independent replicates.
distribution neurite_length {
label: "Total neurite length"
title: "Total neurite length at DIV 14, by genotype"
unit: "µm"
kind: raincloud
jitter: true
group wild_type {
label: "Wild type"
values: [
222.8, 228.1, 266.9, 216.1, 208.6, 225.5, 178, 263.4, 164.5, 244.5, 221.4, 239.9,
199.5, 200.4, 207.3, 215.3, 277.8, 261.3, 183.1, 216, 194.3, 160.9, 206.5, 265.6,
336.3, 200.5, 305.8, 185.4, 208.6, 152.4, 197.9, 232.1, 179.7, 163.7, 153.6, 230.7
]
}
group knockout {
label: "Knockout"
values: [
171, 112, 102.9, 128.8, 118.4, 99.9, 115.8, 204.6, 161.2, 176, 158.6, 94.1,
96.1, 116.3, 123.7, 111, 122.8, 132.4, 189.7, 191.4, 133.2, 86.5, 131.8, 126.3,
162.5, 106.7, 95.3, 215, 190.4, 120.8, 232.1, 128.6, 274.2, 198.7, 134.6, 98.8
]
}
group rescue {
label: "Knockout + rescue construct"
values: [
313.9, 246.7, 232.9, 233.8, 222.5, 213.6, 200.6, 152.4, 176.4, 196.7, 233.7, 347.4,
151.6, 211.8, 261.6, 311.6, 132.6, 137.3, 218.2, 170.9, 157, 250.5, 203.6, 250.8,
199.9, 167.2, 218.7, 165.6, 176, 220.6, 139.1, 187.4, 207.6, 228.1, 215.5, 253.2
]
}
}
view neurite_raincloud: raincloud(neurite_length)