This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error when running vg construct command.

When running the command vg construct -r x.fa -v x.vcf >x.vg in Linux, it throws an error "Bad Argument. Usage: vg[-l] number". How to resolve this error?

vg

1 answer

there is the problem with your $PATH. Either vg is not installed and or it is at the end of your $PATH .

You're currently calling another vg: https://www.unix.com/man-page/debian/1/cg/

cg - Recursively grep for a pattern and store it.

find where is installed the correct vg and prepend it to the PATH.

export PATH=/path/to/executable/vg/directory:${PATH}

Thank you, Pierre Lindenbaum. vg was not installed properly. I installed it again and ran the command, it worked.

Log in to answer this question.