import simplejson as json
from htsworkflow.frontend.auth import apidata
+from htsworkflow.util import api
from htsworkflow.util.url import normalize_url
from htsworkflow.pipelines.genome_mapper import getAvailableGenomes
from htsworkflow.pipelines.genome_mapper import constructMapperDict
"""
Return a dictionary describing a
"""
- url = base_host_url + '/experiments/config/%s/json' % (flowcell)
+ url = api.flowcell_url(base_host_url, flowcell)
try:
apipayload = urllib.urlencode(apidata)
config += ['Lane%s: %s | %s' % (lane_number, lane_info['library_id'],
lane_info['library_name'])]
- config += ['SEQUENCE_FORMAT --fastq']
config += ['']
return "\n# ".join(config)
# in the config file... things like which lane is which library.
config = [format_gerald_header(flowcell_info)]
+ config += ['SEQUENCE_FORMAT --fastq']
+ config += ['ELAND_SET_SIZE 20']
+ config += ['WITH_SEQUENCE TRUE']
+ config += ['12345678:WITH_SEQUENCE TRUE']
analysis_suffix = eland_analysis_suffix[flowcell_info['paired_end']]
sequence_suffix = sequence_analysis_suffix[flowcell_info['paired_end']]
lane_groups = group_lane_parameters(flowcell_info)
is_sequencing = True
if is_sequencing:
- config += ['%s:ANALYSIS sequence%s' % (lane_prefix, analysis_suffix)]
+ config += ['%s:ANALYSIS sequence%s' % (lane_prefix, sequence_suffix)]
else:
config += ['%s:ANALYSIS eland%s' % (lane_prefix, analysis_suffix)]
config += ['%s:ELAND_GENOME %s' % (lane_prefix, species_path) ]
config += ['%s:USE_BASES Y%s' % ( lane_prefix, read_length ) ]
# add in option for running script after
- if options.post_run is not None:
+ if not (options.post_run is None or options.runfolder is None):
runfolder = os.path.abspath(options.runfolder)
post_run = options.post_run % {'runfolder': runfolder}
config += ['POST_RUN_COMMAND %s' % (post_run,) ]