Minor updates to correctly handle emitting FN calls
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2231 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
c776f9fb90
commit
dbb8b86ed1
|
|
@ -571,10 +571,13 @@ def evaluateTruth(header, callVCF, truth, truthVCF):
|
||||||
|
|
||||||
writeRecalibratedCalls(callVCF, header, calls)
|
writeRecalibratedCalls(callVCF, header, calls)
|
||||||
|
|
||||||
|
def isFN(v):
|
||||||
|
return isVariantInSample(v, OPTIONS.useSample) and not v.hasField("FN")
|
||||||
|
|
||||||
if truth <> None and OPTIONS.FNoutputVCF:
|
if truth <> None and OPTIONS.FNoutputVCF:
|
||||||
f = open(OPTIONS.FNoutputVCF, 'w')
|
f = open(OPTIONS.FNoutputVCF, 'w')
|
||||||
#print 'HEADER', header
|
#print 'HEADER', header
|
||||||
for line in formatVCF(header, filter( lambda x: not x.hasField("FN"), truth.itervalues())):
|
for line in formatVCF(header, filter( isFN, truth.itervalues())):
|
||||||
print >> f, line
|
print >> f, line
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue