Open cflerin opened 3 years ago
Hello @cflerin I have across same error at scenic:SCENIC:VISUALIZE (1). Is there a solution to proceed from this step on the pipeline? or the output of the previous steps can be used for further analysis in r or python? Thanks GreyRock
Describe the bug With the SCENIC workflow and a loom input with non-standard cell and gene attribute names (
CellID
/Gene
) the workflow fails to complete.To Reproduce Steps to reproduce the behavior:
In [4]: lf.ra.keys() Out[4]: ['Gene_renamed']
nextflow pull vib-singlecell-nf/vsn-pipelines -r v0.23.0 nextflow config vib-singlecell-nf/vsn-pipelines -profile scenic,test__scenic,singularity > test_scenic.config
cell_id_attribute = 'CellID_renamed' gene_attribute = 'Gene_renamed'
nextflow -C test_scenic.config run vib-singlecell-nf/vsn-pipelines -entry scenic -r v0.23.0
N E X T F L O W ~ version 20.04.1 Launching
vib-singlecell-nf/vsn-pipelines
[cheesy_mcnulty] - revision: 0a585c246f [v0.23.0] WARN: It appears you have never run this project before -- Option-resume
is ignored WARN: DSL 2 IS AN EXPERIMENTAL FEATURE UNDER DEVELOPMENT -- SYNTAX MAY CHANGE IN FUTURE RELEASE executor > local (5) [27/feab5a] process > scenic:SCENIC:ARBORETO_WITH_MULTIPROCESSING (1) [100%] 1 of 1 ✔ executor > local (5) [27/feab5a] process > scenic:SCENIC:ARBORETO_WITH_MULTIPROCESSING (1) [100%] 1 of 1 ✔ executor > local (5) [27/feab5a] process > scenic:SCENIC:ARBORETO_WITH_MULTIPROCESSING (1) [100%] 1 of 1 ✔ [2d/a61d5c] process > scenic:SCENIC:ADD_PEARSON_CORRELATION (1) [100%] 1 of 1 ✔ [1c/7488bd] process > scenic:SCENIC:CISTARGETMOTIF (1) [100%] 1 of 1 ✔ [b3/7d308b] process > scenic:SCENIC:AUCELLMOTIF (1) [100%] 1 of 1 ✔ [0f/08d00c] process > scenic:SCENIC:VISUALIZE (1) [100%] 1 of 1, failed: 1 ✘ [- ] process > scenic:SCENIC:PUBLISH_LOOM - [- ] process > scenic:PUBLISH_SCENIC:COMPRESS_HDF5 - [- ] process > scenic:PUBLISH_SCENIC:SC__PUBLISH - [- ] process > scenic:PUBLISH_SCENIC:SC__PUBLISH_PROXY - WARN: To render the execution DAG in the required format it is required to install Graphviz -- See http://www.graphviz.org for more info. Error executing process > 'scenic:SCENIC:VISUALIZE (1)'Caused by: Process
scenic:SCENIC:VISUALIZE (1)
terminated with an error exit status (1)Command executed:
/user/leuven/325/vsc32528/.nextflow/assets/vib-singlecell-nf/vsn-pipelines/src/scenic/bin/add_visualization.py --loom_input scenic_CI__auc_mtf.loom --loom_output scenic_visualize.loom --num_workers 4
Command exit status: 1
Command output: (empty)
Command error: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/loompy/attribute_manager.py", line 115, in getattr vals = self.dict["storage"][name] KeyError: 'CellID'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/user/leuven/325/vsc32528/.nextflow/assets/vib-singlecell-nf/vsn-pipelines/src/scenic/bin/add_visualization.py", line 86, in
visualize_AUCell(args)
File "/user/leuven/325/vsc32528/.nextflow/assets/vib-singlecell-nf/vsn-pipelines/src/scenic/bin/add_visualization.py", line 53, in visualize_AUCell
auc_mtx = pd.DataFrame(lf.ca.RegulonsAUC, index=lf.ca.CellID)
File "/usr/local/lib/python3.7/site-packages/loompy/attribute_manager.py", line 123, in getattr
raise AttributeError(f"'{type(self)}' object has no attribute '{name}'")
AttributeError: '<class 'loompy.attribute_manager.AttributeManager'>' object has no attribute 'CellID'
Work dir: /ddn1/vol1/staging/leuven/stg_00002/lcb/cflerin/testruns/scenic-nf_testing/cellid_attr/work/0f/08d00c9f4029a57c19516d122be1a6
Tip: view the complete command output by changing to the process work dir and entering the command
cat .command.out