RNApolis 0.6.0__tar.gz → 0.6.1__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.
Files changed (43) hide show
  1. {rnapolis-0.6.0/src/RNApolis.egg-info → rnapolis-0.6.1}/PKG-INFO +1 -1
  2. {rnapolis-0.6.0 → rnapolis-0.6.1}/setup.py +1 -1
  3. {rnapolis-0.6.0 → rnapolis-0.6.1/src/RNApolis.egg-info}/PKG-INFO +1 -1
  4. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/aligner.py +25 -9
  5. {rnapolis-0.6.0 → rnapolis-0.6.1}/LICENSE +0 -0
  6. {rnapolis-0.6.0 → rnapolis-0.6.1}/README.md +0 -0
  7. {rnapolis-0.6.0 → rnapolis-0.6.1}/pyproject.toml +0 -0
  8. {rnapolis-0.6.0 → rnapolis-0.6.1}/setup.cfg +0 -0
  9. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/RNApolis.egg-info/SOURCES.txt +0 -0
  10. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/RNApolis.egg-info/dependency_links.txt +0 -0
  11. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/RNApolis.egg-info/entry_points.txt +0 -0
  12. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/RNApolis.egg-info/requires.txt +0 -0
  13. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/RNApolis.egg-info/top_level.txt +0 -0
  14. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/annotator.py +0 -0
  15. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/clashfinder.py +0 -0
  16. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/common.py +0 -0
  17. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/component_A.csv +0 -0
  18. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/component_C.csv +0 -0
  19. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/component_G.csv +0 -0
  20. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/component_U.csv +0 -0
  21. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/metareader.py +0 -0
  22. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/mmcif_pdbx_v50.dic +0 -0
  23. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/molecule_filter.py +0 -0
  24. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/motif_extractor.py +0 -0
  25. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/parser.py +0 -0
  26. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/parser_v2.py +0 -0
  27. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/rfam_folder.py +0 -0
  28. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/tertiary.py +0 -0
  29. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/tertiary_v2.py +0 -0
  30. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/transformer.py +0 -0
  31. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/unifier.py +0 -0
  32. {rnapolis-0.6.0 → rnapolis-0.6.1}/src/rnapolis/util.py +0 -0
  33. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_annotator.py +0 -0
  34. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_bugfixes.py +0 -0
  35. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_common.py +0 -0
  36. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_metareader.py +0 -0
  37. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_molecule_filter.py +0 -0
  38. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_parser.py +0 -0
  39. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_quadruplexes.py +0 -0
  40. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_rfam_folder.py +0 -0
  41. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_tertiary.py +0 -0
  42. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_transformer.py +0 -0
  43. {rnapolis-0.6.0 → rnapolis-0.6.1}/tests/test_v2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RNApolis
3
- Version: 0.6.0
3
+ Version: 0.6.1
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.6.0",
8
+ version="0.6.1",
9
9
  packages=["rnapolis"],
10
10
  package_dir={"": "src"},
11
11
  author="Tomasz Zok",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RNApolis
3
- Version: 0.6.0
3
+ Version: 0.6.1
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
@@ -43,22 +43,38 @@ def main():
43
43
  elif line.startswith("pdb2"):
44
44
  pdb2_aligned.append(line.split()[1])
45
45
 
46
- pdb1_aligned = " ".join(pdb1_aligned)
47
- pdb2_aligned = " ".join(pdb2_aligned)
46
+ pdb1_aligned = "".join(pdb1_aligned)
47
+ pdb2_aligned = "".join(pdb2_aligned)
48
48
  residues_to_remove = {"pdb1": [], "pdb2": []}
49
49
 
50
- for i, (c1, c2) in enumerate(zip(pdb1_aligned, pdb2_aligned)):
50
+ i, j = 0, 0
51
+ for c1, c2 in zip(pdb1_aligned, pdb2_aligned):
52
+ if c1 == c2 == "-":
53
+ continue # Should not happen to have gap aligned to gap, but just in case
54
+
51
55
  if c1 == c2:
56
+ i += 1
57
+ j += 1
52
58
  continue
59
+
53
60
  if c1 == "-":
54
- residues_to_remove["pdb2"].append(i)
55
- elif c2 == "-":
61
+ residues_to_remove["pdb2"].append(j)
62
+ j += 1
63
+ continue
64
+
65
+ if c2 == "-":
56
66
  residues_to_remove["pdb1"].append(i)
57
- elif c1 != c2:
67
+ i += 1
68
+ continue
69
+
70
+ if c1 != c2:
58
71
  residues_to_remove["pdb1"].append(i)
59
- residues_to_remove["pdb2"].append(i)
60
- else:
61
- raise ValueError("This should not happen!")
72
+ residues_to_remove["pdb2"].append(j)
73
+ i += 1
74
+ j += 1
75
+ continue
76
+
77
+ raise ValueError("This should not happen!")
62
78
 
63
79
  if not residues_to_remove["pdb1"] and not residues_to_remove["pdb2"]:
64
80
  print("Structures are already aligned")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes