INFO [2013-01-27 09:12:26,736] [IGV.java:1452] [pool-1-thread-3] Loading 1 resources.
WARN [2013-01-27 09:12:26,793] [VCFStandardHeaderLines.java:218] [pool-1-thread-3] Repairing standard header line for field MQ because -- type disagree; header has Integer but standard is Float -- descriptions disagree; header has 'Root-mean-square mapping quality of covering reads' but standard is 'RMS Mapping Quality'
WARN [2013-01-27 09:12:26,793] [VCFStandardHeaderLines.java:218] [pool-1-thread-3] Repairing standard header line for field AC because -- count types disagree; header has UNBOUNDED but standard is A -- descriptions disagree; header has 'Allele count in genotypes' but standard is 'Allele count in genotypes, for each ALT allele, in the same order as listed'
ERROR [2013-01-27 09:12:26,812] [IGV.java:1491] [pool-1-thread-3] Error loading tracks
java.lang.RuntimeException:
Line: chrII 3797023 . T C,A 42.50 . AC1=2;AC=12,0;AF1=1;AN=12;DP4=1,2,51,69;DP=187;EFF=DOWNSTREAM(MODIFIER||||158|Y8A9A.3|protein_coding|CODING|Y8A9A.3|),NON_SYNONYMOUS_CODING(MODERATE|MISSENSE|cTg/cAg|L399Q|1360|Y8A9A.2|protein_coding|CODING|Y8A9A.2|),NON_SYNONYMOUS_CODING(MODERATE|MISSENSE|cTg/cCg|L399P|1360|Y8A9A.2|protein_coding|CODING|Y8A9A.2|),UPSTREAM(MODIFIER||||282|fbxb-99|protein_coding|CODING|Y8A9A.5|),UPSTREAM(MODIFIER|||||Y8A9A.1|pseudogene|NON_CODING|Y8A9A.1|);FQ=-65;MQ=11;PV4=0.33,0.032,0.41,1;SF=3,4,5,6,7,8;VDB=0.0374 GT:GQ:PL . . . 1/1:68:68,38,0,68,16,61 1/1:56:71,30,0,.,.,. 1/1:87:72,51,0,77,34,71 1/1:87:81,46,0,.,.,. 1/1:80:80,42,0,.,.,. 1/1:99:81,84,0,85,57,77
at org.broad.tribble.AsciiFeatureCodec.decode(AsciiFeatureCodec.java:68)
at org.broad.tribble.TribbleIndexedFeatureReader$WFIterator.readNextRecord(TribbleIndexedFeatureReader.java:201)
at org.broad.tribble.TribbleIndexedFeatureReader$WFIterator.next(TribbleIndexedFeatureReader.java:181)
at org.broad.tribble.TribbleIndexedFeatureReader$WFIterator.next(TribbleIndexedFeatureReader.java:148)
at org.broad.igv.track.TribbleFeatureSource.initFeatureWindowSize(TribbleFeatureSource.java:158)
at org.broad.igv.track.TribbleFeatureSource.init(TribbleFeatureSource.java:80)
at org.broad.igv.track.TribbleFeatureSource.<init>(TribbleFeatureSource.java:62)
at org.broad.igv.track.TrackLoader.loadIndexed(TrackLoader.java:299)
at org.broad.igv.track.TrackLoader.load(TrackLoader.java:160)
at org.broad.igv.track.TrackLoader.load(TrackLoader.java:101)
at org.broad.igv.ui.IGV.load(IGV.java:1529)
at org.broad.igv.ui.IGV$10.run(IGV.java:1473)
at org.broad.igv.ui.IGV.loadResources(IGV.java:1500)
at org.broad.igv.ui.IGV$4.run(IGV.java:618)
at org.broad.igv.util.LongRunningTask.call(LongRunningTask.java:54)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NumberFormatException: For input string: "."
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.valueOf(Integer.java:554)
at org.broadinstitute.sting.utils.codecs.vcf.AbstractVCFCodec.decodeInts(AbstractVCFCodec.java:690)
at org.broadinstitute.sting.utils.codecs.vcf.AbstractVCFCodec.createGenotypeMap(AbstractVCFCodec.java:651)
at org.broadinstitute.sting.utils.codecs.vcf.AbstractVCFCodec$LazyVCFGenotypesParser.parse(AbstractVCFCodec.java:92)
at org.broadinstitute.sting.utils.variantcontext.LazyGenotypesContext.decode(LazyGenotypesContext.java:130)
at org.broadinstitute.sting.utils.variantcontext.LazyGenotypesContext.ensureSampleNameMap(LazyGenotypesContext.java:151)
at org.broadinstitute.sting.utils.variantcontext.GenotypesContext.getSampleNames(GenotypesContext.java:634)
at org.broadinstitute.sting.utils.variantcontext.VariantContext.getSampleNames(VariantContext.java:842)
at org.broad.igv.variant.vcf.VCFVariant.getSampleNames(VCFVariant.java:189)
at org.broad.igv.variant.vcf.VCFVariant.init(VCFVariant.java:52)
at org.broad.igv.variant.vcf.VCFVariant.<init>(VCFVariant.java:47)
at org.broad.igv.feature.tribble.VCFWrapperCodec.decode(VCFWrapperCodec.java:48)
at org.broad.igv.feature.tribble.VCFWrapperCodec.decode(VCFWrapperCodec.java:25)
at org.broad.tribble.AsciiFeatureCodec.decode(AsciiFeatureCodec.java:65)
... 19 more
INFO [2013-01-27 09:12:26,814] [MessageUtils.java:60] [pool-1-thread-3] Error loading /Volumes/leon Home/science/WGS/12_10_16/DAs.vcf:
Line: chrII 3797023 . T C,A 42.50 . AC1=2;AC=12,0;AF1=1;AN=12;DP4=1,2,51,69;DP=187;EFF=DOWNSTREAM(MODIFIER||||158|Y8A9A.3|protein_coding|CODING|Y8A9A.3|),NON_SYNONYMOUS_CODING(MODERATE|MISSENSE|cTg/cAg|L399Q|1360|Y8A9A.2|protein_coding|CODING|Y8A9A.2|),NON_SYNONYMOUS_CODING(MODERATE|MISSENSE|cTg/cCg|L399P|1360|Y8A9A.2|protein_coding|CODING|Y8A9A.2|),UPSTREAM(MODIFIER||||282|fbxb-99|protein_coding|CODING|Y8A9A.5|),UPSTREAM(MODIFIER|||||Y8A9A.1|pseudogene|NON_CODING|Y8A9A.1|);FQ=-65;MQ=11;PV4=0.33,0.032,0.41,1;SF=3,4,5,6,7,8;VDB=0.0374 GT:GQ:PL . . . 1/1:68:68,38,0,68,16,61 1/1:56:71,30,0,.,.,. 1/1:87:72,51,0,77,34,71 1/1:87:81,46,0,.,.,. 1/1:80:80,42,0,.,.,. 1/1:99:81,84,0,85,57,77
--
Leon Avery lav...@vcu.edu Department of Physiology and Biophysics Virginia Commonwealth University P.O. Box 980551 1220 E. Broad Molecular Medicine Research Building, Rm 2044 Richmond, Virginia 23298-0551 804-628-2296 / fax 804-828-9492
--
---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group, send email to igv-help+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Leon Avery lav...@vcu.edu Department of Physiology and Biophysics Virginia Commonwealth University P.O. Box 980551 1220 E. Broad Molecular Medicine Research Building, Rm 2044 Richmond, Virginia 23298-0551 804-628-2296 / fax 804-828-9492
Leon Avery lav...@vcu.edu Department of Physiology and Biophysics Virginia Commonwealth University P.O. Box 980551 1220 E. Broad Molecular Medicine Research Building, Rm 2044 Richmond, Virginia 23298-0551 804-628-2296 / fax 804-828-9492
org/broad/igv/feature/tribble/VCFWrapperCodec.java:
modified the following:
public VCFVariant decode(String line) {
VariantContext vc = (VariantContext) wrappedCodec.decode(line);
if (vc == null) {
return null;
}
String chr = genome == null ? vc.getChr() : genome.getChromosomeAlias(vc.getChr());
return new VCFVariant(vc, chr);
}
to:
public VCFVariant decode(String line) {
// HY: temporary fix for the following:
// IGV supports completely missing fields (which would simply have a "."
// but does not currently support missing only certain elements of a field.
// https://groups.google.com/forum/?fromgroups=#!msg/igv-help/7-uTVcACAEE/8mRaMDhY1JwJ
byte[] bline = line.getBytes();
boolean bChanged = false;
byte cp = 0, cc = 0, cn = 0; // prev, current, next character
//HY: replace ",.," with ",0,": Could also use line.split(","), but this should be faster:
for (int i = 0; i < bline.length; ++i) {
cn = (i < bline.length - 1) ? bline[i+1] : 0;
cc = bline[i];
if (cc == '.' && (cp == ',' || cn == ','))
{
bline[i] = '0';
bChanged = true;
}
cp = cc;
}
String newLine = line;
if (bChanged) {
newLine = new String(bline);
}
VariantContext vc = (VariantContext) wrappedCodec.decode(newLine);
//VariantContext vc = (VariantContext) wrappedCodec.decode(line);
if (vc == null) {
return null;
}
String chr = genome == null ? vc.getChr() : genome.getChromosomeAlias(vc.getChr());
return new VCFVariant(vc, chr);
}
ESs.vcf: $(foreach str,$(ESS),$(str)/$(str)br.vcf.gz.tbi)The sed command is what does it. The sloppiness, of course, is doing it on the WHOLE file, rather than just the field in question. I checked that ",." appears nowhere else in my VCF files, but that's obviously a dangerous assumption in general.
vcf-merge $(^:%.tbi=%) | \
sed -e 's/,\./,0/g' >! $@
Leon Avery lav...@vcu.edu Department of Physiology and Biophysics Virginia Commonwealth University P.O. Box 980551 1220 E. Broad Molecular Medicine Research Building, Rm 2044 Richmond, Virginia 23298-0551 804-628-2296 / fax 804-828-9492
You received this message because you are subscribed to a topic in the Google Groups "igv-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/igv-help/7-uTVcACAEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to igv-help+u...@googlegroups.com.