marsilea 0.3.3__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. marsilea-0.3.4/CODE_OF_CONDUCT.md +128 -0
  2. {marsilea-0.3.3 → marsilea-0.3.4}/PKG-INFO +3 -1
  3. marsilea-0.3.4/docs/examples/Basics/plot_two_heatmap.py +24 -0
  4. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_arc_diagram.py +0 -1
  5. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_available_plotters.py +2 -2
  6. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_mouse_embryo.py +2 -0
  7. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_seqalign.py +0 -1
  8. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_upset.py +1 -1
  9. marsilea-0.3.4/docs/examples/Plotters/plot_area.py +18 -0
  10. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/api/index.rst +21 -6
  11. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/conf.py +1 -1
  12. {marsilea-0.3.3 → marsilea-0.3.4}/pyproject.toml +5 -1
  13. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/__init__.py +4 -2
  14. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/base.py +47 -0
  15. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/layers.py +1 -0
  16. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/area.py +16 -1
  17. {marsilea-0.3.3 → marsilea-0.3.4}/.github/workflows/build.yaml +0 -0
  18. {marsilea-0.3.3 → marsilea-0.3.4}/.github/workflows/deploy_streamlit.yaml +0 -0
  19. {marsilea-0.3.3 → marsilea-0.3.4}/.github/workflows/lint.yaml +0 -0
  20. {marsilea-0.3.3 → marsilea-0.3.4}/.gitignore +0 -0
  21. {marsilea-0.3.3 → marsilea-0.3.4}/.streamlit/config.toml +0 -0
  22. {marsilea-0.3.3 → marsilea-0.3.4}/CITATION.cff +0 -0
  23. {marsilea-0.3.3 → marsilea-0.3.4}/LICENSE +0 -0
  24. {marsilea-0.3.3 → marsilea-0.3.4}/README.md +0 -0
  25. {marsilea-0.3.3 → marsilea-0.3.4}/app/.gitignore +0 -0
  26. {marsilea-0.3.3 → marsilea-0.3.4}/app/Dockerfile +0 -0
  27. {marsilea-0.3.3 → marsilea-0.3.4}/app/Home.py +0 -0
  28. {marsilea-0.3.3 → marsilea-0.3.4}/app/README.md +0 -0
  29. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/__init__.py +0 -0
  30. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/cmap_selector/__init__.py +0 -0
  31. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/cmap_selector/selector.py +0 -0
  32. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/data_input.py +0 -0
  33. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/example_download.py +0 -0
  34. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/initialize.py +0 -0
  35. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/main_plots.py +0 -0
  36. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/resource.py +0 -0
  37. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/saver.py +0 -0
  38. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/side_plots.py +0 -0
  39. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/state.py +0 -0
  40. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/transformation.py +0 -0
  41. {marsilea-0.3.3 → marsilea-0.3.4}/app/components/upset_example.csv +0 -0
  42. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/V1.mp4 +0 -0
  43. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/V2.mp4 +0 -0
  44. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/annolabels.png +0 -0
  45. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/bar.png +0 -0
  46. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/box.png +0 -0
  47. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/boxen.png +0 -0
  48. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/colors.png +0 -0
  49. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/dendrogram.svg +0 -0
  50. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/favicon.png +0 -0
  51. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/favicon.svg +0 -0
  52. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/heatmap.png +0 -0
  53. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/heatmap.svg +0 -0
  54. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/logo.png +0 -0
  55. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/mark_map.png +0 -0
  56. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/mark_map.svg +0 -0
  57. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/point.png +0 -0
  58. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/sized_heatmap.png +0 -0
  59. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/sized_heatmap.svg +0 -0
  60. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/sized_onlymap.png +0 -0
  61. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/strip.png +0 -0
  62. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/swarm.png +0 -0
  63. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/violin.png +0 -0
  64. {marsilea-0.3.3 → marsilea-0.3.4}/app/img/x-layout.png +0 -0
  65. {marsilea-0.3.3 → marsilea-0.3.4}/app/pages/01 Simple_Heatmap.py +0 -0
  66. {marsilea-0.3.3 → marsilea-0.3.4}/app/pages/02 X-Layout_Heatmap.py +0 -0
  67. {marsilea-0.3.3 → marsilea-0.3.4}/app/pages/03 Upsetplot.py +0 -0
  68. {marsilea-0.3.3 → marsilea-0.3.4}/app/pages/04 Manual.py +0 -0
  69. {marsilea-0.3.3 → marsilea-0.3.4}/app/requirements.txt +0 -0
  70. {marsilea-0.3.3 → marsilea-0.3.4}/app/script/heatmap_data.py +0 -0
  71. {marsilea-0.3.3 → marsilea-0.3.4}/app/script/plot_layer_example_images.py +0 -0
  72. {marsilea-0.3.3 → marsilea-0.3.4}/app/script/plotter_example_images.py +0 -0
  73. {marsilea-0.3.3 → marsilea-0.3.4}/app/set_data_memberships.txt +0 -0
  74. {marsilea-0.3.3 → marsilea-0.3.4}/app/test.xlsx +0 -0
  75. {marsilea-0.3.3 → marsilea-0.3.4}/app/test_data/Stats_plot.txt +0 -0
  76. {marsilea-0.3.3 → marsilea-0.3.4}/app/test_data/example_data.txt +0 -0
  77. {marsilea-0.3.3 → marsilea-0.3.4}/app/test_data/number.txt +0 -0
  78. {marsilea-0.3.3 → marsilea-0.3.4}/app/test_data/row_labels.txt +0 -0
  79. {marsilea-0.3.3 → marsilea-0.3.4}/app/test_data/set_data_memberships.txt +0 -0
  80. {marsilea-0.3.3 → marsilea-0.3.4}/app/upset.xlsx +0 -0
  81. {marsilea-0.3.3 → marsilea-0.3.4}/data/IMDB.csv +0 -0
  82. {marsilea-0.3.3 → marsilea-0.3.4}/data/PATIENT_DATA_oncoprint.tsv +0 -0
  83. {marsilea-0.3.3 → marsilea-0.3.4}/data/pbmc3k.h5ad +0 -0
  84. {marsilea-0.3.3 → marsilea-0.3.4}/docs/Makefile +0 -0
  85. {marsilea-0.3.3 → marsilea-0.3.4}/docs/README.md +0 -0
  86. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/.gitignore +0 -0
  87. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Basics/README.rst +0 -0
  88. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Basics/plot_adv_heatmap.py +0 -0
  89. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Basics/plot_heatmap.py +0 -0
  90. {marsilea-0.3.3/docs/examples/Gallery → marsilea-0.3.4/docs/examples/Basics}/plot_stacked_bar.py +0 -0
  91. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/README.rst +0 -0
  92. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_bivariate_dist.py +0 -0
  93. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_oil_well.py +0 -0
  94. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_oncoprint.py +0 -0
  95. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_pbmc3k.py +0 -0
  96. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Gallery/plot_sc_multiomics.py +0 -0
  97. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/README.rst +0 -0
  98. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_anno_labels.py +0 -0
  99. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_arc.py +0 -0
  100. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_bar.py +0 -0
  101. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_box.py +0 -0
  102. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_boxen.py +0 -0
  103. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_center_bar.py +0 -0
  104. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_chunk.py +0 -0
  105. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_color_mesh.py +0 -0
  106. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_colors.py +0 -0
  107. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_fixed_chunk.py +0 -0
  108. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_labels.py +0 -0
  109. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_marker_mesh.py +0 -0
  110. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_numbers.py +0 -0
  111. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_point.py +0 -0
  112. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_seq_logo.py +0 -0
  113. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_sized_mesh.py +0 -0
  114. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_stack_bar.py +0 -0
  115. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_strip.py +0 -0
  116. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_swarm.py +0 -0
  117. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_text_mesh.py +0 -0
  118. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_title.py +0 -0
  119. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/Plotters/plot_violin.py +0 -0
  120. {marsilea-0.3.3 → marsilea-0.3.4}/docs/examples/README.rst +0 -0
  121. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/README.rst +0 -0
  122. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/customization/README.rst +0 -0
  123. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/customization/plot_add_border.py +0 -0
  124. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/customization/plot_get_axes.py +0 -0
  125. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/dendrogram/README.rst +0 -0
  126. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/dendrogram/plot_color_dendrogram.py +0 -0
  127. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/dendrogram/plot_dendrogram_control.py +0 -0
  128. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/layout/README.rst +0 -0
  129. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/layout/plot_adjust_figure_size.py +0 -0
  130. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/layout/plot_labeling.py +0 -0
  131. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/layout/plot_margin.py +0 -0
  132. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/legends/README.rst +0 -0
  133. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/legends/plot_disable_legend.py +0 -0
  134. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/legends/plot_legends.py +0 -0
  135. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/save/README.rst +0 -0
  136. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/save/plot.pdf +0 -0
  137. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/save/plot.png +0 -0
  138. {marsilea-0.3.3 → marsilea-0.3.4}/docs/how_to/save/plot_save.py +0 -0
  139. {marsilea-0.3.3 → marsilea-0.3.4}/docs/make.bat +0 -0
  140. {marsilea-0.3.3 → marsilea-0.3.4}/docs/requirements.txt +0 -0
  141. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/.gitignore +0 -0
  142. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/_static/css/custom.css +0 -0
  143. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/_templates/autosummary.rst +0 -0
  144. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/img/code_example.png +0 -0
  145. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/img/cover.png +0 -0
  146. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/img/marsilea-renderplan-logic.drawio.svg +0 -0
  147. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/index.rst +0 -0
  148. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/installation.rst +0 -0
  149. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/sg_execution_times.rst +0 -0
  150. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/axes-level.rst +0 -0
  151. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/concatenation.rst +0 -0
  152. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/heatmap.rst +0 -0
  153. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/index.rst +0 -0
  154. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/intro.rst +0 -0
  155. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/intro2.rst +0 -0
  156. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/new_renderplan.rst +0 -0
  157. {marsilea-0.3.3 → marsilea-0.3.4}/docs/source/tutorial/upset.rst +0 -0
  158. {marsilea-0.3.3 → marsilea-0.3.4}/img/Logo(1).zip +0 -0
  159. {marsilea-0.3.3 → marsilea-0.3.4}/img/Logo.zip +0 -0
  160. {marsilea-0.3.3 → marsilea-0.3.4}/img/banner-blue.jpg +0 -0
  161. {marsilea-0.3.3 → marsilea-0.3.4}/img/banner-dark-gradient.jpg +0 -0
  162. {marsilea-0.3.3 → marsilea-0.3.4}/img/banner-dark.jpg +0 -0
  163. {marsilea-0.3.3 → marsilea-0.3.4}/img/banner-rice-white.jpg +0 -0
  164. {marsilea-0.3.3 → marsilea-0.3.4}/img/banner-white.jpg +0 -0
  165. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo/.DS_Store +0 -0
  166. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo/Logo.svg +0 -0
  167. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo/logo.png +0 -0
  168. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo//346/265/205/350/223/235/346/270/220/345/217/230.jpg" +0 -0
  169. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo//346/267/261/350/211/262/350/203/214/346/231/257.jpg" +0 -0
  170. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo//347/261/263/350/211/262.jpg" +0 -0
  171. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo//347/272/257/347/231/275.jpg" +0 -0
  172. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/Logo//350/247/222/345/272/246/346/270/220/345/217/230.jpg" +0 -0
  173. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo/__MACOSX/Logo/._.DS_Store +0 -0
  174. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo.png +0 -0
  175. {marsilea-0.3.3 → marsilea-0.3.4}/img/logo.svg +0 -0
  176. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/API-interface.png +0 -0
  177. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/Snap-1.png +0 -0
  178. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/Snap-2.png +0 -0
  179. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/Snap-3.png +0 -0
  180. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/Stacked bar.png +0 -0
  181. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/bivar_kde.png +0 -0
  182. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-canvas-size-code.png +0 -0
  183. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-canvas-size.png +0 -0
  184. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-location-code.png +0 -0
  185. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-location.png +0 -0
  186. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-pad-code.png +0 -0
  187. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-pad.png +0 -0
  188. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-plotter-size-code.png +0 -0
  189. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-plotter-size.png +0 -0
  190. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-plotter-type-code.png +0 -0
  191. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-change-plotter-type.png +0 -0
  192. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic-code.png +0 -0
  193. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-basic.png +0 -0
  194. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-skeleton-step1.png +0 -0
  195. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-skeleton-step2.png +0 -0
  196. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-skeleton-step3.png +0 -0
  197. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-skeleton-step4.png +0 -0
  198. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-1a-code.png +0 -0
  199. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-1a.png +0 -0
  200. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-1b-code.png +0 -0
  201. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-1b.png +0 -0
  202. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-2-code.png +0 -0
  203. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-2.png +0 -0
  204. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-3-code.png +0 -0
  205. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-3.png +0 -0
  206. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-4-code.png +0 -0
  207. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/layout-step-4.png +0 -0
  208. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/oncoprint.png +0 -0
  209. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/upset.png +0 -0
  210. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/web-app-screenshot-1.png +0 -0
  211. {marsilea-0.3.3 → marsilea-0.3.4}/img/publication/web-app-screenshot-2.png +0 -0
  212. {marsilea-0.3.3 → marsilea-0.3.4}/readthedocs.yaml +0 -0
  213. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/marsilea/marsilea_cooking_oils_base.py +0 -0
  214. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/marsilea/marsilea_cooking_oils_v1.py +0 -0
  215. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/marsilea/marsilea_cooking_oils_v2.py +0 -0
  216. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/marsilea_vs_matplotlib.png +0 -0
  217. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/marsilea_vs_matplotlib.svg +0 -0
  218. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_base.py +0 -0
  219. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_v1.py +0 -0
  220. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_v2.py +0 -0
  221. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/benchmark/result.py +0 -0
  222. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/logo.py +0 -0
  223. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figure.py +0 -0
  224. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/bivariate_kde.py +0 -0
  225. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/layout-skeleton-step.py +0 -0
  226. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/layout-step.py +0 -0
  227. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/onco.py +0 -0
  228. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/stacked_bar.py +0 -0
  229. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/pub_figures/upset.py +0 -0
  230. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/publication/arc_diagram.svg +0 -0
  231. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/publication/bivariate_dist.svg +0 -0
  232. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/publication/mouse_embryo.svg +0 -0
  233. {marsilea-0.3.3 → marsilea-0.3.4}/scripts/x-layout.py +0 -0
  234. {marsilea-0.3.3 → marsilea-0.3.4}/setup.py +0 -0
  235. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/_api.py +0 -0
  236. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/_deform.py +0 -0
  237. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/dataset.py +0 -0
  238. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/dendrogram.py +0 -0
  239. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/exceptions.py +0 -0
  240. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/heatmap.py +0 -0
  241. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/layout.py +0 -0
  242. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/__init__.py +0 -0
  243. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/_images.py +0 -0
  244. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/_seaborn.py +0 -0
  245. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/_utils.py +0 -0
  246. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/arc.py +0 -0
  247. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/bar.py +0 -0
  248. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/base.py +0 -0
  249. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/bio.py +0 -0
  250. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/mesh.py +0 -0
  251. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/plotter/text.py +0 -0
  252. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/upset.py +0 -0
  253. {marsilea-0.3.3 → marsilea-0.3.4}/src/marsilea/utils.py +0 -0
  254. {marsilea-0.3.3 → marsilea-0.3.4}/src/oncoprinter/__init__.py +0 -0
  255. {marsilea-0.3.3 → marsilea-0.3.4}/src/oncoprinter/core.py +0 -0
  256. {marsilea-0.3.3 → marsilea-0.3.4}/src/oncoprinter/preset.py +0 -0
  257. {marsilea-0.3.3 → marsilea-0.3.4}/tests/test_data_input.py +0 -0
  258. {marsilea-0.3.3 → marsilea-0.3.4}/tests/test_deform.py +0 -0
  259. {marsilea-0.3.3 → marsilea-0.3.4}/tests/test_mesh.py +0 -0
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ yzheng@cemm.at.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -1,12 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marsilea
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Create x-layout visualization
5
5
  Author: Zhihang Zheng
6
6
  Author-email: Mr-Milk <yzheng@cemm.at>
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
9
  Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Framework :: Matplotlib
10
12
  Requires-Dist: numpy
11
13
  Requires-Dist: pandas
12
14
  Requires-Dist: matplotlib>=3.6
@@ -0,0 +1,24 @@
1
+ """
2
+ Two Heatmaps
3
+ ============
4
+
5
+ This example shows how to plot two heatmaps side by side.
6
+
7
+ """
8
+
9
+ # %%
10
+ import numpy as np
11
+ import marsilea as ma
12
+
13
+ data1 = np.random.randint(0, 10, (20, 10))
14
+ data2 = np.random.randint(0, 10, (10, 20))
15
+
16
+ # %%
17
+ h1 = ma.Heatmap(data1, linewidth=1, cmap="Reds", label="Heatmap 1")
18
+ h1.add_dendrogram("left")
19
+ h2 = ma.Heatmap(data2, linewidth=1, cmap="Blues", label="Heatmap 2")
20
+ h2.add_dendrogram("right")
21
+ (h1 + .2 + h2).render()
22
+
23
+ # %%
24
+ (h1 / .2 / h2).render()
@@ -6,7 +6,6 @@ This example shows how to create an arc diagram from a network.
6
6
 
7
7
  """
8
8
 
9
- import numpy as np
10
9
  import marsilea as ma
11
10
  import marsilea.plotter as mp
12
11
 
@@ -56,7 +56,7 @@ plotters = {
56
56
  "Layers Mesh": ma.layers.LayersMesh(data2d, pieces=pieces),
57
57
  }
58
58
 
59
- canvas = ma.Heatmap(data2d, width=5, height=0, cmap="Oranges", label="Color Mesh")
59
+ canvas = ma.ZeroHeightCluster(data2d, width=5)
60
60
  for title, plotter in plotters.items():
61
61
  canvas.add_bottom(plotter, name=title)
62
62
 
@@ -158,7 +158,7 @@ seqlogo = mp.SeqLogo(matrix, color_encode=colors)
158
158
  arc = mp.Arc([1, 2, 3, 4, 5], [(1, 5), (2, 3), (1, 2), (4, 5)],
159
159
  weights=weights, width=(2, 5), colors="#534D56")
160
160
 
161
- canvas4 = ma.Heatmap(rng.standard_normal((10, 5)), width=4, height=0)
161
+ canvas4 = ma.ZeroHeightCluster(rng.standard_normal((10, 5)), width=4)
162
162
  canvas4.add_top(seqlogo, size=2, name="Sequence Logo")
163
163
  canvas4.add_top(arc, size=1, pad=.2, name="Arc Diagram")
164
164
  canvas4.render()
@@ -109,6 +109,7 @@ for n in cell_types:
109
109
  y_ax.text(0.5, 0, n, va="top", ha="center", rotation=90, transform=y_ax.transAxes)
110
110
 
111
111
 
112
+ # sphinx_gallery_ignore_start
112
113
  #%%
113
114
  if '__file__' in globals():
114
115
  from pathlib import Path
@@ -118,3 +119,4 @@ if '__file__' in globals():
118
119
  save_path = Path(__file__).parent / "imgs"
119
120
  plt.savefig(save_path / "mouse_embryo.svg", bbox_inches="tight")
120
121
  plt.savefig(save_path / "mouse_embryo.png", dpi=300, bbox_inches="tight")
122
+ # sphinx_gallery_ignore_end
@@ -7,7 +7,6 @@ import numpy as np
7
7
  import pandas as pd
8
8
 
9
9
  import marsilea as ma
10
- import marsilea.plotter as mp
11
10
  import matplotlib as mpl
12
11
 
13
12
  # sphinx_gallery_start_ignore
@@ -8,7 +8,7 @@ IMDB Top 1000 Movies
8
8
  from matplotlib import pyplot as plt
9
9
 
10
10
  import marsilea as ma
11
- from marsilea.upset import UpsetData, Upset
11
+ from marsilea.upset import UpsetData
12
12
 
13
13
  # sphinx_gallery_start_ignore
14
14
  import mpl_fontkit as fk
@@ -0,0 +1,18 @@
1
+ """
2
+ Area
3
+ ====
4
+
5
+ :class:`~marsilea.plotter.Area` is a plotter for drawing area plot.
6
+
7
+ """
8
+
9
+ # %%
10
+ from marsilea.plotter import Area
11
+
12
+ # %%
13
+ import numpy as np
14
+ import matplotlib.pyplot as plt
15
+
16
+ _, ax = plt.subplots()
17
+ data = np.random.randint(0, 10, 10) + 1
18
+ Area(data).render(ax)
@@ -119,6 +119,18 @@ Declarative API Cheat Sheet
119
119
 
120
120
  wb.save("output.png", dpi=300)
121
121
 
122
+ * - :code:`+`
123
+ - Two canvas side by side, number will be added as white space
124
+ - .. code-block:: python
125
+
126
+ (wb1 + 1 + wb2).render()
127
+
128
+ * - :code:`/`
129
+ - Two canvas top and bottom, number will be added as white space
130
+ - .. code-block:: python
131
+
132
+ (wb1 / 1 / wb2).render()
133
+
122
134
 
123
135
  High-Level Visualizations
124
136
  =========================
@@ -216,10 +228,11 @@ Other plots
216
228
  :template: autosummary.rst
217
229
  :nosignatures:
218
230
 
231
+ Area
232
+ Arc
219
233
  Numbers
220
234
  StackBar
221
235
  CenterBar
222
- Arc
223
236
  SeqLogo
224
237
 
225
238
 
@@ -239,8 +252,8 @@ Text Label
239
252
 
240
253
 
241
254
 
242
- Base Class
243
- ==========
255
+ Main Canvas
256
+ ===========
244
257
 
245
258
 
246
259
  .. currentmodule:: marsilea.base
@@ -254,9 +267,11 @@ Base Class
254
267
  LegendMaker
255
268
  ZeroWidth
256
269
  ZeroHeight
270
+ ZeroWidthCluster
271
+ ZeroHeightCluster
257
272
 
258
273
  Layout Engine
259
- -------------
274
+ =============
260
275
 
261
276
  .. currentmodule:: marsilea.layout
262
277
  .. autosummary::
@@ -269,7 +284,7 @@ Layout Engine
269
284
 
270
285
 
271
286
  Data Manipulation
272
- -----------------
287
+ =================
273
288
 
274
289
  .. currentmodule:: marsilea
275
290
  .. autosummary::
@@ -280,7 +295,7 @@ Data Manipulation
280
295
  Deformation
281
296
 
282
297
  Render plan
283
- -----------
298
+ ===========
284
299
 
285
300
  .. currentmodule:: marsilea.plotter.base
286
301
  .. autosummary::
@@ -91,7 +91,7 @@ def matplotlib_tight_scraper(*args, **kwargs):
91
91
 
92
92
 
93
93
  intersphinx_mapping = {
94
- 'scipy': ('https://docs.scipy.org/doc', None),
94
+ 'scipy': ('http://docs.scipy.org/doc/scipy/', None),
95
95
  'seaborn': ('https://seaborn.pydata.org/', None),
96
96
  'matplotlib': ('https://matplotlib.org/stable', None),
97
97
  'legendkit': ('https://legendkit.readthedocs.io/en/stable', None),
@@ -10,7 +10,11 @@ authors = [
10
10
  ]
11
11
  license = {file = "LICENSE"}
12
12
  readme = "README.md"
13
- classifiers = ["License :: OSI Approved :: MIT License"]
13
+ classifiers = [
14
+ "License :: OSI Approved :: MIT License",
15
+ "Programming Language :: Python :: 3",
16
+ "Framework :: Matplotlib",
17
+ ]
14
18
  dynamic = ["version", "description"]
15
19
  requires-python = ">=3.8"
16
20
  urls = {Home="https://github.com/Marsilea-viz/marsilea"}
@@ -1,10 +1,12 @@
1
1
  """Create x-layout visualization"""
2
2
 
3
- __version__ = "0.3.3"
3
+ __version__ = "0.3.4"
4
4
 
5
5
  import marsilea.plotter as plotter
6
6
  from ._deform import Deformation
7
- from .base import WhiteBoard, ClusterBoard, ZeroWidth, ZeroHeight
7
+ from .base import (WhiteBoard, ClusterBoard,
8
+ ZeroWidth, ZeroHeight,
9
+ ZeroWidthCluster, ZeroHeightCluster)
8
10
  from .dataset import load_data
9
11
  from .dendrogram import Dendrogram, GroupDendrogram
10
12
  from .heatmap import Heatmap, SizedHeatmap, CatHeatmap
@@ -1403,3 +1403,50 @@ class ClusterBoard(WhiteBoard):
1403
1403
  # add row and col dendrogram
1404
1404
  self._render_dendrogram()
1405
1405
  self._render_legend()
1406
+
1407
+
1408
+ class ZeroWidthCluster(ClusterBoard):
1409
+ """
1410
+ A utility class to initialize a canvas \
1411
+ with zero width and cluster data
1412
+
1413
+ Parameters
1414
+ ----------
1415
+ cluster_data : ndarray
1416
+ The cluster data
1417
+ height : float
1418
+ The height of the main canvas in inches
1419
+ name : str
1420
+ The name of the main canvas
1421
+ margin : float, 4-tuple
1422
+ The margin of the main canvas in inches
1423
+
1424
+ """
1425
+
1426
+ def __init__(self, cluster_data, height, name=None, margin=0.2):
1427
+ super().__init__(cluster_data=cluster_data, width=0, height=height,
1428
+ name=name, margin=margin, init_main=False)
1429
+
1430
+
1431
+ class ZeroHeightCluster(ClusterBoard):
1432
+ """
1433
+ A utility class to initialize a canvas \
1434
+ with zero height and cluster data
1435
+
1436
+ Parameters
1437
+ ----------
1438
+ cluster_data : ndarray
1439
+ The cluster data
1440
+ width : float
1441
+ The width of the main canvas in inches
1442
+ name : str
1443
+ The name of the main canvas
1444
+ margin : float, 4-tuple
1445
+ The margin of the main canvas in inches
1446
+
1447
+
1448
+ """
1449
+
1450
+ def __init__(self, cluster_data, width, name=None, margin=0.2):
1451
+ super().__init__(cluster_data=cluster_data, width=width, height=0,
1452
+ name=name, margin=margin, init_main=False)
@@ -360,6 +360,7 @@ class Marker(Piece):
360
360
  self.size = size
361
361
  m = MarkerStyle(marker)
362
362
  self.path = m.get_path().transformed(m.get_transform())
363
+ self.marker = marker
363
364
 
364
365
  def draw(self, x, y, w, h, ax):
365
366
  c = self.draw_center(x, y, w, h)
@@ -26,6 +26,20 @@ class Area(StatsBase):
26
26
  Additional configurations for the area plot, \
27
27
  see :func:`matplotlib.pyplot.fill_between`
28
28
 
29
+ Examples
30
+ --------
31
+ .. plot::
32
+ :context: close-figs
33
+
34
+ import numpy as np
35
+ import matplotlib.pyplot as plt
36
+
37
+ from marsilea.plotter import Area
38
+
39
+ _, ax = plt.subplots()
40
+ data = np.random.randint(0, 10, 10) + 1
41
+ Area(data).render(ax)
42
+
29
43
  """
30
44
 
31
45
  def __init__(self, data, color=None, add_outline=True, alpha=.4,
@@ -46,6 +60,7 @@ class Area(StatsBase):
46
60
  self.kws = kwargs
47
61
 
48
62
  self.set_data(data)
63
+ self.set_label(label, label_loc, label_props)
49
64
  if group_kws is not None:
50
65
  self.set_group_params(group_kws)
51
66
 
@@ -56,7 +71,7 @@ class Area(StatsBase):
56
71
  if gp is None:
57
72
  gp = {}
58
73
 
59
- fill_options = {'colo': self.color, 'alpha': self.alpha, **self.kws, **gp}
74
+ fill_options = {'color': self.color, 'alpha': self.alpha, **self.kws, **gp}
60
75
  line_options = {'color': self.linecolor, 'linewidth': self.linewidth, **gp}
61
76
 
62
77
  x = np.arange(len(data))
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes