meren/viamics — Issue #28: Separator issue..
Author: meren
Created: 2011-12-31 03:29:51+00:00
State: open
Labels: problem

tools/rdp.py fails to generate a useful samples dict when a defline contains more than one separator.

assume an entry looks like this in the original data file:

> sample_RANDOMSTUFF | read_length: 200
ATCGATCGATCGATCGATCGATCGATCGATC

there would be three items in the list of DEFLINE.split('_'), meanwhile code expects to have only 2.

Since the `separator` might be used in the defline many times (1) list that returns from the split call shouldn't be expected to have only two items, and (2) the rest of the defline should be reconstructed considering the separator.