oxpig/ANARCI

Issue with IMGT renumbering of PDB structures

Opened this issue · 8 comments

Hi,

I cannot seem to run the IMGT renumbering for some TCR pdb structures.

(base) python Example_scripts_and_sequences/ImmunoPDB.py -i 999-coot-1.pdb -o test4_999.pdb -s imgt --receptor tr
/scratch/victor.rangel/ANARCI_conda/ANARCI/Example_scripts_and_sequences/ImmunoPDB.py:11: SyntaxWarning: invalid escape sequence '\ '
description='''
999-coot-1.pdb could not be parsed: Cannot change id from (' ', 1, ' ') to (' ', 2, ' '). The id (' ', 2, ' ') is already used for a sibling of this entity.

Can you please help?

Hi,

Can you strip your pdb file down to only have chains which are TCRs and try again please?

Make sure there are no other objects in the file other than TCR chains and let us know if that works.

BW,
Alex

This is the issue:
biopython/biopython#4623

I have asked them what is happening - it should be solved, but it clearly isn't in version 1.83.

I am trying the dev version - will let you know :)

@victorlr1992 If you install the dev version of biopython (version 1.84) - then it works!

Let me know and I will close the issue.

I need you to confirm that you changed the import line to this:

from Bio.PDB import *
from Bio.File import as_handle
# from Bio.Alphabet import generic_protein
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio.SCOP.Raf import protein_letters_3to1_extended as protein_letters_3to1
from Bio.SeqUtils import seq1

Hello @ALGW71, I can't seem to find biopython 1.84. Could you guide me on how to install it please? Thank you.

Best regards

Hi @alba-ug

Go to this repo:
https://github.com/biopython/biopython

You will have to clone the repo and install it using their user guide.