kitikiplot 0.2.0__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kitikiplot
3
- Version: 0.2.0
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)
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
  [tool.poetry]
2
2
  name = "kitikiplot"
3
- version = "0.2.0"
3
+ version = "0.2.2"
4
4
  description = "A Python library to visualize categorical sliding window data."
5
5
  authors = ["Boddu Sri Pavan <boddusripavan111@gmail.com>"]
6
6
  readme = "README.md"
@@ -28,3 +28,4 @@ python = ">=3.11" # You may want to adjust this minimum version requirement
28
28
  numpy = ">=2.2.5"
29
29
  pandas = ">=2.2.3"
30
30
  matplotlib = ">=3.10.1"
31
+ biopython = ">=1.85"
File without changes
File without changes