Commit 023a3ab5 authored by Hoogenboom, Jerry's avatar Hoogenboom, Jerry
Browse files

Fix crash in BGHomRaw

parent 03bfeed9
...@@ -135,11 +135,11 @@ def compute_ratios(samples_in, outfile, allelefile, annotation_column, min_pct, ...@@ -135,11 +135,11 @@ def compute_ratios(samples_in, outfile, allelefile, annotation_column, min_pct,
for i in range(len(data[marker, allele][sequence]["tag"])): for i in range(len(data[marker, allele][sequence]["tag"])):
outfile.write("\t".join([ outfile.write("\t".join([
data[marker, allele][sequence]["tag"][i], marker, allele, data[marker, allele][sequence]["tag"][i], marker, allele,
sequence] + [ sequence] + map(str, (
data[marker, allele][sequence]["forward"][i], data[marker, allele][sequence]["forward"][i],
data[marker, allele][sequence]["reverse"][i], data[marker, allele][sequence]["reverse"][i],
data[marker, allele][sequence]["forward"][i] + data[marker, allele][sequence]["forward"][i] +
data[marker, allele][sequence]["reverse"][i]] + [ data[marker, allele][sequence]["reverse"][i])) + [
"%.3g" % x if abs(x) > 0.0000000001 else "0" for x in ( "%.3g" % x if abs(x) > 0.0000000001 else "0" for x in (
data[marker, allele][sequence]["fnoise"][i], data[marker, allele][sequence]["fnoise"][i],
data[marker, allele][sequence]["rnoise"][i], data[marker, allele][sequence]["rnoise"][i],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment