Closed Le-Phung-Hien closed 7 months ago
Hi Hien,
fp.plot_barcode(xlabel="Pose")
returns a matplotlib Axes
object from which you can manipulate the xticks
and xticklabels
attributes to do what you want (see their docs here).
As for switching the residue names to be 1-letter code, you can extract the current labels with the same attributes as above (just y
instead of x
), and if you extract the first 3 characters you can then use MDAnalysis to convert the 3-letter code to 1-letter with MDAnalysis.lib.util.inverse_aa_codes
or your own conversion table.
Hi,
I am running a script to get interaction barcode of different compounds (in a single sdf file) to a protein (in a pdb file).
The script run well, but I would like to know if there is a way to use compound names instead of pose number as X axis of interaction barcode? Also, is it possible to use 1-letter code instead of 3-letter code for the residues?
Thank you very much.
Hien