Пример #1
0
def _get_all_mapping_genes(cursor):
    """
    Get dictionary of all genes from the mapping database.

    This dictionary is keyed on the gene's pk in the mapping
    database.

    The value is a dictionary of fieldname:value pairs in the
    mapping database.
    """
    fieldnames = ['id', 'cosmid_id', 'locus', 'gene_type']
    return get_field_dictionary(cursor, 'Gene', fieldnames)
Пример #2
0
def _get_all_mapping_genes(cursor):
    """
    Get dictionary of all genes from the mapping database.

    This dictionary is keyed on the gene's pk in the mapping
    database.

    The value is a dictionary of fieldname:value pairs in the
    mapping database.
    """
    fieldnames = ['id', 'cosmid_id', 'locus', 'gene_type']
    return get_field_dictionary(cursor, 'Gene', fieldnames)
Пример #3
0
def _get_all_mapping_clones(cursor):
    """
    Get dictionary of all clones from the mapping database.

    This dictionary is keyed on the clone's pk in the mapping
    database.

    The value is a dictionary of fieldname:value pairs in the
    mapping database.
    """
    fieldnames = ['id', 'library', 'clone_type', 'forward_primer',
                  'reverse_primer']
    return get_field_dictionary(cursor, 'Clone', fieldnames)
Пример #4
0
def _get_all_mapping_clones(cursor):
    """
    Get dictionary of all clones from the mapping database.

    This dictionary is keyed on the clone's pk in the mapping
    database.

    The value is a dictionary of fieldname:value pairs in the
    mapping database.
    """
    fieldnames = [
        'id', 'library', 'clone_type', 'forward_primer', 'reverse_primer'
    ]
    return get_field_dictionary(cursor, 'Clone', fieldnames)