netmap.utils.tf_utils.get_tf_index¶ netmap.utils.tf_utils.get_tf_index(tf_genes, gene_names, tfs_only=True)[source]¶ Return the indices and names of transcription factors within a gene list. Parameters: tf_genes (list of str) – List of transcription factor names. gene_names (list of str) – List of gene names to search for transcription factors. tfs_only (bool) – If True, restrict output to transcription factors present in gene_names; if False, return the full list of indices and genes. Returns: (tfs_indexes, tf_names) — integer indices and correspondinggene name list. Return type: tuple