Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with IMGT renumbering of PDB structures #87

Open
victorlr1992 opened this issue Apr 9, 2024 · 8 comments
Open

Issue with IMGT renumbering of PDB structures #87

victorlr1992 opened this issue Apr 9, 2024 · 8 comments

Comments

@victorlr1992
Copy link

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?

@ALGW71
Copy link
Contributor

ALGW71 commented Apr 9, 2024

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

@victorlr1992
Copy link
Author

victorlr1992 commented Apr 9, 2024 via email

@ALGW71
Copy link
Contributor

ALGW71 commented Apr 10, 2024

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 :)

@ALGW71
Copy link
Contributor

ALGW71 commented Apr 10, 2024

@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

@victorlr1992
Copy link
Author

victorlr1992 commented Apr 10, 2024 via email

@ALGW71
Copy link
Contributor

ALGW71 commented May 21, 2024

#89

@alba-ug
Copy link

alba-ug commented Jun 12, 2024

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

@ALGW71
Copy link
Contributor

ALGW71 commented Jun 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants