tcr_pmhc_interface_analysis.utils module
- tcr_pmhc_interface_analysis.utils.get_coords(df)
- tcr_pmhc_interface_analysis.utils.get_header(pdb_contents: str) str
Get the header lines from the contents of a pdb file.
- tcr_pmhc_interface_analysis.utils.get_sequence(df: DataFrame) str
Get sequence from structre dataframe.
- tcr_pmhc_interface_analysis.utils.mhc_code_to_slug(code: str) str
Convert MHC allele codes into slugs.
>>> mhc_code_to_slug('HLA-A*02:01:59') 'hla_a_02_01_59'
- tcr_pmhc_interface_analysis.utils.mhc_slug_to_code(slug: str) str
Convert mhc slugs into the allele codes.
>>> mhc_slug_to_code('hla_a_02_01') 'HLA-A*02:01'
>>> mhc_slug_to_code('h2_kb') 'H2-Kb'
TODO: Make this better for other mouse alleles