pychopper icon indicating copy to clipboard operation
pychopper copied to clipboard

I get following error

Open FarmOmics opened this issue 3 years ago • 3 comments

Using kit: PCS109 Configurations to consider: "+:SSP,-VNP|-:VNP,-SSP" Traceback (most recent call last): File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/ec1f5938/bin/cdna_classifier.py", line 336, in nr_records = utils.count_fastq_records(args.input_fastx) File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/ec1f5938/lib/python3.6/site-packages/pychopper/utils.py", line 57, in count_fastq_records b = fh.read(size) File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/ec1f5938/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

FarmOmics avatar Apr 06 '21 16:04 FarmOmics

Hi and thanks for you message.

could you please post the full command you used to run pychopper here. Also which version of pychopper you are using.

Is it possible you tried to run pychopper with a zipped fastq file?

Thanks, Philipp

philres avatar Apr 12 '21 09:04 philres

Hi Thanks,

Just trying it with uncompressed fastq file, it works.

Thanks, Dailu

FarmOmics avatar Apr 12 '21 14:04 FarmOmics

If you run:

pip install git+https://github.com/nanoporetech/pychopper.git

you should get the latest version of pychopper that supports gzipped inputs.

Best, Philipp

philres avatar Apr 12 '21 14:04 philres