Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -275,7 +275,10 @@ class Chain: | ... | @@ -275,7 +275,10 @@ class Chain: |
275 | 275 | ||
276 | # Remove nucleotides of the chain that are outside the Rfam mapping, if any | 276 | # Remove nucleotides of the chain that are outside the Rfam mapping, if any |
277 | if self.pdb_start and self.pdb_end: | 277 | if self.pdb_start and self.pdb_end: |
278 | - df = df.drop(df[(df.nt_resnum < self.pdb_start) | (df.nt_resnum > self.pdb_end)].index) | 278 | + if self.pdb_start < self.pdb_end: |
279 | + df = df.drop(df[(df.nt_resnum < self.pdb_start) | (df.nt_resnum > self.pdb_end)].index) | ||
280 | + else: | ||
281 | + df = df.drop(df[(df.nt_resnum < self.pdb_end) | (df.nt_resnum > self.pdb_start)].index) | ||
279 | 282 | ||
280 | ############################################# | 283 | ############################################# |
281 | # Solve some common issues and drop ligands | 284 | # Solve some common issues and drop ligands | ... | ... |
-
Please register or login to post a comment