============ Translations ============ SKM's networks are in majority built on *Arabidopsis thaliana*. Their genes are translated to crop species by `skm-translate `_, a pipeline that combines several orthology methods. The translation files can be downloaded from the `SKM downloads page `_, which has the current list of species and their references. Species ======= .. list-table:: :header-rows: 1 * - Code - Species - Common name * - ``ath`` - *Arabidopsis thaliana* - thale cress * - ``mdo`` - *Malus domestica* - apple * - ``pdul`` - *Prunus amygdalus* syn. *Prunus dulcis* - almond * - ``parm`` - *Prunus armeniaca* - apricot * - ``pavi`` - *Prunus avium* - wild cherry * - ``pcer`` - *Prunus cerasifera* - cherry plum * - ``ppe`` - *Prunus persica* - peach * - ``psib`` - *Prunus sibirica* - siberian apricot * - ``pcox`` - *Pyrus communis* - pear * - ``sly`` - *Solanum lycopersicum* - tomato * - ``stu`` - *Solanum tuberosum* - potato * - ``vvi`` - *Vitis vinifera* - grapevine PSS === The genes of PSS functional clusters are listed per species in the ``_homologues`` node attributes, and each species has its own gene network: see :doc:`pss`. PSS has two species without translation files: ``osa`` (*Oryza sativa*, rice) and ``nta`` (*Nicotiana tabacum*, tobacco). CKN === :mod:`skm_tools.translate` translates the Arabidopsis genes of CKN to another species. Each Arabidopsis gene node is replaced by a node for each of its translations, keeping its edges. The translation file is downloaded if missing (to the given path, or into ``data_dir`` as ``translation_ath_to_.tsv.gz``); its column of the species' genes is named after the species (e.g. ``apricot``), and is given as ``t_target_col``: .. code-block:: python from skm_tools.translate import load_translation_file, integrate_translation_ckn translations = load_translation_file("parm", data_dir="data") ckn_apricot = integrate_translation_ckn(ckn, translations, t_target_col="apricot") Translated nodes have ``translated_from`` (the Arabidopsis node) and ``translation`` (the gene). Only nodes with an Arabidopsis gene id (``TAIR``) are translated; those without a translation are kept with ``translated`` False (``keep_unmapped=False`` drops them, with their edges). Nodes without a gene id (complexes, metabolites, processes, nodes of other species) are copied as they are. The translations of one Arabidopsis gene, and the genes of different Arabidopsis genes with the same translation, are linked by homology edges (``type`` and ``interaction`` ``homology``, ``directed`` False).