Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte #28

Open
mdAdnn opened this issue Sep 27, 2022 · 9 comments
Open

Comments

@mdAdnn
Copy link

mdAdnn commented Sep 27, 2022

Hi,

Im getting this error despite everything properly, such as WGS bam file.

python3 star_caller.py --manifest /media/sf_Shared/Cyrius-master/caller/tests/test_data/NA23275.bam --genome 37 --prefix cyr --outDir test_output

Traceback (most recent call last):

File "/media/sf_Shared/Cyrius-master/star_caller.py", line 562, in

main()

File "/media/sf_Shared/Cyrius-master/star_caller.py", line 513, in main

for line in read_manifest:

File "/home/adnan/anaconda3/lib/python3.9/codecs.py", line 322, 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

@xiao-chen-xc
Copy link
Contributor

Hi @mdAdnn

The manifest should be a text file where each line gives the path to a bam file.
Additionally, the test data included with the program is for unit testing. You will need a WGS bam file as input to the program.

Thanks,
Xiao

@mdAdnn
Copy link
Author

mdAdnn commented Sep 28, 2022

Hi,

I have WGS bam file. And also added the path in text file but I'm getting this error:

python3 star_caller.py --manifest '/media/sf_Shared/Cyrius-master/caller/tests/test_data/Path.txt' --genome 19 --prefix cyr --outDir test_output

WARNING:root:Input file for sample NA12878_hg19 does not exist.

INFO:root:Writing to json at 2022-09-28 19:24:37.329075

INFO:root:Writing to tsv at 2022-09-28 19:24:37.331685

@xiao-chen-xc
Copy link
Contributor

What's in your Path.txt? Does it contain the absolute path to your NA12878_hg19.bam?

@mdAdnn
Copy link
Author

mdAdnn commented Sep 29, 2022

yes

'/media/sf_Shared/Cyrius-master/NA12878_hg19.bam'

'/media/sf_Shared/Cyrius-master/NA12878_hg19.bam.bai'

now its showing the following error when I reistalled the file:
python star_caller.py --manifest '/media/sf_Shared/Cyrius-master/caller/tests/test_data/Path.txt' --genome 19 --prefix cyr --outDir test_output

WARNING:root:Input file for sample NA12878_hg19 does not exist.

WARNING:root:Input file for sample NA12878_hg19.bam does not exist.

INFO:root:Writing to json at 2022-09-29 13:04:01.454385

INFO:root:Writing to tsv at 2022-09-29 13:04:01.455826

@xiao-chen-xc
Copy link
Contributor

Could you remove the quotes and retry? Also, no need to have a line for the .bai file.

@mdAdnn
Copy link
Author

mdAdnn commented Oct 6, 2022

hi I got output file from someone else but when I'm runing the lmpgx code its showing the following error
python3 src/pgx.py -b BAM/CRAM -s NA18632 -o '/media/sf_Shared/PGx-master' -c lib/config.yml

Traceback (most recent call last):

File "/home/adnan/PGx-master/src/pgx.py", line 9, in

from discover_variants import _annotate_genotypes

File "/home/adnan/PGx-master/src/discover_variants.py", line 1, in

import vcf

File "/home/adnan/anaconda3/lib/python3.9/site-packages/vcf/init.py", line 166, in

from parser import Reader, Writer

ImportError: cannot import name 'Reader' from 'parser' (/home/adnan/anaconda3/lib/python3.9/lib-dynload/parser.cpython-39-x86_64-linux-gnu.so)

@xiao-chen-xc
Copy link
Contributor

Hi @mdAdnn this does not seem to be related to Cyrius. Please send this question to lmpgx authors. Thanks.

@mdAdnn
Copy link
Author

mdAdnn commented Oct 31, 2022

Hi,
what are the genes cyrius deals with? Like is it specifically for CYP2D6 and CYP2D7 or some other genes as well?

@xiao-chen-xc
Copy link
Contributor

Cyrius is a caller for CYP2D6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants