This script contains various plotting functions for strains analysis, such as histograms, PCA projection, MDS, Silhouette plot.
Plot histogram of distances between WT strains and save the histogram to directory :param:`out_dir`.
Parameters: | wt_wt (list) – Distances between all pairs of WT strains. |
---|
Plot and save to directory :param:`out_dir` overlayed histograms of distances between collections :param:`colls`.
Parameters: | colls_labels (list) – Names of collections as ordered and specified by parameter :param:`colls`. |
---|
Plot overlayed (i) histogram of mean distances of WT strains to other WT strains and (ii) and histogram of mean mutant distances to WT strains. Save the plot to directory :param:`out_dir` named hist_WT-WT_MT-MT_distances.pdf.
Parameters: |
|
---|
Plot histogram of mean distances of mutant strains to WT strains and save the histogram to directory :param:`out_dir`.
Parameters: | m_mt_wt (list) – Mean distance of each mutant strain to WT strains averaging distances if replicates exist. |
---|
Compute and plot observed mutant distance and mean mutant distance to sampled random set of mutant strains. Save histogram showing null distribution of distances and observed distance for each mutant to directory :param:`out_dir`.
Parameters: |
|
---|
Plot a histogram of of input data and plot the analytic normal PDF over it. Save it to a file :param:`out_name`.
Parameters: | title (str) – Plate identifier used as part of title in the plot. |
---|
Plot 3D projection along PCA components with the most variance and save it to a file :param:`out_name`.
Parameters: |
|
---|
Produce matrix plot of wells as placed on the plate. The entries in matrix are mean observation distances in param:dist_matrix from other observations on plate. Save to file named :param:`out_name`.
White entries in the plot represent missing strains or removed WT strains due to outlier detection.
Parameters: | title (str) – Plate identifier used as part of title in the plot. |
---|
Return matrix of mean well distances.
Save a silhouette plot to file named :param:`out_name`, showing the distributions of silhouette scores :param:`scores` in clusters. Scores represent the silhouette scores for each observation.
Parameters: |
|
---|