kitikiplot 0.2.6__py3-none-any.whl → 0.2.7__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.
- kitikiplot/core/kitiki_cell.py +6 -7
- {kitikiplot-0.2.6.dist-info → kitikiplot-0.2.7.dist-info}/METADATA +2 -2
- {kitikiplot-0.2.6.dist-info → kitikiplot-0.2.7.dist-info}/RECORD +5 -5
- {kitikiplot-0.2.6.dist-info → kitikiplot-0.2.7.dist-info}/LICENSE +0 -0
- {kitikiplot-0.2.6.dist-info → kitikiplot-0.2.7.dist-info}/WHEEL +0 -0
kitikiplot/core/kitiki_cell.py
CHANGED
@@ -3,7 +3,7 @@ File Name: kitiki_cell.py
|
|
3
3
|
Description: This file defines the 'KitikiCell' class for each rectangular cell in KitikiPlot
|
4
4
|
Author: Boddu Sri Pavan
|
5
5
|
Date Created: 21-10-2024
|
6
|
-
Last Modified:
|
6
|
+
Last Modified: 31-05-2025
|
7
7
|
"""
|
8
8
|
|
9
9
|
# Import necessary libraries
|
@@ -144,12 +144,11 @@ class KitikiCell(ColorConfig):
|
|
144
144
|
# Calculate alignment factor based on whether alignment is enabled
|
145
145
|
align_factor= (self.rows-x)*self.stride*cell_height if align else 0
|
146
146
|
|
147
|
+
# Calculate dimensions for the rectangle based on grid position and size parameters
|
147
148
|
dim_x= window_gap*(x+1)+ cell_width*(x+1)
|
148
149
|
dim_y= cell_height*(self.cols-y-1)+align_factor
|
149
150
|
|
150
|
-
if focus == None:
|
151
|
-
|
152
|
-
# Calculate dimensions for the rectangle based on grid position and size parameters
|
151
|
+
if focus == None:
|
153
152
|
rect_dim= ( dim_x, dim_y )
|
154
153
|
|
155
154
|
else:
|
@@ -162,7 +161,7 @@ class KitikiCell(ColorConfig):
|
|
162
161
|
|
163
162
|
max_y= cell_height*(self.cols-1)+ ((self.rows)*self.stride*cell_height)
|
164
163
|
|
165
|
-
if (focus_dim_y
|
164
|
+
if (focus_dim_y > max_y - (cell_height*self.window_length + cell_height*x*self.stride)) and (focus_dim_y <= max_y - (cell_height*x*self.stride)):
|
166
165
|
kitiki_cell_kwargs["alpha"]= 1
|
167
166
|
else:
|
168
167
|
kitiki_cell_kwargs["alpha"]= focus_alpha
|
@@ -176,11 +175,11 @@ class KitikiCell(ColorConfig):
|
|
176
175
|
# Calculate alignment factor for transposed configuration based on whether alignment is enabled
|
177
176
|
align_factor= x*self.stride*cell_height if align else 0
|
178
177
|
|
178
|
+
# Calculate dimensions for the rectangle based on grid position and size parameters for transposed layout
|
179
179
|
dim_x= cell_height*(y+1)+ align_factor
|
180
180
|
dim_y= window_gap*(self.rows- x+1)+ cell_width*(self.rows- x+1)
|
181
|
-
|
181
|
+
|
182
182
|
rect_dim= (dim_x, dim_y)
|
183
|
-
|
184
183
|
|
185
184
|
|
186
185
|
# Clean up all local variables for efficient memory management
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: kitikiplot
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.7
|
4
4
|
Summary: A Python library to visualize categorical sliding window data.
|
5
5
|
License: MIT
|
6
6
|
Keywords: sliding window,sequential,time-series,genome,categorical data
|
@@ -39,7 +39,7 @@ Description-Content-Type: text/markdown
|
|
39
39
|
KitikiPlot is a Python library for visualizing sequential and time-series categorical "Sliding Window" data. <br>
|
40
40
|
(The term 'kitiki' means 'window' in Telugu)
|
41
41
|
|
42
|
-
Genome Grid Plot Generator: <a href= "https://huggingface.co/spaces/BodduSriPavan111/genomics"
|
42
|
+
Genome Grid Plot Generator: 🤗 <a href= "https://huggingface.co/spaces/BodduSriPavan111/genomics">HuggingFace Demo</a>
|
43
43
|
|
44
44
|
<!--
|
45
45
|
## Table of Contents</h2>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
kitikiplot/core/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
|
2
|
-
kitikiplot/core/kitiki_cell.py,sha256=
|
2
|
+
kitikiplot/core/kitiki_cell.py,sha256=mzmjUMdLdCzNg-8NYZ9M8sDuITOMdwyZkT4xKD-pQlc,7925
|
3
3
|
kitikiplot/core/kitiki_color_config.py,sha256=yOWnJNoYo1BN7UMGTFgc8zpMljBbNpFDLLq7JZF3ATE,11857
|
4
4
|
kitikiplot/core/kitikiplot.py,sha256=dkF49TeO9jCQnXEXpjL-la-AvnqvlChVsar3tkZ6yNQ,20822
|
5
5
|
kitikiplot/ecology/linear.py,sha256=l1YVn7vcsKU-1g3SZ9kpOhHQiCRqP8U3LrWecy7_KFo,985
|
6
6
|
kitikiplot/genomics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
kitikiplot/genomics/grid.py,sha256=ohg5fBVezzxIOr2TlNPhND4PpBvzVG0eiSklTTbQp5s,1831
|
8
8
|
kitikiplot/genomics/linear.py,sha256=BNO-9xPVq6dsP8KuXx1fJRG_mLUf2orCM3h7etYqhBw,1280
|
9
|
-
kitikiplot-0.2.
|
10
|
-
kitikiplot-0.2.
|
11
|
-
kitikiplot-0.2.
|
12
|
-
kitikiplot-0.2.
|
9
|
+
kitikiplot-0.2.7.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
|
10
|
+
kitikiplot-0.2.7.dist-info/METADATA,sha256=FuExeMvz44Olbk6Oe_-i1GRy3_L94qfNQ3EWGQ02MXs,5445
|
11
|
+
kitikiplot-0.2.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
12
|
+
kitikiplot-0.2.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|