From f120a004331fcf829080afce769d15027525ad7c Mon Sep 17 00:00:00 2001 From: weisburd Date: Mon, 10 May 2010 17:59:39 +0000 Subject: [PATCH] Fixed bug so that the strand, alternate, and reference columns are now moved correctly git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3342 348d0f76-0448-11de-a6fe-93d51630548a --- .../genomicAnnotatorScripts/ConvertTableToAnnotatorRod.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/genomicAnnotatorScripts/ConvertTableToAnnotatorRod.py b/python/genomicAnnotatorScripts/ConvertTableToAnnotatorRod.py index 3f3cab0e9..fde04dc6f 100755 --- a/python/genomicAnnotatorScripts/ConvertTableToAnnotatorRod.py +++ b/python/genomicAnnotatorScripts/ConvertTableToAnnotatorRod.py @@ -264,7 +264,7 @@ OUTPUT_FORMAT_DELIMITER = "\t" for line in open(input_filename): line = line.strip() - if counter % 1000000 == 0: + if counter % 1000000 == 0 and counter > 0: print("Processed %d records" % counter ) counter+=1 @@ -384,13 +384,13 @@ for line in open(input_filename): if haplotype_strand_column: - line_fields.insert(3, haplotype_strand_value) + line_fields.insert(0, haplotype_strand_value) if haplotype_alternate_column: - line_fields.insert(2, haplotype_alternate_value) + line_fields.insert(0, haplotype_alternate_value) if haplotype_reference_column: - line_fields.insert(1, haplotype_reference_value) + line_fields.insert(0, haplotype_reference_value) line_fields.insert(0, chrpos_value)