DesignFrame.add_reference_shift(seqID, shift, shift_labels=False)¶Add a reference_shift attached to a chain seqID.
What is shift? In case the sequence does not start in 1, shift defines how to count it. It is a way to keep plotting an analysis showing residue number compatible with the PDB. There are two main ways to set the shift:
| Parameters: | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Raises: |
|
Example
In [1]: from rstoolbox.io import parse_rosetta_file
...: import pandas as pd
...: pd.set_option('display.width', 1000)
...: pd.set_option('display.max_columns', 500)
...: df = parse_rosetta_file("../rstoolbox/tests/data/input_ssebig.minisilent.gz",
...: {'sequence': 'C', 'structure': 'C'})
...: df.add_reference_structure('C', df.iloc[0].get_structure('C'))
...: df.add_reference_shift('C', 3)
...: