Changelog#
v3.0.1#
Release date: 2023-06-20
Added#
assay._Assay.crosstab()to wrappandas.crosstabfor ease of use with mosaic.assay._Assay.crosstabmap()to create heatmaps of the output ofassay._Assay.crosstab().assay._Assay.hierarchical_cluster()to get the hierarchical clustering order of the rows of a DataFrame.
Changed#
Updated matplotlib dependency from
<=3.2.2to>=3.4.0
Fixed#
assay._Assay.heatmap()subclustering performed when convolve=0. It was disabled by default.Custom
typography.cssused in workflows is included in the package dataSetting labels using dictionaries in
assay._Assay.set_labels().
v3.0.0#
Release date: 2023-06-16
Added#
A wrapper for COMPASS.
New variant filters that account for missing data.
Recipe and instructions for building installers.
plot_kindparameter todna.Dna.group_by_genotype()to change the type of plot shown.filter_cellstoio.load()which loads only the intersection algorithm cells.Progress bar to
io.load()algorithms.nsp.NSPandalgorithms.nsp.ExpressionProfileto modularize the NSP code.x_groupstoassay._Assay.heatmap()to group the x-axis by a given list of ids.Simplify and speedup
assay._Assay.heatmap()by removing duplicate data. (By usingplots.heatmap.Heatmap)assay._Assay.convolve()to convolve the data that was earlier performed in the Heatmap.Configuration options accessible via
Config:ms.Config.Colorscale.Dnato change the default color palette for all DNA plots.ms.Config.Colorscale.Cnvto change the default color palette for all CNV plots.ms.Config.Colorscale.Proteinto change the default color palette for all Protein plots.
Custom divirgent colorscale for Cnv Ploidy heatmaps
Option to return indices instead of barcodes in
assay._Asasy.clustered_barcodes().sample.Sample.common_barcodes()to get the common barcodes across assays.Add
subclusterparamter toassay._Assay.clustered_barcodes()to prevent clustering within the labelsOption to pass n-dimensional arrays as splitby in
assay._Assay.clustered_barcodes()Option to fetch a subset of the assays in
sample.Sample.assays()using thenamesparametersample.Sample.clustered_barcodes()to hierarchically cluster using multiple assaysMultiple options added to
sample.Sample.heatmap()to sort the assays, barcodes, and the featuresassay._Assay.signature`()accepts asplitbyparameter to get the signature for each unique label insplitby.Improvements to
assay._Assay.signaturemap():labels and ids are clustered by default.
Option to pass a list of labels to
assay._Assay.signaturemap()to order the labels.The default
featuresoption forcnv.Cnv.signaturemap()is set topositions.
Option to copy the labels and palette together by passing an
assay._Assay()toassay._Assay.set_labels()assay._Assay.heatmap()setssubcluster=Falsewhen calculating the barcode order when convolve is provided.Varsome URLs as hyperlinks on the variant name in the
VariantSubcloneTableAdd percentage of cells and amplicons present to the
CopyNumberWorkflowdna.Dna.mutated_cells()to get the number of cells with at least 1 mutation in each given clone. This is used insample.Sample.signaturemap().
Changed#
apply_filterchanged tofilter_variantsinio.load()SubcloneTree and SubcloneTreeGraph classes are renamed to Tree and TreeGraph respectively.
show_plottoreturn_plotindna.Dna.group_by_genotype()plots.heatmap.Heatmapsplits the vertical and horizontal lines on the main heatmap into two traces.The default value of
vaf_hetindna.Dna.filter_variants()changed from 35 to 30.Flattened
sample.Sample.heatmap`()option has been removed. A more customizable version is available under thesample.Sample.signaturemap()function.The constant -
constants.COLORSto have unique values.The grey values at the 10th, 20th, 30th.. positions were modified to be unique
The black (
#000000) value was moved from the 20th position to the last position
Fixed#
Get indexes maintains the order as per
find_listwhen there are duplicates in thefind_listandorder_using_find_listis True.DANN score in the variants subclone table is shown correctly for saved h5 files.
Overlapping of text in phylogeny trees.
Error in multiprocessing when fetching gene_names for CNV by adding a
max_workersparameter and using threads instead of processes.Missing clone is ignored when finding ADO sisters.
Removed#
Functions to convert legacy loom files to h5 files -
io._loom_to_h5,io._update_fileFunctions to read data from csv files -
io._merge_files,io._cnv_raw_counts,io._protein_raw_countsFunction to merge h5 files -
io._mergeshow_plotfromprotein.Protein.normalize_reads(). The same plot can be created in plotly usingalgorithms.nsp.NSP.plot()show_plotfromprotein.Protein.get_signal_profile(). The same plot can be created in plotly usingalgorithms.nsp.ExpressionProfile.plot()protein.Protein.get_signal_profilefunction. It can be executed usingalgorithms.nsp.ExpressionProfile.fit()if needed.protein.Protein.get_scaling_factorfunction. It can be executed usingalgorithms.nsp.NSP.scaling_factor()if needed