kitikiplot 0.1.8__py3-none-any.whl → 0.1.9__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.
@@ -62,7 +62,7 @@ class ColorConfig:
62
62
 
63
63
  Parameters
64
64
  ----------
65
- data : pd.DataFrame or list
65
+ data : pd.DataFrame or list or str
66
66
  - The input data to be processed.
67
67
  stride : int (optional)
68
68
  - The number of elements to move the window after each iteration when converting a list to a DataFrame.
@@ -78,23 +78,29 @@ class ColorConfig:
78
78
  - Default is 1.
79
79
  """
80
80
 
81
- # Check if 'data' is of type 'pd.DataFrame' and initialize 'data' attribute.
81
+ # Check if 'data' is of type 'pd.DataFrame' and initialize 'data' attribute
82
82
  if isinstance( data, pd.DataFrame):
83
83
  self.data= data
84
84
 
85
- # Check if 'data' is of type 'list'.
85
+ # Check if 'data' is of type 'list'
86
86
  elif isinstance( data, list):
87
87
 
88
- # Convert 'list' to 'pd.DataFrame' using stride and window_length, and initialize 'data' attribute.
88
+ # Convert 'list' to 'pd.DataFrame' using stride and window_length, and initialize 'data' attribute
89
89
  self.data= self._convert_list_to_dataframe( data, stride, window_length)
90
90
 
91
+ # Check if 'data' is of type 'str'
92
+ elif isinstance( data, str):
93
+
94
+ # Convert 'list' to 'pd.DataFrame' using stride and window_length, and initialize 'data' attribute
95
+ self.data= self._convert_list_to_dataframe( list(data), stride, window_length)
96
+
91
97
  # Store the stride value
92
98
  self.stride= stride
93
99
 
94
- # Set 'rows' to number of rows in the DataFrame.
100
+ # Set 'rows' to number of rows in the DataFrame
95
101
  self.rows= self.data.shape[0]
96
102
 
97
- # Set 'cols' to number of columns in the DataFrame.
103
+ # Set 'cols' to number of columns in the DataFrame
98
104
  self.cols= self.data.shape[1]
99
105
 
100
106
  @staticmethod
@@ -1,23 +1,20 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kitikiplot
3
- Version: 0.1.8
3
+ Version: 0.1.9
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
7
7
  Author: Boddu Sri Pavan
8
8
  Author-email: boddusripavan111@gmail.com
9
- Requires-Python: >=3.7,<4.0
9
+ Requires-Python: >=3.11
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.7
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
13
  Classifier: Programming Language :: Python :: 3.11
18
14
  Classifier: Programming Language :: Python :: 3.12
19
15
  Classifier: Programming Language :: Python :: 3.13
20
16
  Classifier: Topic :: Scientific/Engineering :: Visualization
17
+ Requires-Dist: bio (>=1.7.1,<2.0.0)
21
18
  Project-URL: Bug Tracker, https://github.com/BodduSriPavan-111/kitikiplot/issues
22
19
  Project-URL: Documentation, https://github.com/BodduSriPavan-111/kitikiplot/wiki
23
20
  Project-URL: Repository, https://github.com/BodduSriPavan-111/kitikiplot
@@ -83,13 +80,11 @@ ktk.plot( display_legend= True ) # Display the legend
83
80
  Check out the complete <b>guide of customization</b> [here](https://github.com/BodduSriPavan-111/kitikiplot/blob/main/examples/Usage_Guide.ipynb).
84
81
 
85
82
  ## To-do
86
- - [ ] Streamlit Demo Interface (In Progress: app.py)
83
+ 🟢 Streamlit Demo Interface (In Progress) </br>
84
+ 🟢 Website for documentation (In Progress)
87
85
  - [ ] Tooltip
88
86
  - [ ] Interactive Plot
89
- - [ ] Multithreading to decrease plotting latency
90
- - [ ] CI/CD Pipeline
91
87
  - [ ] Domain-specific modules
92
- - [ ] Website for documentation
93
88
 
94
89
  Please refer <a href="https://github.com/BodduSriPavan-111/kitikiplot/blob/main/CONTRIBUTING.md">CONTRIBUTING.md</a> for <b>contributions</b> to kitikiplot.
95
90
 
@@ -0,0 +1,8 @@
1
+ kitikiplot/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
2
+ kitikiplot/kitiki_cell.py,sha256=9kn33x8-4Zp_fVdmp5NK-V7fm3hDXZOxwCNO3uDZqIo,7016
3
+ kitikiplot/kitiki_color_config.py,sha256=34KEE1CQJeMnB6gA-FgTHiIEP7rF1_17xv2XOakh1ds,11969
4
+ kitikiplot/kitikiplot.py,sha256=uH5eQnWxswQsDC1b77cu5U_2m3ODfKRGqCxcredRagQ,19746
5
+ kitikiplot-0.1.9.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
6
+ kitikiplot-0.1.9.dist-info/METADATA,sha256=oZNCaLqDhTQFqKvq9qqUxW2uESEcjRiVrBmuCnIa1ps,5183
7
+ kitikiplot-0.1.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
8
+ kitikiplot-0.1.9.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- kitikiplot/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
2
- kitikiplot/kitiki_cell.py,sha256=9kn33x8-4Zp_fVdmp5NK-V7fm3hDXZOxwCNO3uDZqIo,7016
3
- kitikiplot/kitiki_color_config.py,sha256=No_ayqgQUYXRE7g62obFKVn6avn4jdGn3WuSqZ6F3tA,11677
4
- kitikiplot/kitikiplot.py,sha256=uH5eQnWxswQsDC1b77cu5U_2m3ODfKRGqCxcredRagQ,19746
5
- kitikiplot-0.1.8.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
6
- kitikiplot-0.1.8.dist-info/METADATA,sha256=GgK4XT4i96KTZkzYVKLCx2epDY96L27Oz4WEz3GCQXg,5413
7
- kitikiplot-0.1.8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
8
- kitikiplot-0.1.8.dist-info/RECORD,,