[docs]deftranscription_factors(organism:Literal["human","mouse","drosophila"])->List[str]:"""Get transcription factors for a selected organism. The data was taken from this `source <https://resources.aertslab.org/cistarget/tf_lists/>`_. Parameters ---------- organism Organism for which to select the transcription factors. Returns ------- Transcription factors for ``organism``. """iforganism=="human":fname="allTFs_hg38.txt"eliforganism=="mouse":fname="allTFs_mm.txt"eliforganism=="drosophila":fname="allTFs_dmel.txt"else:raiseNotImplementedError(f"Transcription factors for `{organism!r}` are not yet implemented.")withopen(Path(__file__).parent/"_data"/fname)asfin:returnsorted(tf.strip()fortfinfin.readlines())
[docs]defproliferation_markers(organism:Literal["human","mouse"])->List[str]:"""Get proliferation markers for a selected organism. Parameters ---------- organism Organism for which to select the marker genes. Human markers come from :cite:`tirosh:16:science`, mouse markers come from :cite:`tirosh:16:nature`. Returns ------- Proliferation markers for ``organism``. """iforganismnotin("human","mouse"):raiseNotImplementedError(f"Proliferation markers for `{organism!r}` are not yet implemented.")fname=f"{organism}_proliferation.txt"withopen(Path(__file__).parent/"_data"/fname)asfin:returnsorted(tf.strip()fortfinfin.readlines())
[docs]defapoptosis_markers(organism:Literal["human","mouse"])->List[str]:"""Get apoptosis markers for a selected organism. Parameters ---------- organism Organism for which to select the marker genes. Human markers come from `Hallmark Apoptosis, MSigDB <https://www.gsea-msigdb.org/gsea/msigdb/cards/HALLMARK_APOPTOSIS>`_, mouse markers come from `Hallmark P53 Pathway, MSigDB <https://www.gsea-msigdb.org/gsea/msigdb/cards/HALLMARK_P53_PATHWAY>`_. Returns ------- Apoptosis markers for ``organism``. """iforganismnotin("human","mouse"):raiseNotImplementedError(f"Apoptosis markers for `{organism!r}` are not yet implemented.")fname=f"{organism}_apoptosis.txt"withopen(Path(__file__).parent/"_data"/fname)asfin:returnsorted(tf.strip()fortfinfin.readlines())