Skip to content

Commit

Permalink
fix bug for anno_img
Browse files Browse the repository at this point in the history
  • Loading branch information
DingWB committed Apr 19, 2024
1 parent ea925cb commit 8c38982
Show file tree
Hide file tree
Showing 140 changed files with 10,561 additions and 4,848 deletions.
Binary file added data/anno_img_example.pickle
Binary file not shown.
Binary file added data/enrichment_analysis_dotHeatmap.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/PyComplexHeatmap.annotations.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/PyComplexHeatmap.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/PyComplexHeatmap.example.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
46 changes: 16 additions & 30 deletions docs/build/doctrees/nbsphinx/notebooks/advanced_usage.ipynb

Large diffs are not rendered by default.

1,250 changes: 1,250 additions & 0 deletions docs/build/doctrees/nbsphinx/notebooks/anno_img_example.ipynb

Large diffs are not rendered by default.

45 changes: 16 additions & 29 deletions docs/build/doctrees/nbsphinx/notebooks/cpg_modules.ipynb

Large diffs are not rendered by default.

846 changes: 820 additions & 26 deletions docs/build/doctrees/nbsphinx/notebooks/dev.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions docs/build/doctrees/nbsphinx/notebooks/test.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "5abd163d-47c1-4419-ae06-c6be2c69a624",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1.7.2.dev0+g8abf70a.d20240415\n"
]
}
],
"source": [
"import os,sys\n",
"%matplotlib inline\n",
"import matplotlib.pylab as plt\n",
"import pickle\n",
"plt.rcParams['figure.dpi'] = 100\n",
"plt.rcParams['savefig.dpi']=300\n",
"sys.path.append(os.path.expanduser(\"~/Projects/Github/PyComplexHeatmap\"))\n",
"import PyComplexHeatmap\n",
"print(PyComplexHeatmap.__version__)\n",
"from PyComplexHeatmap import *"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "eed2f250-92b2-434c-b268-22b4be27d4f6",
"metadata": {},
"outputs": [],
"source": [
"#set font to Arial using the following code\n",
"plt.rcParams['font.family']='sans serif'\n",
"plt.rcParams['font.sans-serif']='Arial'\n",
"# set pdf.fonttype to 42\n",
"plt.rcParams['pdf.fonttype']=42"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "548e870f-91fc-4f63-91d8-96f8822cbf36",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "wding",
"language": "python",
"name": "wding"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
873 changes: 0 additions & 873 deletions docs/build/doctrees/nbsphinx/notebooks/test_add_anno_img.ipynb

This file was deleted.

Binary file modified docs/build/doctrees/nbsphinx/notebooks_advanced_usage_36_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/build/doctrees/nbsphinx/notebooks_cpg_modules_12_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/build/doctrees/nbsphinx/notebooks_dev_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/notebooks/advanced_usage.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/notebooks/cpg_modules.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/notebooks/dev.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/notebooks/gene_enrichment_analysis.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/notebooks/kwargs.doctree
Binary file not shown.
Binary file added docs/build/doctrees/notebooks/test.doctree
Binary file not shown.
Binary file not shown.
47 changes: 28 additions & 19 deletions docs/build/html/PyComplexHeatmap.annotations.html

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions docs/build/html/PyComplexHeatmap.clustermap.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="gallery.html">Gallery</a></li>
<li class="toctree-l1"><a class="reference internal" href="dev.html">For Developers</a><ul>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html">1. Understand the layout:</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html">Understand the layout:</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#Test-dendrogram">Test dendrogram</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#anno_label">anno_label</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#anno_img">anno_img</a><ul>
<li class="toctree-l3"><a class="reference internal" href="notebooks/dev.html#extent">extent</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">PyComplexHeatmap</a><ul class="current">
Expand All @@ -177,6 +183,7 @@
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_axes_kws"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_axes_kws()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_label"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_label()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_legend"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_legend()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_orientation"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_orientation()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.update_plot_kws"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.update_plot_kws()</span></code></a></li>
</ul>
</li>
Expand All @@ -198,13 +205,13 @@
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img"><code class="docutils literal notranslate"><span class="pre">anno_img</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img.plot"><code class="docutils literal notranslate"><span class="pre">anno_img.plot()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img.read_img"><code class="docutils literal notranslate"><span class="pre">anno_img.read_img()</span></code></a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label"><code class="docutils literal notranslate"><span class="pre">anno_label</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.get_ticklabel_width"><code class="docutils literal notranslate"><span class="pre">anno_label.get_ticklabel_width()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.plot"><code class="docutils literal notranslate"><span class="pre">anno_label.plot()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.set_plot_kws"><code class="docutils literal notranslate"><span class="pre">anno_label.set_plot_kws()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.set_side"><code class="docutils literal notranslate"><span class="pre">anno_label.set_side()</span></code></a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_lineplot"><code class="docutils literal notranslate"><span class="pre">anno_lineplot</span></code></a><ul>
Expand Down Expand Up @@ -278,12 +285,6 @@
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.dotHeatmap.html#PyComplexHeatmap.dotHeatmap.scale"><code class="docutils literal notranslate"><span class="pre">scale()</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="PyComplexHeatmap.example.html">PyComplexHeatmap.example module</a><ul>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.clustermap_example0"><code class="docutils literal notranslate"><span class="pre">clustermap_example0()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.clustermap_example1"><code class="docutils literal notranslate"><span class="pre">clustermap_example1()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.get_kycg_example_data"><code class="docutils literal notranslate"><span class="pre">get_kycg_example_data()</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html">PyComplexHeatmap.oncoPrint module</a><ul>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html#PyComplexHeatmap.oncoPrint.oncoPrintPlotter"><code class="docutils literal notranslate"><span class="pre">oncoPrintPlotter</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html#PyComplexHeatmap.oncoPrint.oncoPrintPlotter.add_default_annotations"><code class="docutils literal notranslate"><span class="pre">oncoPrintPlotter.add_default_annotations()</span></code></a></li>
Expand Down
17 changes: 9 additions & 8 deletions docs/build/html/PyComplexHeatmap.colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="gallery.html">Gallery</a></li>
<li class="toctree-l1"><a class="reference internal" href="dev.html">For Developers</a><ul>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html">1. Understand the layout:</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html">Understand the layout:</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#Test-dendrogram">Test dendrogram</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#anno_label">anno_label</a></li>
<li class="toctree-l2"><a class="reference internal" href="notebooks/dev.html#anno_img">anno_img</a><ul>
<li class="toctree-l3"><a class="reference internal" href="notebooks/dev.html#extent">extent</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">PyComplexHeatmap</a><ul class="current">
Expand All @@ -177,6 +183,7 @@
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_axes_kws"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_axes_kws()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_label"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_label()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_legend"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_legend()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.set_orientation"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.set_orientation()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.AnnotationBase.update_plot_kws"><code class="docutils literal notranslate"><span class="pre">AnnotationBase.update_plot_kws()</span></code></a></li>
</ul>
</li>
Expand All @@ -198,13 +205,13 @@
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img"><code class="docutils literal notranslate"><span class="pre">anno_img</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img.plot"><code class="docutils literal notranslate"><span class="pre">anno_img.plot()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_img.read_img"><code class="docutils literal notranslate"><span class="pre">anno_img.read_img()</span></code></a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label"><code class="docutils literal notranslate"><span class="pre">anno_label</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.get_ticklabel_width"><code class="docutils literal notranslate"><span class="pre">anno_label.get_ticklabel_width()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.plot"><code class="docutils literal notranslate"><span class="pre">anno_label.plot()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.set_plot_kws"><code class="docutils literal notranslate"><span class="pre">anno_label.set_plot_kws()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_label.set_side"><code class="docutils literal notranslate"><span class="pre">anno_label.set_side()</span></code></a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.annotations.html#PyComplexHeatmap.annotations.anno_lineplot"><code class="docutils literal notranslate"><span class="pre">anno_lineplot</span></code></a><ul>
Expand Down Expand Up @@ -278,12 +285,6 @@
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.dotHeatmap.html#PyComplexHeatmap.dotHeatmap.scale"><code class="docutils literal notranslate"><span class="pre">scale()</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="PyComplexHeatmap.example.html">PyComplexHeatmap.example module</a><ul>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.clustermap_example0"><code class="docutils literal notranslate"><span class="pre">clustermap_example0()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.clustermap_example1"><code class="docutils literal notranslate"><span class="pre">clustermap_example1()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.example.html#PyComplexHeatmap.example.get_kycg_example_data"><code class="docutils literal notranslate"><span class="pre">get_kycg_example_data()</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html">PyComplexHeatmap.oncoPrint module</a><ul>
<li class="toctree-l5"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html#PyComplexHeatmap.oncoPrint.oncoPrintPlotter"><code class="docutils literal notranslate"><span class="pre">oncoPrintPlotter</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="PyComplexHeatmap.oncoPrint.html#PyComplexHeatmap.oncoPrint.oncoPrintPlotter.add_default_annotations"><code class="docutils literal notranslate"><span class="pre">oncoPrintPlotter.add_default_annotations()</span></code></a></li>
Expand Down
Loading

0 comments on commit 8c38982

Please sign in to comment.