-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hey!
Describe the bug
I get a polars.exceptions.ColumnNotFoundError: CB error when running the pycistopic qc
. I tried it both with my own data but also the provided tutorial with the same outcome.
To Reproduce
the code that throws the error is the following
!pycistopic qc \
--fragments data/fragments.tsv.gz \
--regions outs/consensus_peak_calling/consensus_regions.bed \
--tss outs/qc/tss.bed \
--output outs/qc/10x_multiome_brain
I run pycistopic on a cluster with an environment that i specifically created for it, following the tutorial code.
so i call pycistopic qc from that environment path directly
Error output
Traceback (most recent call last):
File "/cfs/klemming/projects/snic/naiss2024-23-187/python/pycistopic/bin/pycistopic", line 8, in <module>
sys.exit(main())
^^^^^^
File "/cfs/klemming/projects/supr/naiss2024-23-187/python/pycistopic/pycisTopic/src/pycisTopic/cli/pycistopic.py", line 26, in main
args.func(args)
File "/cfs/klemming/projects/supr/naiss2024-23-187/python/pycistopic/pycisTopic/src/pycisTopic/cli/subcommand/qc.py", line 233, in run_qc
qc(
File "/cfs/klemming/projects/supr/naiss2024-23-187/python/pycistopic/pycisTopic/src/pycisTopic/cli/subcommand/qc.py", line 144, in qc
) = compute_qc_stats(
^^^^^^^^^^^^^^^^^
File "/cfs/klemming/projects/supr/naiss2024-23-187/python/pycistopic/pycisTopic/src/pycisTopic/qc.py", line 569, in compute_qc_stats
.collect()
^^^^^^^^^
File "/cfs/klemming/projects/snic/naiss2024-23-187/python/pycistopic/lib/python3.11/site-packages/polars/_utils/deprecation.py", line 97, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cfs/klemming/projects/snic/naiss2024-23-187/python/pycistopic/lib/python3.11/site-packages/polars/lazyframe/opt_flags.py", line 331, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cfs/klemming/projects/snic/naiss2024-23-187/python/pycistopic/lib/python3.11/site-packages/polars/lazyframe/frame.py", line 2300, in collect
return wrap_df(ldf.collect(engine, callback))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
polars.exceptions.ColumnNotFoundError: CB
Resolved plan until failure:
---> FAILED HERE RESOLVING 'sink' <---
DF ["by", "total_fragments_in_peaks_count", "unique_fragments_in_peaks_count"]; PROJECT */3 COLUMNS
Version
-python 3.11
-pycisTopic 2.0a0
-polars 1.30.0
Additional context
Since i got the same error with my data & the tutorial data i am just wondering if its a version issue or has to do with polars.
Let me know if you need more info
I would be happy for any help!
Jonas
Metadata
Metadata
Assignees
Labels
No labels