Spaces:
Sleeping
Sleeping
Commit
•
645eabc
1
Parent(s):
e760bd6
chore: Clean up debugging statements
Browse files- predict_chromosome.py +3 -5
predict_chromosome.py
CHANGED
@@ -137,15 +137,14 @@ def predict_and_write(
|
|
137 |
names=["chr", "start", "end", "anchor"],
|
138 |
) # read anchor list file
|
139 |
start_time = time.time()
|
140 |
-
logger.
|
141 |
-
logger.
|
142 |
chr_anchor_file = pd.read_csv(
|
143 |
os.path.join(full_matrix_dir, input_name),
|
144 |
delimiter="\t",
|
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
|
@@ -176,8 +175,7 @@ def predict_and_write(
|
|
176 |
cols = np.vectorize(anchor_to_locus(anchor_dict))(
|
177 |
chr_tile["anchor2"].values
|
178 |
) # convert anchor names to column indices
|
179 |
-
logger.
|
180 |
-
st.dataframe(chr_tile)
|
181 |
sparse_matrix = csr_matrix(
|
182 |
(chr_tile["ratio"], (rows, cols)),
|
183 |
shape=(anchor_step, anchor_step),
|
|
|
137 |
names=["chr", "start", "end", "anchor"],
|
138 |
) # read anchor list file
|
139 |
start_time = time.time()
|
140 |
+
logger.debug("anchor file")
|
141 |
+
logger.debug(os.path.join(full_matrix_dir, input_name))
|
142 |
chr_anchor_file = pd.read_csv(
|
143 |
os.path.join(full_matrix_dir, input_name),
|
144 |
delimiter="\t",
|
145 |
names=["anchor1", "anchor2"] + val_cols,
|
146 |
usecols=["anchor1", "anchor2"] + val_cols,
|
147 |
) # read chromosome anchor to anchor file
|
|
|
148 |
if "obs" in val_cols and "exp" in val_cols:
|
149 |
chr_anchor_file["ratio"] = (chr_anchor_file["obs"] + dummy) / (
|
150 |
chr_anchor_file["exp"] + dummy
|
|
|
175 |
cols = np.vectorize(anchor_to_locus(anchor_dict))(
|
176 |
chr_tile["anchor2"].values
|
177 |
) # convert anchor names to column indices
|
178 |
+
logger.debug(chr_tile)
|
|
|
179 |
sparse_matrix = csr_matrix(
|
180 |
(chr_tile["ratio"], (rows, cols)),
|
181 |
shape=(anchor_step, anchor_step),
|