Changeset 1451:352694e163c7
- Timestamp:
- 07/23/08 15:27:39
(6 months ago)
- Author:
- greg
- branch:
- default
- Message:
Completed an old FIXME in DefaultToolAction?.execute() - metadata no longer added to "incoming". Tool config params changed from things like$input_chromCol to ${input.metadata.chromCol}.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1440 |
r1451 |
|
| 257 | 257 | # Do any validation that could not be done at job creation |
|---|
| 258 | 258 | self.tool.handle_unvalidated_param_values( incoming, self.app ) |
|---|
| 259 | | # Resore input / output data lists |
|---|
| | 259 | # Restore input / output data lists |
|---|
| 260 | 260 | inp_data = dict( [ ( da.name, da.dataset ) for da in job.input_datasets ] ) |
|---|
| 261 | 261 | out_data = dict( [ ( da.name, da.dataset ) for da in job.output_datasets ] ) |
|---|
| 262 | | # add some useful session info to param_dict via incoming - ross august 2007 |
|---|
| 263 | | # these can be passed on the commandline if wanted as $userId $userEmail |
|---|
| | 262 | # These can be passed on the command line if wanted as $userId $userEmail |
|---|
| 264 | 263 | if job.history.user: # check for anonymous user! |
|---|
| 265 | 264 | userId = '%d' % job.history.user.id |
|---|
| … | … | |
| 272 | 271 | # Build params, done before hook so hook can use |
|---|
| 273 | 272 | param_dict = self.tool.build_param_dict( incoming, inp_data, out_data ) |
|---|
| 274 | | # Run the before queue ("exec_before_job") hook "trans" is no |
|---|
| 275 | | # longer available to this hook, and has been replaced with |
|---|
| 276 | | # app - 5/31/2007, by INS |
|---|
| 277 | | # job added so we can get at the user if needed 14/august/2007 ross |
|---|
| | 273 | # Run the before queue ("exec_before_job") hook |
|---|
| 278 | 274 | self.tool.call_hook( 'exec_before_job', self.queue.app, inp_data=inp_data, |
|---|
| 279 | 275 | out_data=out_data, tool=self.tool, param_dict=incoming) |
|---|
| … | … | |
| 288 | 284 | if self.command_line and self.command_line.startswith( 'python' ): |
|---|
| 289 | 285 | self.galaxy_lib_dir = os.path.abspath( "lib" ) # cwd = galaxy root |
|---|
| 290 | | # command_line won't actually be set in the db until finish unless you do it here |
|---|
| 291 | | # We need it in the db to be able to restart jobs -ndc |
|---|
| | 286 | # We need command_line persisted to the db in order for Galaxy to re-queue the job |
|---|
| | 287 | # if the server was stopped and restarted before the job finished |
|---|
| 292 | 288 | job.command_line = self.command_line |
|---|
| 293 | 289 | job.flush() |
|---|
| r1403 |
r1451 |
|
| 283 | 283 | # Parse tool help |
|---|
| 284 | 284 | self.parse_help( root ) |
|---|
| 285 | | # FIXME: This is not used anywhere, what does it do? |
|---|
| 286 | | # url redirection to ougoings |
|---|
| 287 | | self.redir_url = root.find("url") |
|---|
| 288 | 285 | # Description of outputs produced by an invocation of the tool |
|---|
| 289 | 286 | self.outputs = {} |
|---|
| … | … | |
| 1041 | 1038 | try: |
|---|
| 1042 | 1039 | # Substituting parameters into the command |
|---|
| 1043 | | command_line = fill_template( self.command, context=param_dict ) |
|---|
| | 1040 | command_line = fill_template( self.command, context=param_dict ) |
|---|
| 1044 | 1041 | # Remove newlines from command line |
|---|
| 1045 | 1042 | command_line = command_line.replace( "\n", " " ).replace( "\r", " " ) |
|---|
| r1403 |
r1451 |
|
| 65 | 65 | |
|---|
| 66 | 66 | def execute(self, tool, trans, incoming={}, set_output_hid = True ): |
|---|
| 67 | | out_data = {} |
|---|
| 68 | | |
|---|
| | 67 | out_data = {} |
|---|
| 69 | 68 | # Collect any input datasets from the incoming parameters |
|---|
| 70 | 69 | inp_data = self.collect_input_datasets( tool, incoming, trans ) |
|---|
| 71 | | |
|---|
| 72 | | # Deal with input metadata, 'dbkey', names, and types |
|---|
| 73 | | |
|---|
| 74 | | # FIXME: does this need to modify 'incoming' or should this be |
|---|
| 75 | | # moved into 'build_param_dict'? Is this just about getting the |
|---|
| 76 | | # metadata into the command line? |
|---|
| 77 | | # NEED TO FIX THIS SOON. |
|---|
| | 70 | # Deal with input dataset names, 'dbkey' and types |
|---|
| 78 | 71 | input_names = [] |
|---|
| 79 | 72 | input_ext = 'data' |
|---|
| 80 | 73 | input_dbkey = incoming.get( "dbkey", "?" ) |
|---|
| 81 | | input_meta = Bunch() |
|---|
| 82 | 74 | for name, data in inp_data.items(): |
|---|
| 83 | 75 | if data: |
|---|
| … | … | |
| 88 | 80 | if data.dbkey not in [None, '?']: |
|---|
| 89 | 81 | input_dbkey = data.dbkey |
|---|
| 90 | | for meta_key, meta_value in data.metadata.items(): |
|---|
| 91 | | if meta_value is not None: |
|---|
| 92 | | meta_value = str(data.datatype.metadata_spec[meta_key].wrap(meta_value, data)) |
|---|
| 93 | | meta_key = '%s_%s' % (name, meta_key) |
|---|
| 94 | | incoming[meta_key] = meta_value |
|---|
| 95 | | else: |
|---|
| 96 | | incoming_key = '%s_%s' % (name, meta_key) |
|---|
| 97 | | incoming[incoming_key] = data.datatype.metadata_spec[meta_key].no_value |
|---|
| 98 | | |
|---|
| 99 | 82 | # Build name for output datasets based on tool name and input names |
|---|
| 100 | 83 | if len( input_names ) == 1: |
|---|
| … | … | |
| 187 | 170 | job = trans.app.model.Job() |
|---|
| 188 | 171 | job.session_id = trans.get_galaxy_session( create=True ).id |
|---|
| 189 | | if trans.get_history() is not None: |
|---|
| 190 | | job.history_id = trans.get_history().id |
|---|
| | 172 | job.history_id = trans.history.id |
|---|
| 191 | 173 | job.tool_id = tool.id |
|---|
| 192 | 174 | try: |
|---|
| 193 | | # For backward compatability, some tools may not have versions yet. |
|---|
| | 175 | # For backward compatibility, some tools may not have versions yet. |
|---|
| 194 | 176 | job.tool_version = tool.version |
|---|
| 195 | 177 | except: |
|---|
| 196 | 178 | job.tool_version = "1.0.0" |
|---|
| 197 | | ## job.command_line = command_line |
|---|
| 198 | | ## job.param_filename = param_filename |
|---|
| 199 | 179 | # FIXME: Don't need all of incoming here, just the defined parameters |
|---|
| 200 | 180 | # from the tool. We need to deal with tools that pass all post |
|---|
| … | … | |
| 213 | 193 | # Queue the job for execution |
|---|
| 214 | 194 | trans.app.job_queue.put( job.id, tool ) |
|---|
| 215 | | # IMPORTANT: keep the following event as is - we parse it for our session activity reports |
|---|
| 216 | 195 | trans.log_event( "Added job to the job queue, id: %s" % str(job.id), tool_id=job.tool_id ) |
|---|
| 217 | 196 | return out_data |
|---|
| r1157 |
r1451 |
|
| 217 | 217 | def _assert_dataset_state( self, elem, state ): |
|---|
| 218 | 218 | if elem.get( 'state' ) != state: |
|---|
| 219 | | errmsg = "Expecting dataset state '%s' but is '%s'. Dataset blurb: %s\n\n" % ( state, elem.get('state'), elem.text.strip() ) |
|---|
| | 219 | errmsg = "Expecting dataset state '%s', but state is '%s'. Dataset blurb: %s\n\n" % ( state, elem.get('state'), elem.text.strip() ) |
|---|
| 220 | 220 | errmsg += "---------------------- >> begin tool stderr << -----------------------\n" |
|---|
| 221 | 221 | errmsg += self.get_job_stderr( elem.get( 'id' ) ) + "\n" |
|---|
| r1279 |
r1451 |
|
| 86 | 86 | <tool file="maf/maf_limit_size.xml"/> |
|---|
| 87 | 87 | <tool file="maf/maf_by_block_number.xml"/> |
|---|
| | 88 | <tool file="maf/maf_filter.xml"/> |
|---|
| 88 | 89 | <!-- |
|---|
| 89 | 90 | <tool file="maf/maf_reverse_complement.xml"/> |
|---|
| 90 | | <tool file="maf/maf_filter.xml"/> |
|---|
| 91 | 91 | --> |
|---|
| 92 | 92 | </section> |
|---|
| … | … | |
| 108 | 108 | <tool file="new_operations/get_flanks.xml" /> |
|---|
| 109 | 109 | <tool file="new_operations/flanking_features.xml" /> |
|---|
| | 110 | <tool file="annotation_profiler/annotation_profiler.xml" /> |
|---|
| 110 | 111 | </section> |
|---|
| 111 | 112 | <section name="Statistics" id="stats"> |
|---|
| r1353 |
r1451 |
|
| 1 | 1 | <tool id="Annotation_Profiler_0" name="Profile Annotations" Version="1.0.0"> |
|---|
| 2 | 2 | <description>for a set of genomic intervals</description> |
|---|
| 3 | | <command interpreter="python2.4">annotation_profiler_for_interval.py -i $input1 -c $input1_chromCol -s $input1_startCol -e $input1_endCol -o $out_file1 $keep_empty -p /depot/data2/galaxy/annotation_profiler/$dbkey $summary -l ${GALAXY_DATA_INDEX_DIR}/shared/ucsc/chrom/${dbkey}.len -b 3 -t $table_names</command> |
|---|
| | 3 | <command interpreter="python2.4">annotation_profiler_for_interval.py -i $input1 -c ${input1.metadata.chromCol} -s ${input1.metadata.startCol} -e ${input1.metadata.endCol} -o $out_file1 $keep_empty -p /depot/data2/galaxy/annotation_profiler/$dbkey $summary -l ${GALAXY_DATA_INDEX_DIR}/shared/ucsc/chrom/${dbkey}.len -b 3 -t $table_names</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" label="Choose Intervals"> |
|---|
| r1129 |
r1451 |
|
| 1 | 1 | <tool id="gencode_partition1" name="Gencode Partition"> |
|---|
| 2 | 2 | <description>an interval file</description> |
|---|
| 3 | | <command interpreter="python">split_by_partitions.py /home/universe/encode_feature_partitions/partition_list.txt $input1 $out_file1 $input1_chromCol $input1_startCol $input1_endCol $input1_strandCol</command> |
|---|
| | 3 | <command interpreter="python">split_by_partitions.py /home/universe/encode_feature_partitions/partition_list.txt $input1 $out_file1 ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} ${input1.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param name="input1" type="data" format="interval" label="File to Partition"/> |
|---|
| r1338 |
r1451 |
|
| 1 | 1 | <tool id="random_intervals1" name="Random Intervals"> |
|---|
| 2 | 2 | <description>create a random set of intervals</description> |
|---|
| 3 | | <command interpreter="python">random_intervals_no_bits.py $regions $input2 $input1 $out_file1 $input2_chromCol $input2_startCol $input2_endCol $input1_chromCol $input1_startCol $input1_endCol $input1_strandCol $use_mask $strand_overlaps ${GALAXY_DATA_INDEX_DIR}</command> |
|---|
| | 3 | <command interpreter="python">random_intervals_no_bits.py $regions $input2 $input1 $out_file1 ${input2.metadata.chromCol} ${input2.metadata.startCol} ${input2.metadata.endCol} ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} ${input1.metadata.strandCol} $use_mask $strand_overlaps ${GALAXY_DATA_INDEX_DIR}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param name="input1" type="data" format="interval" label="File to Mimick"> |
|---|
| … | … | |
| 22 | 22 | <column name="dbkey" index="0"/> |
|---|
| 23 | 23 | <filter type="data_meta" ref="input1" key="dbkey" column="0" /> |
|---|
| | 24 | <validator type="no_options" message="This tool currently only works with ENCODE data from genome builds hg16 or hg17."/> |
|---|
| 24 | 25 | </options> |
|---|
| 25 | 26 | </param> |
|---|
| … | … | |
| 32 | 33 | .. class:: warningmark |
|---|
| 33 | 34 | |
|---|
| 34 | | This tool currently only works with data from genome builds hg16 or hg17. |
|---|
| | 35 | This tool currently only works with ENCODE data from genome builds hg16 or hg17. |
|---|
| 35 | 36 | |
|---|
| 36 | 37 | ----- |
|---|
| r1172 |
r1451 |
|
| 58 | 58 | strandCol = int( sys.argv[7] )-1 |
|---|
| 59 | 59 | except: |
|---|
| 60 | | stop_err( "Bad strand column: %s" % ( str( sys.argv[7] ) ) ) |
|---|
| | 60 | strandCol = -1 |
|---|
| 61 | 61 | |
|---|
| 62 | 62 | line_count = 0 |
|---|
| r1313 |
r1451 |
|
| 1 | 1 | #!/usr/bin/env python |
|---|
| 2 | 2 | """ |
|---|
| 3 | | usage: extract_genomic_dna.py $input $out_file1 $input_chromCol $input_startCol $input_endCol $input_strandCol $dbkey $out_format GALAXY_DATA_INDEX_DIR |
|---|
| | 3 | usage: extract_genomic_dna.py $input $out_file1 ${input.metadata.chromCol} ${input.metadata.startCol} ${input.metadata.endCol} ${input.metadata.strandCol} $dbkey $out_format GALAXY_DATA_INDEX_DIR |
|---|
| 4 | 4 | by Wen-Yu Chung |
|---|
| 5 | 5 | """ |
|---|
| r1396 |
r1451 |
|
| 1 | 1 | <tool id="Extract genomic DNA 1" name="Extract Genomic DNA" version="2.1.0"> |
|---|
| 2 | 2 | <description>using coordinates from assembled/unassembled genomes</description> |
|---|
| 3 | | <command interpreter="python">extract_genomic_dna.py $input $out_file1 $input_chromCol $input_startCol $input_endCol $input_strandCol $dbkey $out_format ${GALAXY_DATA_INDEX_DIR}</command> |
|---|
| | 3 | <command interpreter="python">extract_genomic_dna.py $input $out_file1 ${input.metadata.chromCol} ${input.metadata.startCol} ${input.metadata.endCol} ${input.metadata.strandCol} $dbkey $out_format ${GALAXY_DATA_INDEX_DIR}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input" type="data" label="Fetch sequences corresponding to Query"> |
|---|
| r1338 |
r1451 |
|
| 1 | 1 | <tool id="phastOdds_for_intervals" name="Compute phastOdds score" version="1.0.0"> |
|---|
| 2 | 2 | <description>for each interval</description> |
|---|
| 3 | | <command interpreter="python">get_scores_galaxy.py $per_col ${score_file}.h5 ${score_file}.mapping.bed $input $output $input_chromCol $input_startCol $input_endCol</command> |
|---|
| | 3 | <command interpreter="python">get_scores_galaxy.py $per_col ${score_file}.h5 ${score_file}.mapping.bed $input $output ${input.metadata.chromCol} ${input.metadata.startCol} ${input.metadata.endCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input" type="data" label="Interval file"> |
|---|
| r1356 |
r1451 |
|
| 2 | 2 | <description>given a set of genomic intervals</description> |
|---|
| 3 | 3 | <command interpreter="python"> |
|---|
| 4 | | #if $maf_source_type.maf_source == "user":#interval2maf.py --dbkey=$input1_dbkey --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafFile=$maf_source_type.mafFile --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc |
|---|
| 5 | | #else:#interval2maf.py --dbkey=$input1_dbkey --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafType=$maf_source_type.mafType --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc |
|---|
| | 4 | #if $maf_source_type.maf_source == "user":#interval2maf.py --dbkey=${input1.dbkey} --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafFile=$maf_source_type.mafFile --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc |
|---|
| | 5 | #else:#interval2maf.py --dbkey=${input1.dbkey} --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafType=$maf_source_type.mafType --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc |
|---|
| 6 | 6 | #end if |
|---|
| 7 | 7 | </command> |
|---|
| r1356 |
r1451 |
|
| 1 | 1 | <tool id="Interval2Maf_pairwise1" name="Extract Pairwise MAF blocks"> |
|---|
| 2 | 2 | <description>given a set of genomic intervals</description> |
|---|
| 3 | | <command interpreter="python">interval2maf.py --dbkey=$input1_dbkey --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafType=$mafType --interval_file=$input1 --output_file=$out_file1 --indexLocation=${GALAXY_DATA_INDEX_DIR}/maf_pairwise.loc</command> |
|---|
| | 3 | <command interpreter="python">interval2maf.py --dbkey=${input1.dbkey} --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafType=$mafType --interval_file=$input1 --output_file=$out_file1 --indexLocation=${GALAXY_DATA_INDEX_DIR}/maf_pairwise.loc</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param name="input1" type="data" format="interval" label="Interval File"> |
|---|
| r1356 |
r1451 |
|
| 1 | 1 | <tool id="Interval_Maf_Merged_Fasta2" name="Stitch MAF blocks"> |
|---|
| 2 | 2 | <description>given a set of genomic intervals</description> |
|---|
| 3 | | <command interpreter="python">#if $maf_source_type.maf_source == "user":#interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_file --interval_file=$input1 --output_file=$out_file1 --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafSourceType=$maf_source_type.maf_source --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR} |
|---|
| 4 | | #else:#interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_identifier --interval_file=$input1 --output_file=$out_file1 --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafSourceType=$maf_source_type.maf_source --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR} |
|---|
| | 3 | <command interpreter="python">#if $maf_source_type.maf_source == "user":#interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_file --interval_file=$input1 --output_file=$out_file1 --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafSourceType=$maf_source_type.maf_source --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR} |
|---|
| | 4 | #else:#interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_identifier --interval_file=$input1 --output_file=$out_file1 --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafSourceType=$maf_source_type.maf_source --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR} |
|---|
| 5 | 5 | #end if |
|---|
| 6 | 6 | </command> |
|---|
| r1356 |
r1451 |
|
| 4 | 4 | maf_stats.py |
|---|
| 5 | 5 | #if $maf_source_type.maf_source == "user": |
|---|
| 6 | | $maf_source_type.maf_source $input2 $input1 $out_file1 $dbkey $input1_chromCol $input1_startCol $input1_endCol $summary |
|---|
| | 6 | $maf_source_type.maf_source $input2 $input1 $out_file1 $dbkey ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} $summary |
|---|
| 7 | 7 | #else: |
|---|
| 8 | | $maf_source_type.maf_source $maf_source_type.mafType $input1 $out_file1 $dbkey $input1_chromCol $input1_startCol $input1_endCol $summary |
|---|
| | 8 | $maf_source_type.maf_source $maf_source_type.mafType $input1 $out_file1 $dbkey ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} $summary |
|---|
| 9 | 9 | #end if |
|---|
| 10 | 10 | ${GALAXY_DATA_INDEX_DIR} |
|---|
| r1323 |
r1451 |
|
| 1 | 1 | <tool id="gops_basecoverage_1" name="Base Coverage"> |
|---|
| 2 | 2 | <description>of all intervals</description> |
|---|
| 3 | | <command interpreter="python">gops_basecoverage.py $input1 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol</command> |
|---|
| | 3 | <command interpreter="python">gops_basecoverage.py $input1 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data"> |
|---|
| r1323 |
r1451 |
|
| 1 | 1 | <tool id="gops_cluster_1" name="Cluster"> |
|---|
| 2 | 2 | <description>the intervals of a query</description> |
|---|
| 3 | | <command interpreter="python">gops_cluster.py $input1 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -d $distance -m $minregions -o $returntype</command> |
|---|
| | 3 | <command interpreter="python">gops_cluster.py $input1 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -d $distance -m $minregions -o $returntype</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data"> |
|---|
| r1353 |
r1451 |
|
| 1 | 1 | <tool id="gops_complement_1" name="Complement"> |
|---|
| 2 | 2 | <description>intervals of a query</description> |
|---|
| 3 | | <command interpreter="python">gops_complement.py $input1 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -l ${GALAXY_DATA_INDEX_DIR}/shared/ucsc/chrom/${dbkey}.len $allchroms</command> |
|---|
| | 3 | <command interpreter="python">gops_complement.py $input1 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -l ${GALAXY_DATA_INDEX_DIR}/shared/ucsc/chrom/${dbkey}.len $allchroms</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data"> |
|---|
| r1129 |
r1451 |
|
| 1 | 1 | <tool id="gops_concat_1" name="Concatenate"> |
|---|
| 2 | 2 | <description>two queries into one query</description> |
|---|
| 3 | | <command interpreter="python">gops_concat.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol $sameformat</command> |
|---|
| | 3 | <command interpreter="python">gops_concat.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} $sameformat</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" help="First query"> |
|---|
| r1323 |
r1451 |
|
| 1 | 1 | <tool id="gops_coverage_1" name="Coverage"> |
|---|
| 2 | 2 | <description>of a set of intervals on second set of intervals</description> |
|---|
| 3 | | <command interpreter="python">gops_coverage.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol</command> |
|---|
| | 3 | <command interpreter="python">gops_coverage.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" help="First query"> |
|---|
| r1255 |
r1451 |
|
| 1 | 1 | <tool id="flanking_features_1" name="Fetch closest feature" version="2.0.0"> |
|---|
| 2 | 2 | <description> for every interval</description> |
|---|
| 3 | | <command interpreter="python">flanking_features.py $input1 $input2 $out_file1 $direction -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol</command> |
|---|
| | 3 | <command interpreter="python">flanking_features.py $input1 $input2 $out_file1 $direction -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" label="For every interval in"/> |
|---|
| r1129 |
r1451 |
|
| 1 | 1 | <tool id="get_flanks1" name="Get flanks"> |
|---|
| 2 | 2 | <description>returns flanking region/s for every gene</description> |
|---|
| 3 | | <command interpreter="python">get_flanks.py $input $out_file1 $size $direction $region -o $offset -l $input_chromCol,$input_startCol,$input_endCol,$input_strandCol</command> |
|---|
| | 3 | <command interpreter="python">get_flanks.py $input $out_file1 $size $direction $region -o $offset -l ${input.metadata.chromCol},${input.metadata.startCol},${input.metadata.endCol},${input.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input" type="data" label="Select data"/> |
|---|
| r1281 |
r1451 |
|
| 1 | 1 | <tool id="gops_intersect_1" name="Intersect"> |
|---|
| 2 | 2 | <description>the intervals of two queries</description> |
|---|
| 3 | | <command interpreter="python">gops_intersect.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol -m $min $returntype</command> |
|---|
| | 3 | <command interpreter="python">gops_intersect.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} -m $min $returntype</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param name="returntype" type="select" label="Return" help="(see figure below)"> |
|---|
| r1129 |
r1451 |
|
| 1 | 1 | <tool id="gops_join_1" name="Join"> |
|---|
| 2 | 2 | <description>the intervals of two queries side-by-side</description> |
|---|
| 3 | | <command interpreter="python">gops_join.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol -m $min -f $fill</command> |
|---|
| | 3 | <command interpreter="python">gops_join.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} -m $min -f $fill</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" help="First query"> |
|---|
| r1323 |
r1451 |
|
| 1 | 1 | <tool id="gops_merge_1" name="Merge"> |
|---|
| 2 | 2 | <description>the overlapping intervals of a query</description> |
|---|
| 3 | | <command interpreter="python">gops_merge.py $input1 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol $returntype</command> |
|---|
| | 3 | <command interpreter="python">gops_merge.py $input1 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} $returntype</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data"> |
|---|
| r1323 |
r1451 |
|
| 1 | 1 | <tool id="gops_subtract_1" name="Subtract"> |
|---|
| 2 | 2 | <description>the intervals of two queries</description> |
|---|
| 3 | | <command interpreter="python">gops_subtract.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol -m $min $returntype</command> |
|---|
| | 3 | <command interpreter="python">gops_subtract.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} -m $min $returntype</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input2" type="data" help="Second query"> |
|---|
| r1291 |
r1451 |
|
| 1 | 1 | <tool id="featureCoverage1" name="Feature coverage" version="2.0.0"> |
|---|
| 2 | 2 | <description></description> |
|---|
| 3 | | <command interpreter="python">featureCounter.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol</command> |
|---|
| | 3 | <command interpreter="python">featureCounter.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <param format="interval" name="input1" type="data" help="First query"> |
|---|
| r1129 |
r1451 |
|
| 1 | 1 | <tool id="winSplitter" name="Make windows"> |
|---|
| 2 | 2 | <description></description> |
|---|
| 3 | | <command interpreter="python">windowSplitter.py $input $size $out_file1 ${wintype.choice} ${wintype.offset} -l $input_chromCol,$input_startCol,$input_endCol,$input_strandCol</command> |
|---|
| | 3 | <command interpreter="python">windowSplitter.py $input $size $out_file1 ${wintype.choice} ${wintype.offset} -l ${input.metadata.chromCol},${input.metadata.startCol},${input.metadata.endCol},${input.metadata.strandCol}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <!--<param label="Genome" name="dbkey" type="genomebuild"/>--> |
|---|
| r1356 |
r1451 |
|
| 2 | 2 | <description>Appends the average, min, max of datapoints per interval</description> |
|---|
| 3 | 3 | <command interpreter="python"> |
|---|
| 4 | | #if $score_source_type.score_source == "user":#aggregate_scores_in_intervals.py $score_source_type.input2 $input1 $input1_chromCol $input1_startCol $input1_endCol $out_file1 --chrom_buffer=3 |
|---|
| 5 | | #else:#aggregate_scores_in_intervals.py $score_source_type.datasets $input1 $input1_chromCol $input1_startCol $input1_endCol $out_file1 -b |
|---|
| | 4 | #if $score_source_type.score_source == "user":#aggregate_scores_in_intervals.py $score_source_type.input2 $input1 ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} $out_file1 --chrom_buffer=3 |
|---|
| | 5 | #else:#aggregate_scores_in_intervals.py $score_source_type.datasets $input1 ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} $out_file1 -b |
|---|
| 6 | 6 | #end if |
|---|
| 7 | 7 | </command> |
|---|