tfmindi.load_motif_to_dbd#
- tfmindi.load_motif_to_dbd(motif_annotations)#
Create motif-to-DNA-binding-domain mapping for human TFs.
Takes motif annotations and maps motifs to their DNA-binding domains based on TF annotations and human TF database information.
- Parameters:
motif_annotations (
DataFrame) – DataFrame with motif annotations as returned by load_motif_annotations()- Return type:
- Returns:
dict[str, str] Dictionary mapping motif IDs to DNA-binding domain names
Examples
>>> annotations_file = fetch_motif_annotations("hgnc", "v10nr_clust") >>> motif_annotations = load_motif_annotations(annotations_file) >>> motif_to_dbd = load_motif_to_dbd(motif_annotations) >>> print(motif_to_dbd["hocomoco__FOXO1_HUMAN.H11MO.0.A"]) 'Forkhead'