RNA-lexis 0.2.5__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.
- rna_lexis/RNAlang.py +86 -0
- rna_lexis/__init__.py +10 -0
- rna_lexis/__main__.py +5 -0
- rna_lexis/algorithms.py +1429 -0
- rna_lexis/alignment.py +357 -0
- rna_lexis/data/NORAD_human.fasta +79 -0
- rna_lexis/data/NORAD_mouse.fasta +72 -0
- rna_lexis/data/README.md +56 -0
- rna_lexis/dialogs.py +67 -0
- rna_lexis/io.py +653 -0
- rna_lexis/menu.py +2955 -0
- rna_lexis/plots.py +1683 -0
- rna_lexis/statistical.py +831 -0
- rna_lexis/test_cli.py +223 -0
- rna_lexis-0.2.5.dist-info/METADATA +353 -0
- rna_lexis-0.2.5.dist-info/RECORD +20 -0
- rna_lexis-0.2.5.dist-info/WHEEL +5 -0
- rna_lexis-0.2.5.dist-info/entry_points.txt +4 -0
- rna_lexis-0.2.5.dist-info/licenses/LICENSE +19 -0
- rna_lexis-0.2.5.dist-info/top_level.txt +1 -0
rna_lexis/RNAlang.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""Backward-compatibility shim for rna_lexis.RNAlang.
|
|
2
|
+
|
|
3
|
+
All symbols that previously lived in this module have been reorganised into
|
|
4
|
+
focused sub-modules. This file re-exports everything so that existing code
|
|
5
|
+
using ``from rna_lexis.RNAlang import ...`` or ``import rna_lexis.RNAlang
|
|
6
|
+
as RNA`` continues to work unchanged.
|
|
7
|
+
|
|
8
|
+
New code should import directly from the appropriate sub-module:
|
|
9
|
+
* rna_lexis.algorithms — pure computation (no I/O, no plotting)
|
|
10
|
+
* rna_lexis.alignment — Gotoh global/local alignment
|
|
11
|
+
* rna_lexis.plots — matplotlib / Plotly visualisation
|
|
12
|
+
* rna_lexis.io — file, session, and network I/O
|
|
13
|
+
* rna_lexis.dialogs — tkinter file/directory chooser wrappers
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
import re # keep accessible as RNAlang.re for legacy callers
|
|
17
|
+
|
|
18
|
+
from rna_lexis.algorithms import (
|
|
19
|
+
contains_only_rna,
|
|
20
|
+
count_kgrams,
|
|
21
|
+
find_all_matches,
|
|
22
|
+
stitch,
|
|
23
|
+
find_max_cover,
|
|
24
|
+
split_words,
|
|
25
|
+
cover,
|
|
26
|
+
cores,
|
|
27
|
+
print_core,
|
|
28
|
+
is_bounded,
|
|
29
|
+
find_boundary,
|
|
30
|
+
expand_to_boundary,
|
|
31
|
+
_is_bounded_fast,
|
|
32
|
+
_expand_left,
|
|
33
|
+
_expand_right,
|
|
34
|
+
add_mut,
|
|
35
|
+
allow_mutation,
|
|
36
|
+
core_nbrs,
|
|
37
|
+
cond_prob_core,
|
|
38
|
+
extendRNA,
|
|
39
|
+
Hairpin,
|
|
40
|
+
gen_hairpins,
|
|
41
|
+
confmat,
|
|
42
|
+
zscore,
|
|
43
|
+
find_with_mutations,
|
|
44
|
+
extend_match_pair,
|
|
45
|
+
find_longest_extensions,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
from rna_lexis.alignment import (
|
|
49
|
+
NEG_INF,
|
|
50
|
+
AlignmentResult,
|
|
51
|
+
score_sub,
|
|
52
|
+
make_markers,
|
|
53
|
+
print_alignment,
|
|
54
|
+
gotoh_global,
|
|
55
|
+
gotoh_local,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
from rna_lexis.plots import (
|
|
59
|
+
plot_seq_nbrs,
|
|
60
|
+
plot_nbrs_condensed,
|
|
61
|
+
export_nbrs_condensed,
|
|
62
|
+
plot_logo,
|
|
63
|
+
plotzscore,
|
|
64
|
+
plotkmerhist,
|
|
65
|
+
plot_frequency_rank,
|
|
66
|
+
plot_coverage,
|
|
67
|
+
_HIT_PALETTE,
|
|
68
|
+
_HIT_PALETTE_RGBA,
|
|
69
|
+
_blend_over_white,
|
|
70
|
+
_compress_positions,
|
|
71
|
+
plot_sequence_hits,
|
|
72
|
+
plot_sequence_hits_detailed,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
from rna_lexis.io import (
|
|
76
|
+
_SESSION_REQUIRED_KEYS,
|
|
77
|
+
SessionData,
|
|
78
|
+
save_session,
|
|
79
|
+
load_session,
|
|
80
|
+
is_valid_session,
|
|
81
|
+
open_file_with_default_software,
|
|
82
|
+
_close_in_excel,
|
|
83
|
+
read_text,
|
|
84
|
+
open_pdf,
|
|
85
|
+
init_summary,
|
|
86
|
+
)
|
rna_lexis/__init__.py
ADDED