Fixed a bug in the output

This commit is contained in:
Einar Ryeng 2011-03-24 08:05:49 +00:00
parent 19163988e3
commit f1b3009f11

View File

@ -4,7 +4,8 @@ import getopt
import os, os.path
import sys
OUTPUT_COLS = ["Probe_Id", "RefSeq_ID", "Unigene_ID", "Entrez_Gene_ID", "Accession", "Symbol", "Chromosome", "Definition"]
#OUTPUT_COLS = ["Array_Address_Id", "Entrez_Gene_ID", "Accession", "Chromosome", "Definition", "Ontology_Component", "Ontology_Process", "Ontology_Function", "ILMN_Gene"]
OUTPUT_COLS = ["Array_Address_Id", "Entrez_Gene_ID", "Accession", "ILMN_Gene", "Definition", ]
def print_help():
print "laydi-annot-illumina"
@ -46,8 +47,8 @@ def convert_annotations(fn_in, fn_out):
export_colnums = [colnames.index(x) for x in OUTPUT_COLS]
# Print output column headers
export_colnames = ["probe-id"] + colnames[1:]
print >> fd_out, "\t".join(export_colnames)
export_colnames = ["probe-id"] + OUTPUT_COLS[1:]
print >> fd_out, "\t".join(OUTPUT_COLS)
line = fd_in.readline()
while not line == "" and not line.startswith("["):