This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Opening Vcf File With Vcftools

Hi I just installed vcftools and I'm trying to get acquainted with it. However, I can't seem to open a file!

1 Is there something obviously wrong in the command line below?

**dhcp025000:~/Desktop/vcftools_0.1.6/cpp J888$ ./vcftools --vcf CEU.low_coverage.2010_07.genotypes.vcf

Error:Could not open VCF file: CEU.low_coverage.2010_07.genotypes.vcf**

2 Also, is there a way to run vcftools from bash without having to invoke the executable in each command? For example ./vcftools command

Many thanks in advance

vcftools vcf bash command-line

on ~/.bashrc, add a line like this: alias commandX="/path/to/vcftools commandx"

1 answer

Hi,

for the second issue: You should get in touch wie these two file "~/.bashrc" and "~/.bash_profile". Sometimes it depends on your distribution, but these are the files to set environment variables. If it's getting more complex, create an alias.

with best

Log in to answer this question.