Entering edit mode
7.9 years ago
jonessara770
▴
240
Hello,
I am trying to convert vcf file from GRCh38 to GRCh37 using picard LiftoverVcf. I added chr to my vcf files and ran the software. However, I get the following errors. would you please advise? btw, I am using java openjdk-jdk1.8.0_72.
INFO 2016-12-26 11:52:02 LiftoverVcf Loading up the target reference genome.
INFO 2016-12-26 11:52:19 LiftoverVcf Lifting variants over and sorting.
[Mon Dec 26 11:52:19 EST 2016] picard.vcf.LiftoverVcf done. Elapsed time: 0.30 minutes.
Runtime.totalMemory()=5999427584
To get help, see http://broadinstitute.github.io/picard/index.html#GettingHelp
Exception in thread "main" java.lang.NullPointerException
at java.lang.String.checkBounds(String.java:384)
at java.lang.String.<init>(String.java:324)
at htsjdk.samtools.util.StringUtil.bytesToString(StringUtil.java:301)
at picard.vcf.LiftoverVcf.doWork(LiftoverVcf.java:196)
at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:209)
at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:95)
at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:105)
and what is the version of picard ?
from the trace StringUtil is called at line 196:
But there is no call to StringUtil in the current source of picard: https://github.com/broadinstitute/picard/blob/master/src/main/java/picard/vcf/LiftoverVcf.java#L196 , I suspect you're using an old version of picard.
and what was your command line ?
Thanks Pierre,
I ran it without adding chr to the original vcf file and it runs but obviously can not liftover most of the variants. I don't know what is wrong with my vcf file when I am adding chr. any thoughts?
../openjdk-jdk1.8.0_72/bin/java -Dsamjdk.buffer_size=4194304 -Xmx6g -Xms2g -jar ../picard-tools-2.0.1/picard.jar LiftoverVcf TMP_DIR=../tmp I=myvcf.hg19.vcf O=myvcf.hg19.lift.flt.vcf CHAIN=hg38ToHg19.over.chain REJECT= myvcf.hg19.rejected.vcf R= Homosapiens.GRCh37.fa
I'm also getting the same error, but I'm not quite making it to the ' LiftoverVcf Lifting variants over and sorting' step. (java-jdk/1.8.0_92, picard/2.8.1) My vcf doesn't have chr prefixes and I removed the 'chr' in the reference.