Changeset 245

Show
Ignore:
Timestamp:
07/09/12 15:02:17 (11 months ago)
Author:
martin
Message:

Made last-map-probs a tiny bit faster, maybe.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • scripts/last-map-probs.py

    r244 r245  
    3232        elif line[0] == "s": 
    3333            sLineCount += 1 
    34             if sLineCount == 2: queryNames.append(line.split()[1]) 
    35             # maxsplit doesn't seem to make it faster 
     34            if sLineCount == 2: queryNames.append(line.split(None, 2)[1]) 
    3635        elif line[0].isdigit():  # we have an alignment in tabular format 
    37             w = line.split() 
     36            w = line.split(None, 7) 
    3837            scores.append(float(w[0])) 
    3938            queryNames.append(w[6])