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

vcf2treemix.py output ===> input to Treemix #4

Open
Razi1026 opened this issue Sep 6, 2022 · 3 comments
Open

vcf2treemix.py output ===> input to Treemix #4

Razi1026 opened this issue Sep 6, 2022 · 3 comments

Comments

@Razi1026
Copy link

Razi1026 commented Sep 6, 2022

Hi,

I ran this:
python vcf2treemix.py -vcf file.vcf -pop poplist.txt

I got one output: "file.tmix"

head file.tmix
A B C D E F G
24,11 27,13 12,9 16,10 22,8 22,13 21,8
27,14 36,10 23,7 17,8 24,13 27,8 23,17

Now I am going to run treemix1.13 that need zip file and I simply zipped it:
gzip file.tmix ====> file.tmix.gz

then run treemix:
treemix -i input file.gz -o out

BUT, it doesn't work:

TreeMix v. 1.13
$Revision: 231 $
ERROR: input is not gzipped (only .gz files accepted)

I am not sure if this error is because of input or treemix error? (if I put wrong input name, again I get this error)

Would you please help me to run this? Thank you very much!

@StuntsPT
Copy link
Member

StuntsPT commented Sep 6, 2022

Hi @Razi1026 ,
I did not develop the script you are using, but let me try to help.
To make sure the compression went well, try to issue the following command:

zcat file.tmix.gz | head

If the resulting output is equal to the contents of the original file, then the compression went well, otherwise you may have some error with gzip.
Also, are you sure you are issuing the correct filename to treemix in your command? In your example you are missing .tmix. You may wish to double-check that, and alternatively, use the full path to the input file.
Hope this helps,

Francisco

@Razi1026
Copy link
Author

Razi1026 commented Sep 7, 2022

Hi @StuntsPT,

Thank you very much for your reply.

I checked the head of zipped file. Both was the same (before/after zip).

The commad which I ran is:
treemix -i input /path_to_file/file.tmix.gz -o out

again I got the same error:

TreeMix v. 1.13
$Revision: 231 $
ERROR: input is not gzipped (only .gz files accepted)

I have these outputs, but they are empty:

out.llik 
out.treeout.gz

I am not sure how can I solve this error!! I will be thankful if you have any idea to help. Thank you vey much.

I ran this and surprising, I didn't get error that: there is no input.
(I ran these both and got the same error about zip file!!!)

treemix -i input n.gz -o out  (here I don't have n.gz file)
treemix -i input 

@Razi1026 Razi1026 changed the title input to tree mix input to Treemix Sep 7, 2022
@Razi1026 Razi1026 changed the title input to Treemix vcf2treemix.py output ===> input to Treemix Sep 7, 2022
@StuntsPT
Copy link
Member

StuntsPT commented Sep 9, 2022

Ok, this is really wierd, and it is suggestive of an issue with your copy of treemix.
I'd recommend trying to use treemix with an example file that you are sure should work (if the original program does not have examples, try obtaining a working datafile from some paper that used it and made it available). You may also want to try different ways to install treemix (OS repository, conda, compile from source, etc...)

Best,
Francisco

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