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

error in tools/generate_multihetsep.py #5

Closed
cxue opened this issue Oct 16, 2014 · 1 comment
Closed

error in tools/generate_multihetsep.py #5

cxue opened this issue Oct 16, 2014 · 1 comment

Comments

@cxue
Copy link

cxue commented Oct 16, 2014

I got an error in tools/generate_multihetsep.py:
[cxue@sug-esxa-login1 msmc]$ python3 msmc-master/tools/generate_multihetsep.py --mask vcfs/9D4.outmask.2.txt.gz vcfs/final.9D4.2.vcf.gz
generating msmc input file with 2 haplotypes
adding mask: vcfs/9D4.outmask.2.txt.gz
Traceback (most recent call last):
File "msmc-master/tools/generate_multihetsep.py", line 159, in
maskIterators.append(MaskIterator(f))
File "msmc-master/tools/generate_multihetsep.py", line 19, in init
self.readLine()
File "msmc-master/tools/generate_multihetsep.py", line 23, in readLine
line = next(self.file)
File "/hgsc_software/python/python-3.4.0/lib/python3.4/codecs.py", line 313, 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

Because mask file is a binary file, I don't know how to go on. Thanks.

@stschiff
Copy link
Owner

Hi,

are you sure the mask and the VCF really gzip-compressed? Which version of python are you using? You need python3.4 for this to work.

Stephan

Am 16.10.2014 um 14:36 schrieb cxue notifications@github.com:

I got an error in tools/generate_multihetsep.py:
[cxue@sug-esxa-login1 msmc]$ python3 msmc-master/tools/generate_multihetsep.py --mask vcfs/9D4.outmask.2.txt.gz vcfs/final.9D4.2.vcf.gz
generating msmc input file with 2 haplotypes
adding mask: vcfs/9D4.outmask.2.txt.gz
Traceback (most recent call last):
File "msmc-master/tools/generate_multihetsep.py", line 159, in
maskIterators.append(MaskIterator(f))
File "msmc-master/tools/generate_multihetsep.py", line 19, in init
self.readLine()
File "msmc-master/tools/generate_multihetsep.py", line 23, in readLine
line = next(self.file)
File "/hgsc_software/python/python-3.4.0/lib/python3.4/codecs.py", line 313, 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

Because mask file is a binary file, I don't know how to go on. Thanks.


Reply to this email directly or view it on GitHub.

@stschiff stschiff closed this as completed May 1, 2015
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