Skip to content

FileNotFoundError: [Errno 2] No such file or directory: 'chr1_cell_population_TF_RE_binding.txt' #49

Description

@jessicaliu09

Hi,

I'm using version 1.96, and has the problem as following when running the PBMC tutorial:

LL_net.cell_type_specific_TF_RE_binding(GRNdir,adata_RNA,adata_ATAC,genome,celltype,outdir,method)# different from the previous version
0%| | 0/23 [00:00<?, ?it/s]
Traceback (most recent call last):
File "", line 1, in
File "/LINGER/lib/python3.10/site-packages/LingerGRN/LL_net.py", line 517, in cell_type_specific_TF_RE_binding
mat=pd.read_csv(outdir+chrN+'_cell_population_TF_RE_binding.txt',sep='\t',index_col=0,header=0)
File "/LINGER/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv
return _read(filepath_or_buffer, kwds)
File "/LINGER/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 577, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/LINGER/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1407, in init
self._engine = self._make_engine(f, self.engine)
File "/LINGER/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1661, in _make_engine
self.handles = get_handle(
File "/LINGER/lib/python3.10/site-packages/pandas/io/common.py", line 859, in get_handle
handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'chr1_cell_population_TF_RE_binding.txt'

This error I think is from this step:

LL_net.TF_RE_binding(GRNdir,adata_RNA,adata_ATAC,genome,method,outdir)
Generating cellular population TF binding strength ...
0%| | 0/23 [00:00<?, ?it/s]
100%|███████████████████████████████████████████| 23/23 [00:34<00:00, 1.52s/it]
Generating cellular population TF binding strength for chrX

Only chrX file was generated, but not for other chromosomes, can you help solve this problem, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions