RNApolis 0.3.5__tar.gz → 0.3.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {RNApolis-0.3.5/src/RNApolis.egg-info → RNApolis-0.3.7}/PKG-INFO +1 -1
- {RNApolis-0.3.5 → RNApolis-0.3.7}/setup.py +1 -1
- {RNApolis-0.3.5 → RNApolis-0.3.7/src/RNApolis.egg-info}/PKG-INFO +1 -1
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/SOURCES.txt +1 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/rfam_folder.py +13 -0
- RNApolis-0.3.7/tests/test_rfam_folder.py +21 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/LICENSE +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/README.md +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/pyproject.toml +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/setup.cfg +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/dependency_links.txt +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/entry_points.txt +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/requires.txt +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/top_level.txt +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/annotator.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/clashfinder.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/common.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/metareader.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/molecule_filter.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/motif_extractor.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/parser.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/tertiary.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/transformer.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/util.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_annotator.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_bugfixes.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_common.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_metareader.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_parser.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_quadruplexes.py +0 -0
- {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_tertiary.py +0 -0
@@ -137,7 +137,11 @@ def analyze_cmsearch(cmsearch: str, fasta: FASTA, count: int = 1):
|
|
137
137
|
for i in range(len(structure)):
|
138
138
|
if structure[i] != " ":
|
139
139
|
break
|
140
|
+
|
140
141
|
j = structure.find(" CS")
|
142
|
+
while structure[j] == " ":
|
143
|
+
j -= 1
|
144
|
+
j += 1
|
141
145
|
|
142
146
|
structure = structure[i:j]
|
143
147
|
sequence = sequence[i:j].upper()
|
@@ -210,6 +214,15 @@ def analyze_cmsearch(cmsearch: str, fasta: FASTA, count: int = 1):
|
|
210
214
|
|
211
215
|
assert len(sequence) == len(structure)
|
212
216
|
|
217
|
+
i = fasta.sequence.find(sequence)
|
218
|
+
structure = (
|
219
|
+
"." * i + structure + "." * (len(fasta.sequence) - len(sequence) - i)
|
220
|
+
)
|
221
|
+
sequence = fasta.sequence
|
222
|
+
|
223
|
+
assert len(sequence) == len(structure)
|
224
|
+
assert len(sequence) == len(fasta.sequence)
|
225
|
+
|
213
226
|
structure = (
|
214
227
|
structure.replace(":", ".")
|
215
228
|
.replace("-", ".")
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import os
|
2
|
+
|
3
|
+
import pytest
|
4
|
+
|
5
|
+
from rnapolis.rfam_folder import generate_consensus_secondary_structure, parse_fasta
|
6
|
+
|
7
|
+
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
|
8
|
+
|
9
|
+
|
10
|
+
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
|
11
|
+
def test_GK000002():
|
12
|
+
fasta = parse_fasta("tests/GK000002.2-66269475-66272524.fa")
|
13
|
+
generate_consensus_secondary_structure(fasta[0], "RF02540", False)
|
14
|
+
|
15
|
+
|
16
|
+
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
|
17
|
+
def test_LJAJ01000009():
|
18
|
+
fasta = parse_fasta("tests/LJAJ01000009.1-42413-42384.fa")
|
19
|
+
result = generate_consensus_secondary_structure(fasta[0], "RF01315", False)
|
20
|
+
sequence = result[0].split("\n")[1]
|
21
|
+
assert len(sequence) == len(fasta[0].sequence)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|