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

imp5Converter Output file format is not supported #48

Open
jiang53peng opened this issue Apr 9, 2024 · 9 comments
Open

imp5Converter Output file format is not supported #48

jiang53peng opened this issue Apr 9, 2024 · 9 comments

Comments

@jiang53peng
Copy link

Hi there,
I've recently encountered an issue while trying to download resources for GRCh37 while follow the installation steps. When running the imp5Converter command to convert BCF files. I encountered the following error message: "Output file format is not supported". Here is the command I used: "for chr in {{1..22},X}; do imp5Converter --h $pfx$chr$sfx.bcf --o $pfx$chr$sfx --r $chr; done". Could you offer any help or guidance on this matter?
Thank you in advance for your time and assistance.

@Yanranli007
Copy link

I have the same problem, pfx="ALL.chr"
sfx=".phase3_integrated.20130502.genotypes"

for chr in {{1..22},X}; do
$imp5Converter_PATH --h $WORK37/$pfx$chr$sfx.bcf --o $WORK37/$pfx$chr$sfx.imp5 --r $chr
done

When I add the imp5, it works, I think you can have a try.

@freeseek
Copy link
Owner

freeseek commented Apr 9, 2024

I realized this is legacy code from version 1.1.5 of IMPUTE5. With the newer 1.2.0 version the imp5Converter bianry should be replaced by the xcftools binary and the code should be as follows:

for chr in {{1..22},X}; do xcftools view --input $pfx$chr$sfx.bcf --region $chr --maf .03125 --output $pfx$chr$sfx.xcf.bcf --format sh; done

This will be fixed in the documentation in the next update

@jiang53peng
Copy link
Author

I have the same problem, pfx="ALL.chr" sfx=".phase3_integrated.20130502.genotypes"

for chr in {{1..22},X}; do $imp5Converter_PATH --h $WORK37/$pfx$chr$sfx.bcf --o $WORK37/$pfx$chr$sfx.imp5 --r $chr done

When I add the imp5, it works, I think you can have a try.

Thank you for your advice, it works after add .imp5 when i dealing with GRCh37, then i update IMPUTE5 to version 1.2.0 and use the code the freeseek provide while dealing with GRCh38, and it can also worked.

@jiang53peng
Copy link
Author

I realized this is legacy code from version 1.1.5 of IMPUTE5. With the newer 1.2.0 version the imp5Converter bianry should be replaced by the xcftools binary and the code should be as follows:

for chr in {{1..22},X}; do xcftools view --input $pfx$chr$sfx.bcf --region $chr --maf .03125 --output $pfx$chr$sfx.xcf.bcf --format sh; done

This will be fixed in the documentation in the next update

Thank you for your help, the adjusted code works and helps me a lot.

@Yanranli007
Copy link

I have the same problem, pfx="ALL.chr" sfx=".phase3_integrated.20130502.genotypes"
for chr in {{1..22},X}; do $imp5Converter_PATH --h $WORK37/$pfx$chr$sfx.bcf --o $WORK37/$pfx$chr$sfx.imp5 --r $chr done
When I add the imp5, it works, I think you can have a try.

Thank you for your advice, it works after add .imp5 when i dealing with GRCh37, then i update IMPUTE5 to version 1.2.0 and use the code the freeseek provide while dealing with GRCh38, and it can also worked.

Thanks for your response, I follow your freeseek and your suggestion, it worked

@Yanranli007
Copy link

I realized this is legacy code from version 1.1.5 of IMPUTE5. With the newer 1.2.0 version the imp5Converter bianry should be replaced by the xcftools binary and the code should be as follows:

for chr in {{1..22},X}; do xcftools view --input $pfx$chr$sfx.bcf --region $chr --maf .03125 --output $pfx$chr$sfx.xcf.bcf --format sh; done

This will be fixed in the documentation in the next update

A quick question, why the maf is setting .03125? Thank you in advance.

@freeseek
Copy link
Owner

The value .03125 is simply 1/32 and it is what is advised in the IMPUTE5 v1.2.0 documentation

@beetlejuice007
Copy link

from where can i get binaries for xcftools ? I have tried downloading from here https://anaconda.org/bioconda/xcftools/files.

$ tar -xvjf xcftools-1.0.7-1.tar.bz2

info/index.json
info/files
info/has_prefix
info/paths.json
info/about.json
info/recipe/build.sh
info/recipe/meta.yaml.template
info/recipe/meta.yaml
share/man/da/man1/xcfinfo.1
share/man/man1/xcfinfo.1
bin/xcfview
share/man/man1/xcfview.1
share/man/da/man1/xcfview.1
share/man/man1/xcf2png.1
share/man/da/man1/xcf2png.1
share/locale/da/LC_MESSAGES/xcftools.mo
share/man/man1/xcf2pnm.1
share/man/da/man1/xcf2pnm.1
bin/xcfinfo
bin/xcf2pnm
bin/xcf2png

but there is no configure or xcftools file here. Can someone please help. Thanks.

@freeseek
Copy link
Owner

Here or here you can find a copy of the xcftools binary

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

4 participants