root/galaxy-central/templates/workflow/myexp_export_content.mako @ 3

リビジョン 2, 1.4 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1##
2## Generate the content block for a myExperiment request.
3##
4<%!
5    from xml.sax.saxutils import escape
6    import textwrap, base64
7%>
8<galaxy_json>
9    ${workflow_dict_packed}
10</galaxy_json>
11<steps>
12    %for step_num, step in workflow_steps.items():
13    <step>
14        <id>${step_num}</id>
15        <name>${step['name']}</name>
16        <tool>${step['tool_id']}</tool>
17        <description>${escape( step['annotation'] )}</description>
18        <inputs>
19            %for input in step['inputs']:
20            <input>
21                <name>${escape( input['name'] )}</name>
22                <description>${escape( input['description'] )}</description>
23            </input>
24            %endfor
25        </inputs>
26        <outputs>
27            %for output in step['outputs']:
28            <output>
29                <name>${escape( output['name'] )}</name>
30                <type>${output['type']}</type>
31            </output>
32            %endfor
33        </outputs>
34    </step>
35    %endfor
36</steps>
37<connections>
38    %for step_num, step in workflow_steps.items():
39        %for input_name, input_connection in step['input_connections'].items():
40        <connection>
41            <source_id>${input_connection['id']}</source_id>
42            <source_output>${input_connection['output_name']}</source_output>
43            <sink_id>${step_num}</sink_id>
44            <sink_input>${input_name}</sink_input>
45        </connection>
46        %endfor
47    %endfor
48</connections>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。