forgot to commit this earlier
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2264 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
4c147329a9
commit
0f89a38473
|
|
@ -112,7 +112,7 @@ for line in raw_calls_file.readlines():
|
||||||
|
|
||||||
# window has been updated
|
# window has been updated
|
||||||
|
|
||||||
if ( not this_line ):
|
if ( not two_lines_ago ):
|
||||||
continue # window not filled yet
|
continue # window not filled yet
|
||||||
else:
|
else:
|
||||||
if ( float(this_line[lod_score_index]) > 0 and this_line[call_index] != "D" and this_line[call_index] != "I"):
|
if ( float(this_line[lod_score_index]) > 0 and this_line[call_index] != "D" and this_line[call_index] != "I"):
|
||||||
|
|
@ -132,15 +132,18 @@ for line in raw_calls_file.readlines():
|
||||||
syz_sb = "-1"
|
syz_sb = "-1"
|
||||||
else:
|
else:
|
||||||
syz_sb = this_line[fish_pval_index]
|
syz_sb = this_line[fish_pval_index]
|
||||||
# syzy neighborhood mismatch rate
|
|
||||||
next_mmr = getProportionNonref(next_line)
|
# do we want any other kind of annotations here ??
|
||||||
after_next_mmr = getProportionNonref(line_after_next)
|
|
||||||
prev_mmr = getProportionNonref(previous_line)
|
# syzy neighborhood mismatch rate
|
||||||
before_last_mmr = getProportionNonref(two_lines_ago)
|
next_mmr = getProportionNonref(next_line) # from later in genome
|
||||||
syzy_nmmr = str(next_mmr+after_next_mmr+prev_mmr+before_last_mmr)
|
after_next_mmr = getProportionNonref(line_after_next) # from same
|
||||||
# turn these into key value pairs
|
prev_mmr = getProportionNonref(previous_line) # from earlier
|
||||||
INFO = [["syzy_DP",syz_depth],[";syzy_SB",syz_sb],[";syzy_NMMR",syzy_nmmr]] # semicolons are a complete hack
|
before_last_mmr = getProportionNonref(two_lines_ago) # same
|
||||||
# get the vcf line
|
syzy_nmmr = str(next_mmr+after_next_mmr+prev_mmr+before_last_mmr)
|
||||||
vcfLine = generateVCFLine(chrom, pos, dbsnp, ref, alt, filter, lod, INFO)
|
# turn these into key value pairs
|
||||||
# print the sucker
|
INFO = [["syzy_DP",syz_depth],[";syzy_SB",syz_sb],[";syzy_NMMR",syzy_nmmr]] # semicolons are a complete hack
|
||||||
output_vcf_file.write(vcfLine+"\n")
|
# get the vcf line
|
||||||
|
vcfLine = generateVCFLine(chrom, pos, dbsnp, ref, alt, filter, lod, INFO)
|
||||||
|
# print the sucker
|
||||||
|
output_vcf_file.write(vcfLine+"\n")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue