marsilea 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl
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.
- marsilea/__init__.py +1 -1
- marsilea/upset.py +8 -3
- {marsilea-0.5.0.dist-info → marsilea-0.5.1.dist-info}/METADATA +9 -1
- {marsilea-0.5.0.dist-info → marsilea-0.5.1.dist-info}/RECORD +6 -6
- {marsilea-0.5.0.dist-info → marsilea-0.5.1.dist-info}/WHEEL +0 -0
- {marsilea-0.5.0.dist-info → marsilea-0.5.1.dist-info}/licenses/LICENSE +0 -0
marsilea/__init__.py
CHANGED
marsilea/upset.py
CHANGED
|
@@ -239,8 +239,8 @@ class UpsetData:
|
|
|
239
239
|
marks = marks & (sets_table["cardinality"] <= max_cardinality)
|
|
240
240
|
if min_degree is not None:
|
|
241
241
|
marks = marks & (sets_table["degree"] >= min_degree)
|
|
242
|
-
if
|
|
243
|
-
marks = marks & (sets_table["degree"]
|
|
242
|
+
if max_degree is not None:
|
|
243
|
+
marks = marks & (sets_table["degree"] <= max_degree)
|
|
244
244
|
return marks
|
|
245
245
|
|
|
246
246
|
def reset(self):
|
|
@@ -561,6 +561,7 @@ class Upset(WhiteBoard):
|
|
|
561
561
|
self._legend_entries = []
|
|
562
562
|
self._add_intersections = add_intersections
|
|
563
563
|
self._intersection_bar = None
|
|
564
|
+
self._intersection_bar_side = None
|
|
564
565
|
self._sets_size_bar = None
|
|
565
566
|
|
|
566
567
|
if orient not in ["h", "v"]:
|
|
@@ -732,6 +733,7 @@ class Upset(WhiteBoard):
|
|
|
732
733
|
)
|
|
733
734
|
data = self.data.cardinality()
|
|
734
735
|
self._intersection_bar = Numbers(data, color=self.color)
|
|
736
|
+
self._intersection_bar_side = side
|
|
735
737
|
self.add_plot(side, self._intersection_bar, size=size, pad=pad)
|
|
736
738
|
|
|
737
739
|
def add_sets_size(self, side, pad=0.1, size=1.0, **props):
|
|
@@ -956,7 +958,10 @@ class Upset(WhiteBoard):
|
|
|
956
958
|
self._render_matrix(main_ax)
|
|
957
959
|
# apply highlight style to bar
|
|
958
960
|
if self._add_intersections:
|
|
959
|
-
|
|
961
|
+
bars = self._intersection_bar.bars
|
|
962
|
+
if self._intersection_bar_side in {"left", "right"}:
|
|
963
|
+
bars = bars[::-1]
|
|
964
|
+
for ix, rect in enumerate(bars):
|
|
960
965
|
bar_style = self._subset_styles.get(ix)
|
|
961
966
|
if bar_style is not None:
|
|
962
967
|
rect.set(**bar_style)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: marsilea
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Declarative creation of composable visualizations
|
|
5
5
|
Project-URL: Home, https://github.com/Marsilea-viz/marsilea
|
|
6
6
|
Project-URL: Documentation, https://marsilea.readthedocs.io
|
|
@@ -56,6 +56,8 @@ Description-Content-Type: text/markdown
|
|
|
56
56
|

|
|
57
57
|
[](https://doi.org/10.1186/s13059-024-03469-3)
|
|
58
58
|
|
|
59
|
+
[](https://app.gitter.im/#/room/#Marsilea:gitter.im)
|
|
60
|
+
|
|
59
61
|
# Marsilea: Declarative creation of composable visualization!
|
|
60
62
|
|
|
61
63
|
---
|
|
@@ -103,6 +105,12 @@ If you use Marsilea in your research, please cite the following:
|
|
|
103
105
|
>
|
|
104
106
|
> _Genome Biology_ 2025 Jan 06. DOI: [10.1186/s13059-017-1382-0](https://doi.org/10.1186/s13059-024-03469-3)
|
|
105
107
|
|
|
108
|
+
## Get helps
|
|
109
|
+
|
|
110
|
+
1. Open an issue
|
|
111
|
+
2. Join us on [Gitter](https://app.gitter.im/#/room/#Marsilea:gitter.im)
|
|
112
|
+
|
|
113
|
+
|
|
106
114
|
## Examples
|
|
107
115
|
|
|
108
116
|
<table>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
marsilea/__init__.py,sha256=
|
|
1
|
+
marsilea/__init__.py,sha256=zWZIyRGe38f-PVCiQC-M5xamgQ746sdpm26UCfhjeHI,595
|
|
2
2
|
marsilea/_api.py,sha256=tymWZHfjhx8-0NNd9762znfdIu36NrARRweEIr5L1mA,283
|
|
3
3
|
marsilea/_deform.py,sha256=QRz4OGXMsQzbiIkC3ASzZayMPhHhoFsEK38oBzSeQG8,14440
|
|
4
4
|
marsilea/base.py,sha256=CmzuwFu0JzgkNpPdI1SqAnkUxINShjT73hrJpksKjhE,46872
|
|
@@ -8,7 +8,7 @@ marsilea/exceptions.py,sha256=wN5ElUZxuaJKSnnwWdkNx6P-Oc16dzSuaRPbRKWIBEM,1046
|
|
|
8
8
|
marsilea/heatmap.py,sha256=8Wo1NxFTBp1a7NOISmer0yQYWWgf51Xsvjav1h1vTYk,4316
|
|
9
9
|
marsilea/layers.py,sha256=puXLlGGpEqAzaTqadpgpsYmIDPH33WyyHIuysRSqFZQ,12163
|
|
10
10
|
marsilea/layout.py,sha256=yNuGvIDfWjbCksQZO-4aUWSA78LJwBBKF5Z5cthC6fM,39741
|
|
11
|
-
marsilea/upset.py,sha256=
|
|
11
|
+
marsilea/upset.py,sha256=9m4Los-yVvVZOEHg6X-yfOdLA9eUBQdK1A_BkOaLIMA,30602
|
|
12
12
|
marsilea/utils.py,sha256=y_KYs4ToiuKEsiBdmcIVtmxMXFpD4wKiJ0k7iBa11z8,2854
|
|
13
13
|
marsilea/plotter/__init__.py,sha256=la30o20zYiHWN2RzElhS8MMCbGKbDDEe0WHXakq9OBQ,806
|
|
14
14
|
marsilea/plotter/_seaborn.py,sha256=Ahy5id35KV-PZ50rI5lmEpA4Oov51u8w6VVQzVZH6hM,8330
|
|
@@ -25,7 +25,7 @@ marsilea/plotter/text.py,sha256=6S4mnAxLJLMkduKiyor03lPd86oTOJ5TojVREA9oU6s,3746
|
|
|
25
25
|
oncoprinter/__init__.py,sha256=efshcAD1h9s-NVJj4HLU9-hXc_LtTeIrNYqLHl-sm_g,106
|
|
26
26
|
oncoprinter/core.py,sha256=5KPnKW5ivlxPp14uJd0OtfTv-pXV2UEym8EbII2VCcw,11846
|
|
27
27
|
oncoprinter/preset.py,sha256=mBk2tFCqoTj_1ZZKRYuv4j2I3NTBa6Swc9wjzbmxRVw,8238
|
|
28
|
-
marsilea-0.5.
|
|
29
|
-
marsilea-0.5.
|
|
30
|
-
marsilea-0.5.
|
|
31
|
-
marsilea-0.5.
|
|
28
|
+
marsilea-0.5.1.dist-info/METADATA,sha256=YYVp0MshI1XZJY8G_sE5aufSfZ-peCib-z_HuFrkK-Y,7265
|
|
29
|
+
marsilea-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
30
|
+
marsilea-0.5.1.dist-info/licenses/LICENSE,sha256=RhHHDuP61qzKmfHtOQUVLZfCgMkKx9PXzxzkLtmAjHo,1078
|
|
31
|
+
marsilea-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|