RNApolis 0.3.6__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.6/src/RNApolis.egg-info → RNApolis-0.3.7}/PKG-INFO +1 -1
  2. {RNApolis-0.3.6 → RNApolis-0.3.7}/setup.py +1 -1
  3. {RNApolis-0.3.6 → RNApolis-0.3.7/src/RNApolis.egg-info}/PKG-INFO +1 -1
  4. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/rfam_folder.py +9 -0
  5. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_rfam_folder.py +8 -0
  6. {RNApolis-0.3.6 → RNApolis-0.3.7}/LICENSE +0 -0
  7. {RNApolis-0.3.6 → RNApolis-0.3.7}/README.md +0 -0
  8. {RNApolis-0.3.6 → RNApolis-0.3.7}/pyproject.toml +0 -0
  9. {RNApolis-0.3.6 → RNApolis-0.3.7}/setup.cfg +0 -0
  10. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/RNApolis.egg-info/SOURCES.txt +0 -0
  11. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/RNApolis.egg-info/dependency_links.txt +0 -0
  12. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/RNApolis.egg-info/entry_points.txt +0 -0
  13. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/RNApolis.egg-info/requires.txt +0 -0
  14. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/RNApolis.egg-info/top_level.txt +0 -0
  15. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/annotator.py +0 -0
  16. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/clashfinder.py +0 -0
  17. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/common.py +0 -0
  18. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/metareader.py +0 -0
  19. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/molecule_filter.py +0 -0
  20. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/motif_extractor.py +0 -0
  21. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/parser.py +0 -0
  22. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/tertiary.py +0 -0
  23. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/transformer.py +0 -0
  24. {RNApolis-0.3.6 → RNApolis-0.3.7}/src/rnapolis/util.py +0 -0
  25. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_annotator.py +0 -0
  26. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_bugfixes.py +0 -0
  27. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_common.py +0 -0
  28. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_metareader.py +0 -0
  29. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_parser.py +0 -0
  30. {RNApolis-0.3.6 → RNApolis-0.3.7}/tests/test_quadruplexes.py +0 -0
  31. {RNApolis-0.3.6 → 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.6
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.6",
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.6
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
@@ -214,6 +214,15 @@ def analyze_cmsearch(cmsearch: str, fasta: FASTA, count: int = 1):
214
214
 
215
215
  assert len(sequence) == len(structure)
216
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
+
217
226
  structure = (
218
227
  structure.replace(":", ".")
219
228
  .replace("-", ".")
@@ -11,3 +11,11 @@ IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
11
11
  def test_GK000002():
12
12
  fasta = parse_fasta("tests/GK000002.2-66269475-66272524.fa")
13
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