def transcript_summary_api(transcript_id): try: intervalset = IntervalSet.from_transcript(get_db(), transcript_id) return jsonify( lookups.get_summary_for_intervalset(get_db(), intervalset)) except: _err() abort(500)
def gene_summary_api(gene_id): try: intervalset = IntervalSet.from_gene(get_db(), gene_id) return jsonify( lookups.get_summary_for_intervalset(get_db(), intervalset)) except: _err() abort(500)
def region_summary_api(chrom, start, stop): try: start, stop = int(start), int(stop) assert stop - start <= MAX_REGION_LENGTH intervalset = IntervalSet.from_chrom_start_stop(chrom, start, stop) return jsonify( lookups.get_summary_for_intervalset(get_db(), intervalset)) except: _err() abort(500)