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.
Files changed (31) hide show
  1. {RNApolis-0.3.5/src/RNApolis.egg-info → RNApolis-0.3.7}/PKG-INFO +1 -1
  2. {RNApolis-0.3.5 → RNApolis-0.3.7}/setup.py +1 -1
  3. {RNApolis-0.3.5 → RNApolis-0.3.7/src/RNApolis.egg-info}/PKG-INFO +1 -1
  4. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/SOURCES.txt +1 -0
  5. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/rfam_folder.py +13 -0
  6. RNApolis-0.3.7/tests/test_rfam_folder.py +21 -0
  7. {RNApolis-0.3.5 → RNApolis-0.3.7}/LICENSE +0 -0
  8. {RNApolis-0.3.5 → RNApolis-0.3.7}/README.md +0 -0
  9. {RNApolis-0.3.5 → RNApolis-0.3.7}/pyproject.toml +0 -0
  10. {RNApolis-0.3.5 → RNApolis-0.3.7}/setup.cfg +0 -0
  11. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/dependency_links.txt +0 -0
  12. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/entry_points.txt +0 -0
  13. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/requires.txt +0 -0
  14. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/RNApolis.egg-info/top_level.txt +0 -0
  15. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/annotator.py +0 -0
  16. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/clashfinder.py +0 -0
  17. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/common.py +0 -0
  18. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/metareader.py +0 -0
  19. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/molecule_filter.py +0 -0
  20. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/motif_extractor.py +0 -0
  21. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/parser.py +0 -0
  22. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/tertiary.py +0 -0
  23. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/transformer.py +0 -0
  24. {RNApolis-0.3.5 → RNApolis-0.3.7}/src/rnapolis/util.py +0 -0
  25. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_annotator.py +0 -0
  26. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_bugfixes.py +0 -0
  27. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_common.py +0 -0
  28. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_metareader.py +0 -0
  29. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_parser.py +0 -0
  30. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_quadruplexes.py +0 -0
  31. {RNApolis-0.3.5 → RNApolis-0.3.7}/tests/test_tertiary.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RNApolis
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: A Python library containing RNA-related bioinformatics functions and classes
5
5
  Home-page: https://github.com/tzok/rnapolis-py
6
6
  Author: Tomasz Zok
@@ -5,7 +5,7 @@ with open("README.md") as f:
5
5
 
6
6
  setup(
7
7
  name="RNApolis",
8
- version="0.3.5",
8
+ version="0.3.7",
9
9
  packages=["rnapolis"],
10
10
  package_dir={"": "src"},
11
11
  author="Tomasz Zok",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RNApolis
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: A Python library containing RNA-related bioinformatics functions and classes
5
5
  Home-page: https://github.com/tzok/rnapolis-py
6
6
  Author: Tomasz Zok
@@ -25,4 +25,5 @@ tests/test_common.py
25
25
  tests/test_metareader.py
26
26
  tests/test_parser.py
27
27
  tests/test_quadruplexes.py
28
+ tests/test_rfam_folder.py
28
29
  tests/test_tertiary.py
@@ -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