Ejemplo n.º 1
0
import pypath.input_formats as input_formats

mapList = [
    {
        "one":
        "uniprot-sec",
        "two":
        "uniprot-pri",
        "typ":
        "protein",
        "src":
        "file",
        "par":
        input_formats.FileMapping(os.path.join(common.ROOT, 'data',
                                               'sec_ac.txt'),
                                  0,
                                  1,
                                  None,
                                  header=0)
    }, {
        "one":
        "trembl",
        "two":
        "genesymbol",
        "typ":
        "protein",
        "src":
        "file",
        "par":
        input_formats.FileMapping(os.path.join(common.ROOT, 'data',
                                               'trembl3.tab'),
                                  0,
Ejemplo n.º 2
0
import os

import pypath.common as common
import pypath.input_formats as input_formats

__all__ = ['misc', 'uniprot', 'mirbase', 'basic', 'uniprot_old']


misc = {
    ('uniprot-sec', 'uniprot-pri'):
        input_formats.FileMapping(
            id_type_a = 'uniprot-sec',
            id_type_b = 'uniprot-pri',
            entity_type = 'protein',
            input_ = os.path.join(common.ROOT, 'data', 'sec_ac.txt'),
            col_a = 0,
            col_b = 1,
            separator = None,
            header = 0,
        ),
    ('trembl', 'genesymbol'):
        input_formats.FileMapping(
            id_type_a = 'trembl',
            id_type_b = 'genesymbol',
            entity_type = 'protein',
            input_ = os.path.join(common.ROOT, 'data', 'trembl3.tab'),
            col_a = 0,
            col_b = 1,
            separator = '\t',
            header = 0,
        ),