-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b61d3ea
commit 828fcac
Showing
7 changed files
with
121 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
**Customized violin plot** | ||
========================== | ||
|
||
This visualization function can be launched from `class DigitalCellSorter`. | ||
By default the function also exports a summary of the data. | ||
|
||
From submodule `VisualizationFunctions`: | ||
|
||
|
||
.. autoclass:: DigitalCellSorter.VisualizationFunctions.VisualizationFunctions | ||
:noindex: | ||
|
||
.. automethod:: makeViolinPlot | ||
|
||
|
||
**Example with synthetic data:** | ||
|
||
.. code-block:: python | ||
data = pd.DataFrame({'Celltype': np.where((np.random.rand(1000)>0.7), 'Epithelial', 'Endothelial'), | ||
'Condition': np.random.rand(1000)>0.3, | ||
'Gene 1': np.log(np.random.rand(1000)*3 + 1), | ||
'Gene 2': np.log(np.random.rand(1000)*1.5 + 1)}) | ||
DCS = DigitalCellSorter.DigitalCellSorter() | ||
DCS.makeViolinPlot(data, ['Gene 1', 'Gene 2'], | ||
dimPanels='Celltype', dimCategories='Condition', | ||
title='{name}: {gene}', ylabel='Condition', | ||
pointsSize=5, fontsize=12) | ||
**Example output:** | ||
|
||
.. thumbnail:: https://github.com/sdomanskyi/DigitalCellSorter/blob/master/docs/examples/output/violin_plot.png?raw=true | ||
:title: Example | ||
:alt: Cannot load this figure | ||
:align: center | ||
:width: 250px | ||
:height: 250px | ||
:download: false | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters