At some point I had to add the sample key which could link
lane, library and index together. Some code know expects that
class so I needed to create a "standard" list and pass it in.
EUROPEAN_STRPTIME, EUROPEAN_DATE_RE, \
VERSION_RE, USER_RE, \
LANES_PER_FLOWCELL, LANE_LIST
+from htsworkflow.pipelines.samplekey import LANE_SAMPLE_KEYS
from htsworkflow.util.alphanum import alphanum
from htsworkflow.util.ethelp import indent, flatten
from htsworkflow.util.queuecommands import QueueCommands
lanes.append(lane)
else:
# assume default list of lanes
- lanes = LANE_LIST
+ lanes = LANE_SAMPLE_KEYS
run_name = srf.pathname_to_run_name(r.pathname)
seq_cmds = []
+from htsworkflow.pipelines import LANE_LIST
+
class SampleKey(object):
"""Identifier for a sample in a particular 'location' on a flowcell.
"""
return '<SampleKey(' + ",".join(name) + ')>'
+LANE_SAMPLE_KEYS = [ SampleKey(lane=l) for l in LANE_LIST ]
\ No newline at end of file