Question: Can'T Locate Vcf.Pm Vcftools
7
gravatar for Deniz
7.4 years ago by
Deniz200
Deniz200 wrote:

When I try this [vcftools_results]$ /home/X/vcftools_0.1.6/perl/vcf-validator sample1.flt.vcf.gz

it gives an error.

Can't locate Vcf.pm in @INC (@INC contains: /share/lib64/perl5/5.8.8 /share/lib64/perl5 /share/lib/perl5/5.10.0/x86_64-linux-thread-multi-ld /share/lib/perl5/5.10.0

/share/lib/perl5/5.8.8 /share/lib/perl5 /usr/lib/perl5/5.8.8 /usr/lib/perl5

/share/lib/perl5/5.10.0/x86_64-linux-thread-multi-ld /share/lib/perl5/5.10.0

/share/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi-ld

/share/lib/perl5/site_perl/5.10.0 /share/lib/perl5/site_perl/5.8.8

/share/lib/perl5/site_perl .) at /home/X/vcftools_0.1.6/perl/vcf-validator line 9.

BEGIN failed--compilation aborted at /home/X/vcftools_0.1.6/perl/vcf-validator line 9.

how can I fix it?

vcf vcftools • 22k views
ADD COMMENTlink modified 4.0 years ago by SmallChess480 • written 7.4 years ago by Deniz200

Thank you so much :)

ADD REPLYlink written 7.4 years ago by Deniz200
15
gravatar for Neilfws
7.4 years ago by
Neilfws48k
Sydney, Australia
Neilfws48k wrote:

I'm guessing that Vcf.pm is located somewhere under /home/X/vcftools_0.1.6/perl.

So the problem is that this is not a standard Perl library location (@INC) and Perl cannot find it.

Did you read the documentation? It contains this important piece of information:

For running the Perl scripts, the PERL5LIB environment variable must be set to include the Vcf.pm module

export PERL5LIB=/path/to/your/installation/perl
ADD COMMENTlink written 7.4 years ago by Neilfws48k

It worked, thanks.

ADD REPLYlink written 6.8 years ago by milena o0
7
gravatar for Pascal
7.4 years ago by
Pascal1.4k
Barcelona
Pascal1.4k wrote:

Hi Deniz

Have you set the environment variable PERL5LIB as it is defined in VCF Tools installation ?

It is as simple as calling:

export PERL5LIB=/path/to/your/installation/perl

Regards.

ADD COMMENTlink written 7.4 years ago by Pascal1.4k
1

oh! It looks neilfws has been 6 seconds faster than me to answer :-)

ADD REPLYlink written 7.4 years ago by Pascal1.4k

It worked, thanks.

ADD REPLYlink written 6.8 years ago by milena o0
5
gravatar for SmallChess
4.0 years ago by
SmallChess480
Australia
SmallChess480 wrote:

If you're using Mac. You can install the vcftool package by:

    brew install vcftools

Once installed, type

    brew info vcftools

and you'll see

    To use the Perl modules, make sure Vcf.pm, VcfStats.pm, and FaSlice.pm

    are included in your PERL5LIB environment variable:

        export PERL5LIB=/usr/local/lib/perl5/site_perl:${PERL5LIB}

 

 

ADD COMMENTlink modified 4.0 years ago • written 4.0 years ago by SmallChess480

In my case (Mac) I did not used brew, and I had to export the path for perl5 libs from the downloaded folder:

export PERL5LIB=/Users/xxxx/Softwares/vcftools-vcftools-2543f81/lib/perl5/site_perl/5.24.0/:${PERL5LIB}

ADD REPLYlink written 2.9 years ago by goubert.clement10

Thanks, that helped me. But now I have another error with this command "vcf-concat lakeforestpark3.vcf.gz saltlakecity1.vcf.gz": gunzip: saltlakecity1.vcf.gz: unexpected end of file Broken VCF header, no column names? at /usr/local/lib/perl5/site_perl/Vcf.pm line 172. Vcf::throw('Vcf4_2=HASH(0x7fb87b2cc3b0)', 'Broken VCF header, no column names?') called at /usr/local/lib/perl5/site_perl/Vcf.pm line 866 VcfReader::_read_column_names('Vcf4_2=HASH(0x7fb87b2cc3b0)') called at /usr/local/lib/perl5/site_perl/Vcf.pm line 601 VcfReader::parse_header('Vcf4_2=HASH(0x7fb87b2cc3b0)') called at /usr/local/bin/vcf-concat line 150 main::concat('HASH(0x7fb8798040c8)') called at /usr/local/bin/vcf-concat line 12

ADD REPLYlink modified 2.4 years ago • written 2.4 years ago by cristian220

Hi Did you try redirecting to an output file? i.e.: vcf-concat lakeforestpark3.vcf.gz saltlakecity1.vcf.gz | gzip > outputfilename.vcf.gz ?

ADD REPLYlink written 17 months ago by steph15pitts0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 942 users visited in the last hour