-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I am experiencing issues with interaction profiling after making changes to MHC numbering. It appears that a renumbering step is performed before using PLIP on the structures. However, the renumbered structures are not the ones being used by PLIP, as the original structure is utilised instead of the renumbered copy:
renumbering is done here after creating copies of each chain:
tcr_and_mhc_chains = [
c.copy()
for c in list(tcr_pmhc_complex.get_chains())
+ list(tcr_pmhc_complex.get_MHC()[0].get_chains())
]
if renumber:
# renumber each chain from one to N to avoid automated renumbering issues related to plip and openbabel
renumbering = {}
for chain in tcr_and_mhc_chains:
renumbering[chain.id] = {}
for new_idx, res in enumerate(chain.get_residues()):
new_id = (" ", new_idx + 1, " ")
renumbering[chain.id][new_id] = res.id
res.id = new_id
domain_assignment = tcr_pmhc_complex.get_domain_assignment()
But then the original tcr_pmhc_complex object is being used:
tcr_mhc_struct = PDB.Model.Model(id=0)
# add TCR chains to protein structure
for chain in tcr_pmhc_complex.get_chains():
tcr_mhc_struct.add(chain)
# add MHC chain to protein structure
for chain in tcr_pmhc_complex.get_MHC()[0].get_chains():
tcr_mhc_struct.add(chain)
io = PDB.PDBIO()
io.set_structure(tcr_mhc_struct)
io.save(TCR_MHC_FILE)
Am I right in thinking this isn't how it's supposed to work?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels