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

names.filelist #8

Open
SashaNikolaevaBerkeley opened this issue Sep 19, 2022 · 2 comments
Open

names.filelist #8

SashaNikolaevaBerkeley opened this issue Sep 19, 2022 · 2 comments

Comments

@SashaNikolaevaBerkeley
Copy link

I've been trying to calculate genotype likelihoods on a test file (30gb), but I keep getting this error:

python3 Genotype_Likelihoods.py output.file.mpileup
Seed is not set.
Default ploidy levels to be tested in analysis are: [1, 2, 3, 4, 5, 6]
utg000001l 235 T 2 ^).^&. EE )& file is not supported. Supported file types are '.mpileup', '.mpileup.gz' and '.bam'.

I've tried with both .mpileup file and with .bam file. For the .bam the traceback is as follows:

Seed is not set.
Default ploidy levels to be tested in analysis are: [1, 2, 3, 4, 5, 6]
Traceback (most recent call last):
File "/Users/sashanikolaeva/Desktop/HMMploidy-master/Genotype_Likelihoods.py", line 73, in
line = line.decode().strip('\n') # convert bytes into strings
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

I assume it must be an issue with my file, but I have no idea what it might be. My other guess was that maybe it is because I am giving it an individual file and not names.filelist?

Any suggestions?

Thank you!

@SamueleSoraggi
Copy link
Owner

SamueleSoraggi commented Sep 20, 2022 via email

@SashaNikolaevaBerkeley
Copy link
Author

SashaNikolaevaBerkeley commented Sep 21, 2022

That didn't help, unfortunately. I created a text file with just one line, which is my output.file.mpileup file, but it still says that the format is not supported. I am on Mac M1, for reference. I've had some issues running code on my computer, but file formats were usually fine.

Ok, I figured that the mpileup file had to be in the same folder as the HMMploidy script in order for it to run properly. It didn't like that I put the entire address of the file into names.filelist (I had the file in a separate folder and provided the address in the names.filelist).

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