Dear all,
how can I install the plugin vcf2bed in ubuntu?
BCFtools was installed with sudo apt-get install bedtools
and I followed the instructions here thus I copied the file vcf2bed.c
into /usr/local/bcftools/plugins
and run sudo make
but the error was make: *** No targets specified and no makefile found. Stop.
and this make sense because vcf2bed.c
is a C file not a make file. Thus I tried with gcc but I got: `
$ sudo gcc vcf2bed.c -o vcf2bed.so
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc5WNHDB.o: In function `process':
vcf2bed.c:(.text+0x82): undefined reference to `bcf_unpack'
collect2: error: ld returned 1 exit status
What is the correct way of installing this plugin?
Thank you
Better going throught this to install
If you want to convert vcf to bed format you can also use :
From here
This looks simple and effective. I got this from the human genome vcf:
If it looks good, I think this sorts it out. I'll look also into Bedops. Thanks!