Vcftools, Command Not Found !
5
0
Entering edit mode
12.3 years ago
Nasrin ▴ 30

Hi all, i have a problem with vcftools. I have installed it using make command but when trying to use commands like vcf-subset, an error says that "command vcf-subse not found"! I really don't know whats the problem!

thanks in advance for any advice

vcftools • 9.1k views
ADD COMMENT
0
Entering edit mode

you wrote that you are using Ubuntu. Why don't you just install vcftools from the repository?

ADD REPLY
2
Entering edit mode
12.3 years ago

My guess: you ran make. The next step is to use the installation rules in the makefile to move the newly built binaries to a system directory. For this you should run sudo mv /path/to/binaries/* /usr/local/bin/. Then make sure /usr/local/bin is in your PATH environment variable: echo $PATH. This is based on the vcf-tools documentation.

ADD COMMENT
1
Entering edit mode
12.3 years ago
Johan ▴ 890

If "command vcf-subse not found" was the exact message, it's probably a typo - try vcf-subset.

ADD COMMENT
0
Entering edit mode

actually I typed it wrong. the error is "command vcf-subset not found".

ADD REPLY
1
Entering edit mode
12.3 years ago
bioinfo ▴ 840

I guess you have to export the vcf.pm path before using the Vcf-subset function in vcftools.

export PERL5LIB=/your-path-to-vcftools/perl
ADD COMMENT
1
Entering edit mode

This should only be necessary if you are installing to an non-system path.

ADD REPLY
0
Entering edit mode
12.3 years ago
Nasrin ▴ 30

I tested all of these ways above. but it does not work and still an error says "command not found". I work with Ubuntu 64-bit on VMware workstation. in vcftools documentation it has said that :

The tools can be tested by running the script

/path/to/your/installation/perl/test.t

I ran that and got this message:

Can't locate Test/Most.pm in @INC (@INC contains: /home/ali/Documents/vcftools_0.1.9/perl /perl /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./perl/test.t line 17.
BEGIN failed--compilation aborted at ./perl/test.t line 17.
ADD COMMENT
0
Entering edit mode
12.3 years ago
bioinfo ▴ 840

Now I m sure you have the problems with the path. The path for exporting the vcf.pm need to be absolute. Check out the problem below.

http://www.biostars.org/post/show/51239/why-vcftools-commands-not-working/#51242

ADD COMMENT
0
Entering edit mode

thank you. it worked. the problem was the relative paths when i changed them to absolute paths, vcftools started running well.

ADD REPLY

Login before adding your answer.

Traffic: 2206 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