This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Pileup To Vcf Format

I have a pileup file generated using samtools. I need to convert this to vcf. Which tools can be used for this??

pileup vcf

1 answer

there is a tool named sam2vcf.pl in the misc folder of samtools

Usage: sam2vcf.pl [OPTIONS] < in.pileup > out.vcf
Options:
   -r, -refseq <file.fa>            The reference sequence, required when indels are present.
   -h, -?, --help                   This help message.

I tried this several times but i m getting this error:

C:wishsamtools-0.1.15misc>perl sam2vcf.pl -s hg19_bwa_target2.pileup > out.vcf Unknown parameter "hg19_bwa_target2.pileup". Run -h for help. at sam2vcf.pl line 22 main::error('Unknown parameter "hg19_bwa_target2.pileup". Run -h for hel p.x{a}') called at sam2vcf.pl line 52 main::parse_params() called at sam2vcf.pl line 12

What might be my mistake here??

I tried this several times but i m getting this error:

C:wishsamtools-0.1.15misc>perl sam2vcf.pl -s hg19_bwa_target2.pileup > out.vcf Unknown parameter "hg19_bwa_target2.pileup". Run -h for help. at sam2vcf.pl line 22 main::error('Unknown parameter "hg19_bwa_target2.pileup". Run -h for hel p.x{a}') called at sam2vcf.pl line 52 main::parse_params() called at sam2vcf.pl line 12

What might be my mistake here??

I tried this several times but i m getting this error: [?][?]

C:wishsamtools-0.1.15misc>perl sam2vcf.pl -s hg19_bwa_target2.pileup > out.vcf Unknown parameter "hg19_bwa_target2.pileup". Run -h for help. at sam2vcf.pl line 22 main::error('Unknown parameter "hg19_bwa_target2.pileup". Run -h for hel p.x{a}') called at sam2vcf.pl line 52 main::parse_params() called at sam2vcf.pl line 12 [?] What might be my mistake here?? – pri 0 secs ago

I tried this several times but i m getting this error: C:wishsamtools-0.1.15misc>perl sam2vcf.pl -s hg19_bwa_target2.pileup > out.vcf Unknown parameter "hg19_bwa_target2.pileup". Run -h for help. at sam2vcf.pl line 22 main::error('Unknown parameter "hg19_bwa_target2.pileup". Run -h for hel p.x{a}') called at sam2vcf.pl line 52 main::parse_params() called at sam2vcf.pl line 12 What might be my mistake here??

could you suggest anything else??

Well I don't see an -s option in that usage description just a < to specify the input.

Log in to answer this question.