RNApolis 0.3.6__py3-none-any.whl → 0.3.7__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.
@@ -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,13 +5,13 @@ rnapolis/metareader.py,sha256=4qtMKRvww2sUStLeV8WVrLEt-ScydHUv4Gxx96tnf-M,1683
5
5
  rnapolis/molecule_filter.py,sha256=NhjuqdCRnXgPefWZPeTq77tifmnAzamQtA0ODqPPG9k,6918
6
6
  rnapolis/motif_extractor.py,sha256=duHvpi9Ulcny9K60E6VBpz5RpJZw-KdTB4_Ph0iP478,774
7
7
  rnapolis/parser.py,sha256=Z3Zd_IuRyOP45x5BStgu7UgoyHthhw55fT3udHUhAE4,11905
8
- rnapolis/rfam_folder.py,sha256=1cGM3FSxrfcCpXBybCwyL3cMDViJEitYmAZvhGxoRIE,10882
8
+ rnapolis/rfam_folder.py,sha256=F4CTGgqKQAUSGC8uJxJJRng9BaoqDlK7gmXMQIxblLQ,11173
9
9
  rnapolis/tertiary.py,sha256=iWMPD9c21rjMPpEdBd7mPCQgds65IbOr4_Fy06s0NoU,18957
10
10
  rnapolis/transformer.py,sha256=V9nOQvdq4-p7yUWo0vQg0CDQMpmyxz9t4TMSRVEKHnw,1817
11
11
  rnapolis/util.py,sha256=IdquFO3PV1_KDqodjupzm0Rqvgy0CeSzxGHaGEHYXVU,543
12
- RNApolis-0.3.6.dist-info/LICENSE,sha256=ZGRu12MzCgbYA-Lt8MyBlmjvPZh7xfiD5u5wBx0enq4,1066
13
- RNApolis-0.3.6.dist-info/METADATA,sha256=TUV-ntt9UonvyWWfeFlaTFoS3tSu6Ci9k_N4ySlPWXg,54300
14
- RNApolis-0.3.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
15
- RNApolis-0.3.6.dist-info/entry_points.txt,sha256=foN2Pn5e-OzEz0fFmNoX6PnFSZFQntOlY8LbognP5F0,308
16
- RNApolis-0.3.6.dist-info/top_level.txt,sha256=LcO18koxZcWoJ21KDRRRo_tyIbmXL5z61dPitZpy8yc,9
17
- RNApolis-0.3.6.dist-info/RECORD,,
12
+ RNApolis-0.3.7.dist-info/LICENSE,sha256=ZGRu12MzCgbYA-Lt8MyBlmjvPZh7xfiD5u5wBx0enq4,1066
13
+ RNApolis-0.3.7.dist-info/METADATA,sha256=MzqyQQvP9rLBF8wjPp8zDJei55L_tT27uFjPDihvWP0,54300
14
+ RNApolis-0.3.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
15
+ RNApolis-0.3.7.dist-info/entry_points.txt,sha256=foN2Pn5e-OzEz0fFmNoX6PnFSZFQntOlY8LbognP5F0,308
16
+ RNApolis-0.3.7.dist-info/top_level.txt,sha256=LcO18koxZcWoJ21KDRRRo_tyIbmXL5z61dPitZpy8yc,9
17
+ RNApolis-0.3.7.dist-info/RECORD,,
rnapolis/rfam_folder.py CHANGED
@@ -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("-", ".")