Open Achiraa opened 1 week ago
Hi, It looks like issue #561. It might be linked to your dask-expr version (1.1.16) ? Best
Thank you. Unfortunately, it didn't work for me. it raised another error.
TypeError: descriptor 'call' for 'type' objects doesn't apply to a 'property' object
TypeError: Must supply at least one delayed object
Input matrix
Code 1. Command run when the error occurred: import os import glob import pickle import pyscenic import pandas as pd import numpy as np import seaborn as sns import dask.dataframe as dd
from dask.diagnostics import ProgressBar
from arboreto.utils import load_tf_names from arboreto.algo import grnboost2
from ctxcore.rnkdb import FeatherRankingDatabase as RankingDatabase from pyscenic.utils import modules_from_adjacencies, load_motifs from pyscenic.prune import prune2df, df2regulons from pyscenic.aucell import aucell
DATA_FOLDER="C:/Users/S236282/Desktop/Itaconate data/pySCENIC" RESOURCES_FOLDER="C:/Users/S236282/Desktop/Itaconate data/pySCENIC" DATABASE_FOLDER = "C:/Users/S236282/Desktop/Itaconate data/pySCENIC"
DATABASES_GLOB = os.path.join(DATAFOLDER, "mm10*.genes_vs_motifs.rankings.feather") MOTIF_ANNOTATIONS_FNAME = os.path.join(RESOURCES_FOLDER, "motifs-v10nr_clustnr_mgi.tbl")
MM_TFS_FNAME = os.path.join(RESOURCES_FOLDER, 'allTFs_mm.txt') SC_EXP_FNAME = os.path.join(RESOURCES_FOLDER, "Expression_data.txt")
ADJACENCIES_FNAME = os.path.join(RESOURCES_FOLDER, "adjacencies.tsv") MODULES_FNAME = os.path.join(RESOURCES_FOLDER, "modules.p") MOTIFS_FNAME = os.path.join(RESOURCES_FOLDER, "motifs.csv") REGULONS_FNAME = os.path.join(RESOURCES_FOLDER, "regulons.p")
N_SAMPLES = 500
ex_matrix = pd.read_csv(SC_EXP_FNAME, sep='\t', header=0, index_col=0).T ex_matrix.head() ex_matrix.shape
tf_name = load_tf_names(MM_TFS_FNAME)
db_fnames = glob.glob(DATABASES_GLOB)
def name(fname): return os.path.splitext(os.path.basename(fname))[0]
dbs = [RankingDatabase(fname=fname, name=name(fname)) for fname in db_fnames] dbs
filtered_tf_name = list(intersection)
adjacencies = grnboost2(expression_data=ex_matrix, tf_names= tf_name, verbose=True) adjancencies.head()
2. Error encountered:
Expected behavior A clear and concise description of what you expected to happen.
Please complete the following information: