Skip to content
Pierre Lindenbaum edited this page Feb 23, 2015 · 6 revisions

#Deprecated

Use picard SortVcf : http://broadinstitute.github.io/picard/command-line-overview.html#SortVcf

##Motivation

Sort a VCF using the order defined by the indexed Reference genome.

##Compilation

see also Compilation

$ make sortvcfonref2

##Synopsis

$ java -cp  -jar dist/sortvcfonref2.jar [options] (stdin|file.vcf)

##Options

 -R (fasta) indexed reference. Optional. The order of this reference will be used for sorting
 -T (dir) add tmp directory (optional)
 -N (int) max records in ram. default: 50000
 -h get help (this screen)
 -v print version and exit.
 -L (level) log level. One of java.util.logging.Level . currently:null

##Example

cat input.vcf |\
   java -jar dist/sortvcfonref2.jar  -R ref.fa |\
   bgzip -c > result.vcf.gz && \
   tabix -p vcf -f result.vcf.gz

See also

Clone this wiki locally