from htsworkflow.frontend.auth import apidata
from htsworkflow.util import api
+from htsworkflow.util import alphanum
from htsworkflow.util.url import normalize_url
from htsworkflow.pipelines.genome_mapper import \
getAvailableGenomes, \
config += ['Flowcell Notes:']
config.extend(flowcell_info['notes'].split('\r\n'))
config += ['']
- for lane_number in LANE_LIST_JSON:
+ for lane_number in sorted(flowcell_info['lane_set']):
lane_contents = flowcell_info['lane_set'][lane_number]
for lane_info in lane_contents:
config += ['Lane%s: %s | %s' % (lane_number,
'Operator': format_operator_name}
out = csv.DictWriter(outstream, sample_sheet_fields)
out.writerow(dict(((x,x) for x in sample_sheet_fields)))
- for lane_number in LANE_LIST:
- lane_contents = flowcell_info['lane_set'][str(lane_number)]
+ for lane_number in sorted(flowcell_info['lane_set']):
+ lane_contents = flowcell_info['lane_set'][lane_number]
pooled_lane_contents = []
for library in lane_contents:
elif (type(sequences) == types.DictType):
pooled = []
multiplex_ids = sequences.keys()
- multiplex_ids.sort(key=int)
+ multiplex_ids.sort(cmp=alphanum.alphanum)
for multiplex_id in multiplex_ids:
sample = {}
sample.update(shared)