Residues
structure.pdb.numbering.residues.assign_resid(line, current_resid, prev_original_resid)
¶
Determines residue ID based on a consistent numbering scheme.
PARAMETER | DESCRIPTION |
---|---|
line |
Line that we are determining the residue ID to have.
TYPE:
|
current_resid |
Current residue ID that we are using.
TYPE:
|
prev_original_resid |
Previous residue ID from the PDB file that we are grouping together.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
Assigned residue ID for this line. |
str
|
Next |
structure.pdb.numbering.residues.unify_resid(line, current_resid, prev_original_resid)
¶
Unify residue ID in the PDB line based on previous ones.
PARAMETER | DESCRIPTION |
---|---|
line |
Line that we are modifying.
TYPE:
|
current_resid |
Current residue ID that we are using.
TYPE:
|
prev_original_resid |
Original residue ID from previous line in the PDB file.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
PDB line with the new residue ID. |
str
|
Residue ID we are assigning this atom. |
str
|
The original residue ID from |