scripts.data.postprocessing.to_etab.get_idx_dict¶
- scripts.data.postprocessing.to_etab.get_idx_dict(pdb, chain_filter=None)[source]¶
From a
.red.pdbfile, generate a dictionary mapping indices used within TERMinator to indices used by the.red.pdbfile.- Parameters:
pdb (str) – path to
.red.pdbfilechain_filter (list of str or None) – only parse chains from
chain_filter. IfNone, parse all chains
- Returns:
idx_dict – Dictionary mapping indices used within TERMinator to indices used by the
.red.pdbfile.- Return type:
dict