netmap.utils.tf_utils.get_tf_index

netmap.utils.tf_utils.get_tf_index(tf_genes, gene_names, tfs_only=True)

Returns the indices of transcription factors in a gene list.

tf_genes: List of transcription factor names gene_names: List of gene names to search the tfs in. tfs_only: Whether to restrict to transcription factors or return the full

list of indices and genes.