I am also facing similar issue, I get error/warning as:
[E::bgzf_uncompress] Inflate operation failed: progress temporarily not possible, or in() / out() returned an error
[E::bgzf_read] Read block operation failed with error 1 after 0 of 4 bytes
[E::bgzf_uncompress] Inflate operation failed: progress temporarily not possible, or in() / out() returned an error
[E::bgzf_read] Read block operation failed with error 1 after 0 of 4 bytes
I verified following:
- "file 1.bam 2.bam" output was "gzip compressed data, extra field" and I am able to run "samtools view X.bam | tail" without errors.
- I recreated my BAMs with samtools 1.10 (which says to solve the problem of any truncated BAM) - however issue persists.
However, CNVkit (v 0.9.6) run was completed and I get the desired output files.
When I tried exactly same data, commands with CNVkit (v 0.9.7), I get above warning as well as CNVkit failed with message:
Segmenting with method 'cbs', significance threshold 1e-06, in 1 processes
Traceback (most recent call last):
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/skgenome/tabio/__init__.py", line 74, in read
dframe = reader(infile, **kwargs)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/skgenome/tabio/tab.py", line 17, in read_tab
dframe = pd.read_csv(infile, sep='\t', dtype={'chromosome': 'str'})
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/pandas/io/parsers.py", line 686, in read_csv
return _read(filepath_or_buffer, kwds)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/pandas/io/parsers.py", line 452, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/pandas/io/parsers.py", line 936, in __init__
self._make_engine(self.engine)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/pandas/io/parsers.py", line 1168, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/cnvkit-0.9.7/lib/python3.7/site-packages/pandas/io/parsers.py", line 1998, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 382, in pandas._libs.parsers.TextReader.__cinit__
File "pandas/_libs/parsers.pyx", line 674, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: [Errno 2] No such file or directory: '*.cns'
Somehow, (v 0.9.7) unable to generate "cns" files. Do you have any suggestions?
what is the output of
should be something like "bam version 1" or " gzip compressed data, extra field"
thanks for you answer. It says gzip compressed data, extra field