SCENICprotocol
SCENICprotocol copied to clipboard
Question about the input of `pyscenic ctx`
Hi,
Could you please give a further instructions on the database_fname of pyscenic ctx
, as I encountered an error when use following command base on the turtorial
pyscenic ctx adj.csv \
test*.feather \
--annotations_fname CIS_BP.tbl \
--expression_mtx_fname CIM7D.loom\
--output reg.csv \
--mask_dropouts \
--num_workers 20
ls test*.feather
test.motifs_vs_regions.rankings.feather test.motifs_vs_regions.scores.feather
test.regions_vs_motifs.rankings.feather test.regions_vs_motifs.scores.feather
The feather files were generated according the instruction in https://github.com/aertslab/create_cisTarget_databases
The following was the error I encountered
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pyscenic/transform.py", line 301, in modules2df
[module2df(db, module, motif_annotations, weighted_recovery, False, module2features_func) for module in modules]
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pyscenic/transform.py", line 301, in <listcomp>
[module2df(db, module, motif_annotations, weighted_recovery, False, module2features_func) for module in modules]
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pyscenic/transform.py", line 231, in module2df
db, module, motif_annotations, weighted_recovery=weighted_recovery
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pyscenic/transform.py", line 152, in module2features_auc1st_impl
df = db.load(module)
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/ctxcore/rnkdb.py", line 327, in load
df.set_index(self._index_name, inplace=True)
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(args, **kwargs)
File "/home/xxx/miniconda3/envs/pyscenic/lib/python3.7/site-packages/pandas/core/frame.py", line 5451, in set_index
raise KeyError(f"None of {missing} are in the columns")
KeyError: "None of ['features'] are in the columns"