def go(): req_logger.info( f'new request to /variants_in_region with request_body: {body}') optional_params = prepare_body_parameters(body) if body.get(ReqParamKeys.STOP): interval = parse_genomic_interval_from_dict(body) result = Coordinator(req_logger, optional_params[8]) \ .variants_in_genomic_interval(interval, optional_params[0], optional_params[1]) else: gene = parse_gene_from_dict(body) result = Coordinator(req_logger, optional_params[8])\ .variants_in_gene(gene, optional_params[0], optional_params[1]) return result
def go(): req_logger.info(f'new request to /annotate with request_body: {body}') assembly = body.get(ReqParamKeys.ASSEMBLY) if assembly: assembly = assembly.lower() if body.get(ReqParamKeys.STOP): interval = parse_genomic_interval_from_dict(body) result = Coordinator(req_logger).annotate_interval( interval, assembly) else: variant = parse_variant_from_dict(body) result = Coordinator(req_logger).annotate_variant( variant, assembly) return result
def go(): req_logger.info( f'new request to /variant_distribution with request_body: {body}') params = prepare_body_parameters(body) result = Coordinator(req_logger, params[8]).variant_distribution( params[2], params[0], params[1], params[3]) return result
def go(): req_logger.info( f'new request to /download_donors with request_body: {body}') params = prepare_body_parameters(body) result = Coordinator(req_logger, params[8]).download_donors(params[0], params[1]) return result
def go(): req_logger.info( f'new request to /rarest_variants with request_body: {body}') params = prepare_body_parameters(body) result = Coordinator(req_logger, params[8]).rank_variants_by_freq( params[0], params[1], True, params[4], params[5], params[9]) return result
def go(): req_logger.info(f'new request to /values with attribute {attribute}') item = parse_name_to_vocabulary(attribute) if item is None: req_logger.info('response says the attribute is not valid') return f'Attribute {attribute} is not a valid parameter for this request', 400 else: result = Coordinator(req_logger).values_of_attribute(item) return result