X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Fpipelines%2Fretrieve_config.py;h=3a1a56aeaf2188350db8b980d7b098bf0098a0ba;hp=0ef42a589fcdd06a90be00c4cdda4a48d10c7b02;hb=86a66805c52c4bafb5d878d2b22604b9b9309cc8;hpb=fdea826bf42947427fd5291f2412f0e6fb4e6feb diff --git a/htsworkflow/pipelines/retrieve_config.py b/htsworkflow/pipelines/retrieve_config.py index 0ef42a5..3a1a56a 100644 --- a/htsworkflow/pipelines/retrieve_config.py +++ b/htsworkflow/pipelines/retrieve_config.py @@ -14,6 +14,7 @@ except ImportError, e: 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 @@ -36,7 +37,7 @@ def retrieve_flowcell_info(base_host_url, flowcell): """ 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) @@ -107,7 +108,6 @@ def format_gerald_header(flowcell_info): config += ['Lane%s: %s | %s' % (lane_number, lane_info['library_id'], lane_info['library_name'])] - config += ['SEQUENCE_FORMAT --fastq'] config += [''] return "\n# ".join(config) @@ -123,6 +123,10 @@ def format_gerald_config(options, flowcell_info, genome_map): # 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)