Skip to content

An error occurred while generating random regions. #14

Description

@jinqiyuan1
  • Does this software have any other requirements for BAM files? I provided the sorted BAM file for running, and the command is as follows:
    python /public/home/yjq/tools/cfDNA_GCcorrection/cfDNA_GCcorrection/computeGCBias_background.py
    -b /public/home/yjq/projects/PA_projects/data/NBT_WGS/bamfilter/SRR17478154_filter.sorted.bam
    -g /public/home/yjq/genome_anno/hg19/hg19_UCSC.2bit
    -p 2
    -i
    --output /public/home/yjq/projects/PA_projects/data/NBT_WGS/GC_correction/background/
    --debug

  • The following error occurs:
    Traceback (most recent call last):
    File "/public/home/yjq/tools/cfDNA_GCcorrection/cfDNA_GCcorrection/computeGCBias_background.py", line 596, in
    main()
    File "/public/home/yjq/.local/lib/python3.8/site-packages/click/core.py", line 1161, in call
    return self.main(*args, **kwargs)
    File "/public/home/yjq/.local/lib/python3.8/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
    File "/public/home/yjq/.local/lib/python3.8/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/public/home/yjq/.local/lib/python3.8/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
    File "/public/home/yjq/tools/cfDNA_GCcorrection/cfDNA_GCcorrection/computeGCBias_background.py", line 549, in main
    regions = get_regions(
    File "/public/home/yjq/tools/cfDNA_GCcorrection/cfDNA_GCcorrection/computeGCBias_background.py", line 125, in get_regions
    random_regions.to_dataframe(
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pybedtools/bedtool.py", line 3762, in to_dataframe
    return pandas.read_csv(self.fn, *args, sep="\t", **kwargs) # type: ignore
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv
    return _read(filepath_or_buffer, kwds)
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 577, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1407, in init
    self._engine = self._make_engine(f, self.engine)
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1679, in _make_engine
    return mapping[engine](f, **self.options)
    File "/public/home/yjq/miniconda3/envs/celfeer_env/lib/python3.8/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in init
    self._reader = parsers.TextReader(src, **kwds)
    File "pandas/_libs/parsers.pyx", line 557, in pandas._libs.parsers.TextReader.cinit
    pandas.errors.EmptyDataError: No columns to parse from file.

  • I am sure that I have successfully installed pandas and pybedtools. My deeptools version is 3.5.5, pandas version is 2.0.3, bedtools version is v2.31.1, pybedtools version is 0.11.0, and the Python version is 3.8.19.

Metadata

Metadata

Assignees

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