RNApolis 0.10.6__py3-none-any.whl → 0.10.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.
- rnapolis/common.py +21 -13
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/METADATA +1 -1
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/RECORD +7 -7
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/WHEEL +0 -0
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/entry_points.txt +0 -0
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/licenses/LICENSE +0 -0
 - {rnapolis-0.10.6.dist-info → rnapolis-0.10.7.dist-info}/top_level.txt +0 -0
 
    
        rnapolis/common.py
    CHANGED
    
    | 
         @@ -1084,33 +1084,41 @@ class BaseInteractions: 
     | 
|
| 
       1084 
1084 
     | 
    
         
             
                    base_phosphate_interactions: List[BasePhosphate],
         
     | 
| 
       1085 
1085 
     | 
    
         
             
                    other_interactions: List[OtherInteraction],
         
     | 
| 
       1086 
1086 
     | 
    
         
             
                ) -> "BaseInteractions":
         
     | 
| 
       1087 
     | 
    
         
            -
                     
     | 
| 
       1088 
     | 
    
         
            -
                     
     | 
| 
       1089 
     | 
    
         
            -
                     
     | 
| 
      
 1087 
     | 
    
         
            +
                    cni2residue = {}
         
     | 
| 
      
 1088 
     | 
    
         
            +
                    cni2label = {}
         
     | 
| 
      
 1089 
     | 
    
         
            +
                    cni2auth = {}
         
     | 
| 
       1090 
1090 
     | 
    
         | 
| 
       1091 
1091 
     | 
    
         
             
                    for residue3d in structure3d.residues:
         
     | 
| 
       1092 
     | 
    
         
            -
                         
     | 
| 
       1093 
     | 
    
         
            -
                         
     | 
| 
       1094 
     | 
    
         
            -
                         
     | 
| 
      
 1092 
     | 
    
         
            +
                        cni = (residue3d.chain, residue3d.number, residue3d.icode or None)
         
     | 
| 
      
 1093 
     | 
    
         
            +
                        cni2auth[cni] = residue3d.auth
         
     | 
| 
      
 1094 
     | 
    
         
            +
                        cni2label[cni] = residue3d.label
         
     | 
| 
      
 1095 
     | 
    
         
            +
                        cni2residue[cni] = residue3d
         
     | 
| 
       1095 
1096 
     | 
    
         | 
| 
       1096 
1097 
     | 
    
         
             
                    def unify_nt(nt: Residue) -> Residue:
         
     | 
| 
       1097 
1098 
     | 
    
         
             
                        if nt.auth is not None and nt.label is not None:
         
     | 
| 
       1098 
1099 
     | 
    
         
             
                            return nt
         
     | 
| 
      
 1100 
     | 
    
         
            +
                        cni = (nt.chain, nt.number, nt.icode or None)
         
     | 
| 
       1099 
1101 
     | 
    
         
             
                        if nt.auth is not None:
         
     | 
| 
       1100 
     | 
    
         
            -
                            return Residue(label= 
     | 
| 
      
 1102 
     | 
    
         
            +
                            return Residue(label=cni2label.get(cni, None), auth=nt.auth)
         
     | 
| 
       1101 
1103 
     | 
    
         
             
                        if nt.label is not None:
         
     | 
| 
       1102 
     | 
    
         
            -
                            return Residue(label=nt.label, auth= 
     | 
| 
      
 1104 
     | 
    
         
            +
                            return Residue(label=nt.label, auth=cni2auth.get(cni, None))
         
     | 
| 
       1103 
1105 
     | 
    
         
             
                        return nt
         
     | 
| 
       1104 
1106 
     | 
    
         | 
| 
       1105 
1107 
     | 
    
         
             
                    base_pairs_new = []
         
     | 
| 
       1106 
1108 
     | 
    
         
             
                    for base_pair in base_pairs:
         
     | 
| 
       1107 
1109 
     | 
    
         
             
                        nt1 = unify_nt(base_pair.nt1)
         
     | 
| 
       1108 
1110 
     | 
    
         
             
                        nt2 = unify_nt(base_pair.nt2)
         
     | 
| 
       1109 
     | 
    
         
            -
             
     | 
| 
       1110 
     | 
    
         
            -
             
     | 
| 
       1111 
     | 
    
         
            -
             
     | 
| 
       1112 
     | 
    
         
            -
             
     | 
| 
       1113 
     | 
    
         
            -
             
     | 
| 
      
 1111 
     | 
    
         
            +
             
     | 
| 
      
 1112 
     | 
    
         
            +
                        cni1 = (nt1.chain, nt1.number, nt1.icode or None)
         
     | 
| 
      
 1113 
     | 
    
         
            +
                        cni2 = (nt2.chain, nt2.number, nt2.icode or None)
         
     | 
| 
      
 1114 
     | 
    
         
            +
                        if cni1 not in cni2residue or cni2 not in cni2residue:
         
     | 
| 
      
 1115 
     | 
    
         
            +
                            saenger = base_pair.saenger
         
     | 
| 
      
 1116 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 1117 
     | 
    
         
            +
                            saenger = base_pair.saenger or Saenger.from_leontis_westhof(
         
     | 
| 
      
 1118 
     | 
    
         
            +
                                cni2residue[cni1].one_letter_name,
         
     | 
| 
      
 1119 
     | 
    
         
            +
                                cni2residue[cni2].one_letter_name,
         
     | 
| 
      
 1120 
     | 
    
         
            +
                                base_pair.lw,
         
     | 
| 
      
 1121 
     | 
    
         
            +
                            )
         
     | 
| 
       1114 
1122 
     | 
    
         
             
                        if (
         
     | 
| 
       1115 
1123 
     | 
    
         
             
                            nt1 != base_pair.nt1
         
     | 
| 
       1116 
1124 
     | 
    
         
             
                            or nt2 != base_pair.nt2
         
     | 
| 
         @@ -2,7 +2,7 @@ rnapolis/adapter.py,sha256=6hJTweIqUXH8CEGvi8oupFzk5etkIt8Q2bqRvgsqako,62169 
     | 
|
| 
       2 
2 
     | 
    
         
             
            rnapolis/aligner.py,sha256=o7rQyjAZ3n4VXcnSPY3HVB8nLNRkVbl552O3NVh0mfg,3429
         
     | 
| 
       3 
3 
     | 
    
         
             
            rnapolis/annotator.py,sha256=HA2hfEUXdmBElObqRlASAB1FgkysjiHgwMTjEhsDiDE,30277
         
     | 
| 
       4 
4 
     | 
    
         
             
            rnapolis/clashfinder.py,sha256=AC9_tIx7QIk57sELq_aKfU1u3UMOXbgcccQeGHhMR6c,8517
         
     | 
| 
       5 
     | 
    
         
            -
            rnapolis/common.py,sha256= 
     | 
| 
      
 5 
     | 
    
         
            +
            rnapolis/common.py,sha256=qifqTIiq43jeR1xKK3301PbRMo7vaZgjQauG-G7asSc,36686
         
     | 
| 
       6 
6 
     | 
    
         
             
            rnapolis/component_A.csv,sha256=koirS-AwUZwoYGItT8yn3wS6Idvmh2FANfTQcOS_xh8,2897
         
     | 
| 
       7 
7 
     | 
    
         
             
            rnapolis/component_C.csv,sha256=NtvsAu_YrUgTjzZm3j4poW4IZ99x3dPARB09XVIiMCc,2803
         
     | 
| 
       8 
8 
     | 
    
         
             
            rnapolis/component_G.csv,sha256=Z5wl8OnHRyx4XhTyBiWgRZiEvmZXhoxtVRH8bn6Vxf0,2898
         
     | 
| 
         @@ -22,9 +22,9 @@ rnapolis/tertiary_v2.py,sha256=SgijTv0bPqMJwsMqyQk0O8QAnS2Ozk45vk8igxt9hRs,38001 
     | 
|
| 
       22 
22 
     | 
    
         
             
            rnapolis/transformer.py,sha256=aC0nBmHHJf5TyLvBIV57Jj3tlwpvHbPo347opfAOlQA,3844
         
     | 
| 
       23 
23 
     | 
    
         
             
            rnapolis/unifier.py,sha256=2ge7IB9FdRgzSAiVD39U_ciwtdDJ2fGzf8mUIudbrqY,5820
         
     | 
| 
       24 
24 
     | 
    
         
             
            rnapolis/util.py,sha256=IdquFO3PV1_KDqodjupzm0Rqvgy0CeSzxGHaGEHYXVU,543
         
     | 
| 
       25 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
       26 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
       27 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
       28 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
       29 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
       30 
     | 
    
         
            -
            rnapolis-0.10. 
     | 
| 
      
 25 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/licenses/LICENSE,sha256=ZGRu12MzCgbYA-Lt8MyBlmjvPZh7xfiD5u5wBx0enq4,1066
         
     | 
| 
      
 26 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/METADATA,sha256=QPuGPZ96VIjvQPiLkk4bS4vstWqO6cok6e4vID33vg0,54611
         
     | 
| 
      
 27 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
         
     | 
| 
      
 28 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/entry_points.txt,sha256=MZMWnYBUYnis-zWDmFfuA5yXtU3W5YdQrm5HA5LrkeM,474
         
     | 
| 
      
 29 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/top_level.txt,sha256=LcO18koxZcWoJ21KDRRRo_tyIbmXL5z61dPitZpy8yc,9
         
     | 
| 
      
 30 
     | 
    
         
            +
            rnapolis-0.10.7.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |