Changeset 1471:1958657d8f8d

Show
Ignore:
Timestamp:
08/12/08 10:04:28 (3 months ago)
Author:
Greg Von Kuster <greg@bx.psu.edu>
branch:
default
Message:

Fix for interval2maf.py when metadata missing strand column value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/maf/interval2maf.py

    r1356 r1471  
    5555    if options.chromCol: chromCol = int( options.chromCol ) - 1 
    5656    else:  
    57         print >>sys.stderr, "Chromosome column has not been specified." 
     57        print >>sys.stderr, "Chromosome column not set, click the pencil icon in the history item to set the metadata attributes." 
    5858        sys.exit() 
    5959     
    6060    if options.startCol: startCol = int( options.startCol ) - 1 
    6161    else:  
    62         print >>sys.stderr, "Start column has not been specified." 
     62        print >>sys.stderr, "Start column not set, click the pencil icon in the history item to set the metadata attributes." 
    6363        sys.exit() 
    6464     
    6565    if options.endCol: endCol = int( options.endCol ) - 1 
    6666    else:  
    67         print >>sys.stderr, "End column has not been specified." 
     67        print >>sys.stderr, "End column not set, click the pencil icon in the history item to set the metadata attributes." 
    6868        sys.exit() 
    6969     
    7070    if options.strandCol: strandCol = int( options.strandCol ) - 1 
    7171    else:  
    72         print >>sys.stderr, "Strand column has not been specified." 
    73         sys.exit() 
     72        strandCol = -1 
    7473     
    7574    if options.interval_file: interval_file = options.interval_file