maom's picture
unpack DatasetDict
b18f058 verified
raw
history blame
540 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_coexp_hits": "top_coexp_hits.tsv"})
top_coexp_hits = top_coexp_hits["top_coexp_hits"].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)