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

mutyper targets can't handle compressed bed files #26

Open
ab08028 opened this issue Jun 9, 2021 · 0 comments
Open

mutyper targets can't handle compressed bed files #26

ab08028 opened this issue Jun 9, 2021 · 0 comments

Comments

@ab08028
Copy link

ab08028 commented Jun 9, 2021

Hi there! I have run into a minor annoying thing which is that it seems like mutyper targets can't accept gzipped/bgzipped bed files in the --bed section. I get the following error:

Traceback (most recent call last):
File "/net/harris/vol1/home/beichman/.local/bin/mutyper", line 8, in
sys.exit(main())
File "/net/harris/vol1/home/beichman/.local/lib/python3.7/site-packages/mutyper/cli.py", line 336, in main
args.func(args)
File "/net/harris/vol1/home/beichman/.local/lib/python3.7/site-packages/mutyper/cli.py", line 152, in targets
sizes = ancestor.targets(args.bed)
File "/net/harris/vol1/home/beichman/.local/lib/python3.7/site-packages/mutyper/ancestor.py", line 167, in targets
for line in bed:
File "/net/gs/vol3/software/modules-sw/python/3.7.7/Linux/CentOS7/x86_64/lib/python3.7/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

It's not a huge deal (can just unzip the bed) but since some of the beds I'm working with are very large it would be a nice feature to be able to accept a bed.gz file the way bcftools does, if possible! :) (I've confirmed that bcftools view -R *.bed.gz works so it doesn't seem to be a bed file formatting issue)

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

1 participant