Closed alexlenail closed 1 year ago
Hi @alexlenail
That's unfortunate ...
I'll try to help troubleshoot the problem. I'm suspecting it has something to do with your TF-to-gene importance scores. Do you happen to have saved this dataframe to disk? If so, can you show the head of it and how many rows it contains?
Next, could you run the following piece of code please and share the output:
from arboreto.utils import load_tf_names
from arboreto.algo import _prepare_input
from arboreto.core import to_tf_matrix
gene_names = scplus_obj.gene_names
cell_names = scplus_obj.cell_names
ex_matrix = scplus_obj.X_EXP
tf_file = "<PATH_TO_YOUR_TF_FILE>"
tf_names = load_tf_names(tf_file)
ex_matrix, gene_names, tf_names = _prepare_input(
ex_matrix, gene_names, tf_names)
tf_matrix, tf_matrix_gene_names = to_tf_matrix(
ex_matrix, gene_names, tf_names)
Can you show:
ex_matrix
and
tf_matrix
All the best,
Seppe
Hi Seppe, I think I've solved this, by following the PBMC tutorial too closely -- I downloaded the list of human TFs, but my multi-ome data is from mouse. I made a list of mouse TFs instead and I believe this issue is now resolved.
Hi @alexlenail
Great to hear you were able to solve it.
All the best,
Seppe
run_scenicplus nearly runs to completion, but I'm getting an error near the very last step: