maom's picture
show_top_hits for gene
f67eeb9 verified
raw
history blame
469 Bytes
import datasets
import streamlit as st
import numpy as np
import pandas as pd
import altair as alt
top_coexp_hits = datasets.load_dataset(
path = "maomlab/CryptoCEN",
data_files = "top_coex_hits.tsv").to_pandas()
gene_id = st.text_input(
label = "Gene 1",
value = "CNAG_04365-t26_1",
max_chars = 16,
help = "CNAG Gene ID e.g. CNAG_04365-t26_1")
top_coexp_hits = top_coexp_hits[top_coexp_hits.cnag_id_1 == gene_id]
st.table(top_coexp_hits)