kitikiplot 0.2.0__py3-none-any.whl → 0.2.2__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/genomics/__init__.py +0 -0
- kitikiplot/genomics/linear.py +41 -0
- {kitikiplot-0.2.0.dist-info → kitikiplot-0.2.2.dist-info}/METADATA +2 -1
- kitikiplot-0.2.2.dist-info/RECORD +10 -0
- kitikiplot-0.2.0.dist-info/RECORD +0 -8
- /kitikiplot/{__init__.py → core/__init__.py} +0 -0
- /kitikiplot/{kitiki_cell.py → core/kitiki_cell.py} +0 -0
- /kitikiplot/{kitiki_color_config.py → core/kitiki_color_config.py} +0 -0
- /kitikiplot/{kitikiplot.py → core/kitikiplot.py} +0 -0
- {kitikiplot-0.2.0.dist-info → kitikiplot-0.2.2.dist-info}/LICENSE +0 -0
- {kitikiplot-0.2.0.dist-info → kitikiplot-0.2.2.dist-info}/WHEEL +0 -0
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"""
|
2
|
+
File Name: linear.py
|
3
|
+
Description: This file defines linear genomic plot
|
4
|
+
Author: Boddu Sri Pavan
|
5
|
+
Date Created: 21-05-2025
|
6
|
+
Last Modified: 21-05-2025
|
7
|
+
"""
|
8
|
+
|
9
|
+
from kitikiplot.core import KitikiPlot
|
10
|
+
|
11
|
+
from Bio import SeqIO
|
12
|
+
|
13
|
+
def plot( nucleotide_sequence: str )-> bool:
|
14
|
+
"""
|
15
|
+
Generates linear genomic plot for short genome sequences.
|
16
|
+
|
17
|
+
Parameters
|
18
|
+
----------
|
19
|
+
nucleotide_sequence : str
|
20
|
+
- Sequence of 'A', 'T', 'G', and 'C'.
|
21
|
+
"""
|
22
|
+
|
23
|
+
# Preprocess input genomic sequence
|
24
|
+
nucleotide_sequence=nucleotide_sequence.upper()
|
25
|
+
|
26
|
+
ktk= KitikiPlot( data= nucleotide_sequence, stride= 1, window_length= len(nucleotide_sequence) )
|
27
|
+
|
28
|
+
ktk.plot(
|
29
|
+
figsize= (20, 1),
|
30
|
+
cell_width= 2,
|
31
|
+
cmap= {'A': '#007FFF', 'T': "#fffc00", "G": "#00ff00", "C": "#960018"},
|
32
|
+
transpose= True,
|
33
|
+
xlabel= "Nucleotides",
|
34
|
+
ylabel= "Window",
|
35
|
+
display_yticks= False,
|
36
|
+
xtick_prefix= "Nucleotide",
|
37
|
+
xticks_rotation= 90,
|
38
|
+
title= "Genome Visualization",
|
39
|
+
display_legend= True,
|
40
|
+
legend_kwargs= {"bbox_to_anchor": (1.01, 1), "loc":'upper left', "borderaxespad": 0.}
|
41
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: kitikiplot
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
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
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
16
16
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
17
|
+
Requires-Dist: biopython (>=1.85)
|
17
18
|
Requires-Dist: matplotlib (>=3.10.1)
|
18
19
|
Requires-Dist: numpy (>=2.2.5)
|
19
20
|
Requires-Dist: pandas (>=2.2.3)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
kitikiplot/core/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
|
2
|
+
kitikiplot/core/kitiki_cell.py,sha256=9kn33x8-4Zp_fVdmp5NK-V7fm3hDXZOxwCNO3uDZqIo,7016
|
3
|
+
kitikiplot/core/kitiki_color_config.py,sha256=34KEE1CQJeMnB6gA-FgTHiIEP7rF1_17xv2XOakh1ds,11969
|
4
|
+
kitikiplot/core/kitikiplot.py,sha256=uH5eQnWxswQsDC1b77cu5U_2m3ODfKRGqCxcredRagQ,19746
|
5
|
+
kitikiplot/genomics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
kitikiplot/genomics/linear.py,sha256=SCEgyyB4CoFzvFFR1EjQVSbRxXM10jpiBDXv4haw5mk,1279
|
7
|
+
kitikiplot-0.2.2.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
|
8
|
+
kitikiplot-0.2.2.dist-info/METADATA,sha256=MmY0KrakS9qSRV_luDRSHzuoyuQcbBXEOWdOC81R7H0,5303
|
9
|
+
kitikiplot-0.2.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
10
|
+
kitikiplot-0.2.2.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=34KEE1CQJeMnB6gA-FgTHiIEP7rF1_17xv2XOakh1ds,11969
|
4
|
-
kitikiplot/kitikiplot.py,sha256=uH5eQnWxswQsDC1b77cu5U_2m3ODfKRGqCxcredRagQ,19746
|
5
|
-
kitikiplot-0.2.0.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
|
6
|
-
kitikiplot-0.2.0.dist-info/METADATA,sha256=K4SKM7omJRZ7DVIajHrkmtUBMMLgV0plWdqtEahkdXQ,5269
|
7
|
-
kitikiplot-0.2.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
8
|
-
kitikiplot-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|