def getAccessionNumber(input_type, input_value):
    """ Function to obtain accession number from the database
     input: database query with Arg4, type and value from the config file
     output: accession numberfrom database """
    accession_number = db_query(cg.dbArg1, input_type, input_value)

    return accession_number
Ejemplo n.º 2
0
def getDNA(input_type, input_value):
    """ Function to obtain DNA Sequence  from the database
     input: database query type and value from the config file
     output:dna_sequence from database"""
    dna_sequence = db_query(cg.dbArg7, input_type, input_value)

    return dna_sequence
Ejemplo n.º 3
0
def getLocationCDS(input_type, input_value):
    """ Function to obtain CDS Location from the database
    input: database query with Arg4, type and value from the config file
    output: CDS Location from database """
    cds_location = db_query(cg.dbArg6, input_value, output_value)

    return cds_location
def getAminoAcidSequence(input_type, input_value):
    """ Function to obtain Amino Acid Sequence  from the database
     input: database query Arg5, type, and value from the config file
     output:Amino Acid Sequence from database"""
    amino_acid_sequence = db_query(cg.dbArg5, input_type, input_value)

    return amino_acid_sequence
Ejemplo n.º 5
0
def getGeneID(input_type, input_value):
    """ Function to obtain protein GeneID  from the database
     input: database query Arg3, type, and value from the config file
     output:Gene ID from database"""
    gene_id = db_query(cg.dbArg3, input_type, input_value)
    if gene_id == '':
        return 'Gene ID missing'
    else:
        return gene_id
def getChrLocation(input_type, input_value):
    """ Function to obtain Chromosome Location from the database
     input: database query Arg2, type, and value from the config file
     output:Chromosome Location from database"""
    chr_location = db_query(cg.dbArg2, input_type, input_value)
    if chr_location == '':
        return 'Chromosomal Location Missing'
    else:
        return chr_location
def getProductName(input_type, input_value):
    """ Function to obtain protein product name from the database
     input: database query type and value from the config file
     output:protein product name from database """

    product_name = db_query(cg.dbArg4, input_type, input_value)
    if product_name == '':
        return 'Product Name Missing'
    else:
        return product_name
def getProductName(input_type, input_value):
    product_name = db_query(dbArg4, input_type, input_value)
    if product_name == '':
        return 'Product Name Missing'
    else:
        return product_name
def getAccessionNumber(input_type, input_value):
    accession_number = db_query(dbArg1, input_type, input_value)

    return accession_number
def getChrLocation(input_type, input_value):
    chr_location = db_query(dbArg2, input_type, input_value)
    if chr_location == '':
        return 'Chromosomal Location Missing'
    else:
        return chr_location
Ejemplo n.º 11
0
def getLocationCDS(input_type, input_value):
    cds_location = db_query(dbArg6, input_value, output_value)

    return cds_location
Ejemplo n.º 12
0
def getAminoAcidSequence(input_type, input_value):
     amino_acid_sequence = db_query(dbArg5, input_type, input_value)
     
     return amino_acid_sequence
Ejemplo n.º 13
0
def getDNA(input_type, input_value):
    dna_sequence = db_query(dbArg7, input_type, input_value)

    return dna_sequence
Ejemplo n.º 14
0
def getGeneID(input_type, input_value):
    gene_id = db_query(dbArg3, input_type, input_value)
    if gene_id == '':
        return 'Gene ID missing'
    else:
        return gene_id