# Path: chanjo_report/server/extensions.py



import logging
from chanjo.store.models import Sample, Transcript
from flask import Blueprint, render_template
from chanjo_report.server.extensions import api
# -*- coding: utf-8 -*-



logger = logging.getLogger(__name__)
index_bp = Blueprint('index', __name__, template_folder='templates',
                     static_folder='static', static_url_path='/static/index')


@index_bp.route('/')
def index():
    sample_objs = api.query(Sample).limit(20)

# Path: chanjo_report/server/extensions.py



# Path: chanjo_report/server/blueprints/index/views.py
import logging
from chanjo.store.models import Sample, Transcript
from flask import Blueprint, render_template
from chanjo_report.server.extensions import api

# -*- coding: utf-8 -*-



logger = logging.getLogger(__name__)
index_bp = Blueprint('index', __name__, template_folder='templates',
                     static_folder='static', static_url_path='/static/index')


@index_bp.route('/')
def index():
    sample_objs = api.query(Sample).limit(20)

    tx_models = api.query(Transcript).distinct(Transcript.gene_id).limit(20)