problem with installing and running bcftools
1
0
Entering edit mode
4.2 years ago
rotemkat ▴ 10

I tried to follow the instructions here: https://samtools.github.io/bcftools/ being in the following path - /Users/my_username - i followed the commands and indeed now i have the bcftools folder.

Then, I want to filter my VCF file, so I did the following: (based on the instructions here: https://samtools.github.io/bcftools/howtos/variant-calling.html)

cd bcftools

bcftools filter -i'%contig==1' path_to_my_file/my_file.VCF | bcftools stats | grep TSTV

but i get the following error:
-bash: bcftools: command not found

what am I doing wrong?...

Thanks !!!

bcftools vcf • 3.0k views
ADD COMMENT
3
Entering edit mode

its a classical PATH problem: http://www.linfo.org/path_env_var.html

./bcftools filter
ADD REPLY
0
Entering edit mode

I still get multiple errors =/

$ ./bcftools filter -i 'CHROM==1' /path/file.vcf | bcftools stats | grep TSTV

-bash: bcftools: command not found
[W::vcf_parse] Contig '1' is not defined in the header. (Quick workaround: index the file with tabix.)
Error: cannot use arithmetic operators to compare strings and numbers
ADD REPLY
0
Entering edit mode

I don't think you read the link above about what is a PATH.

$ ./bcftools filter -i 'CHROM==1' /path/file.vcf | ./bcftools stats | grep TSTV
ADD REPLY
0
Entering edit mode
4.2 years ago
onestop_data ▴ 330

Alternatively, you could use Bioconda and install it in your os path.

ADD COMMENT

Login before adding your answer.

Traffic: 1556 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6