Closed bhhlee closed 10 months ago
hello, I met the same error when I set n_cpu=1 in 'export_pseudobulk', yet this error wouldn't generate when I set n_cpu=5, which cant export 'bed/bw.gz files' correctly. I noticed the solution mentioned in sceniclus issue that modified the 'pseudobulk_peak_calling.py' (https://github.com/aertslab/scenicplus/issues/277). But I don't quite understand it, can you generously explain the specific operation method? @SeppeDeWinter
Hi @bhhlee and @GGboy-Zzz
I just merged some changes that should fix this issue, see https://github.com/aertslab/pycisTopic/commit/1afbd1d71dd9caf2f8f53d4c752240089b182bc9.
Can you try to rerun the code to see wether the issue is indeed fixed for you?
All the best,
Seppe
Hi @SeppeDeWinter,
I was having a similar problem, but when I installed pycisTopic using commit 1afbd1d
the following error appeared when loading the export_pseudobulk function:
Command:
from pycisTopic.pseudobulk_peak_calling import export_pseudobulk
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/cao385/envs/scenicplus/lib/python3.8/site-packages/pycisTopic/pseudobulk_peak_calling.py", line 16, in <module>
from scatac_fragment_tools.library.bigwig.fragments_to_bigwig import (
File "/home/cao385/envs/scenicplus/lib/python3.8/site-packages/scatac_fragment_tools/library/bigwig/fragments_to_bigwig.py", line 31, in <module>
def normalise_filepath(path: str | Path, check_not_directory: bool = True) -> str:
TypeError: unsupported operand type(s) for |: 'type' and 'type'
Thanks for your help! Carlos
Hi @cbiagii
This commit https://github.com/aertslab/scatac_fragment_tools/commit/5a3f5383d0b681ee1a407cc0053c4b109f9881ba should fix the issue.
The issue is related to the type annotations we used, which are only supported by newer versions of python. Now you should also be able to import the code using python version 3.8.
All the best,
Seppe
First of all thank you for making such a great tool. I am using export_pseudobulk on my scATACseq data from my multiome dataset (multiple samples). For most of the annotated cell types, I am getting an error where 'DataFrame' object has no attribute 'chromosomes'
Error:
For some additional context, I tried testing export_pseudobulk on a single sample from the dataset, which at first gave the same attribute error, but after running it again, the error went away. However, it is not going away for the multiple sample whole dataset.
I am running: pycistopic 1.0.3.dev21+ge9b0e1a python 3.8.18
Any help would be greatly appreciated!