edmundmiller commited on
Commit
6d3ad97
·
unverified ·
1 Parent(s): ead4a32

Maybe they'll be printed?

Browse files
Files changed (1) hide show
  1. predict_chromosome.py +3 -0
predict_chromosome.py CHANGED
@@ -8,6 +8,7 @@ import time
8
  from tqdm import tqdm
9
  from tensorflow.keras.models import model_from_json
10
  from scipy.sparse import csr_matrix, triu
 
11
 
12
  logger = getLogger(__name__)
13
 
@@ -144,6 +145,7 @@ def predict_and_write(
144
  names=["anchor1", "anchor2"] + val_cols,
145
  usecols=["anchor1", "anchor2"] + val_cols,
146
  ) # read chromosome anchor to anchor file
 
147
  if "obs" in val_cols and "exp" in val_cols:
148
  chr_anchor_file["ratio"] = (chr_anchor_file["obs"] + dummy) / (
149
  chr_anchor_file["exp"] + dummy
@@ -175,6 +177,7 @@ def predict_and_write(
175
  chr_tile["anchor2"].values
176
  ) # convert anchor names to column indices
177
  logger.info(chr_tile)
 
178
  sparse_matrix = csr_matrix(
179
  (chr_tile["ratio"], (rows, cols)),
180
  shape=(anchor_step, anchor_step),
 
8
  from tqdm import tqdm
9
  from tensorflow.keras.models import model_from_json
10
  from scipy.sparse import csr_matrix, triu
11
+ import streamlit as st
12
 
13
  logger = getLogger(__name__)
14
 
 
145
  names=["anchor1", "anchor2"] + val_cols,
146
  usecols=["anchor1", "anchor2"] + val_cols,
147
  ) # read chromosome anchor to anchor file
148
+ st.dataframe(chr_anchor_file)
149
  if "obs" in val_cols and "exp" in val_cols:
150
  chr_anchor_file["ratio"] = (chr_anchor_file["obs"] + dummy) / (
151
  chr_anchor_file["exp"] + dummy
 
177
  chr_tile["anchor2"].values
178
  ) # convert anchor names to column indices
179
  logger.info(chr_tile)
180
+ st.dataframe(chr_tile)
181
  sparse_matrix = csr_matrix(
182
  (chr_tile["ratio"], (rows, cols)),
183
  shape=(anchor_step, anchor_step),