Changeset 1463:66be239241bc
- Timestamp:
- 08/01/08 14:34:16
(5 months ago)
- Author:
- greg
- branch:
- default
- Message:
Fix for gops metadata param parser when strand column not included in input dataset, added new test for gops intersect. Fix for datatype converters - now use new approach to metadata params.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1375 |
r1463 |
|
| 1 | 1 | <tool id="CONVERTER_fastqsolexa_to_qual_0" name="Convert Fastqsolexa to Qual"> |
|---|
| 2 | | <command interpreter="python">fastqsolexa_to_qual_converter.py $input1 $output1 $input1.extension</command> |
|---|
| | 2 | <command interpreter="python">fastqsolexa_to_qual_converter.py $input1 $output1 ${input1.extension}</command> |
|---|
| 3 | 3 | <inputs> |
|---|
| 4 | 4 | <param format="fastqsolexa" name="input1" type="data" label="Choose Fastqsolexa file"/> |
|---|
| r1129 |
r1463 |
|
| 2 | 2 | <!-- <description>__NOT_USED_CURRENTLY_FOR_CONVERTERS__</description> --> |
|---|
| 3 | 3 | <!-- Used on the metadata edit page. --> |
|---|
| 4 | | <command interpreter="python">interval_to_bed_converter.py $output1 $input1 $input1_chromCol $input1_startCol $input1_endCol $input1_strandCol</command> |
|---|
| | 4 | <command interpreter="python">interval_to_bed_converter.py $output1 $input1 ${input1.metadata.chromCol} ${input1.metadata.startCol} ${input1.metadata.endCol} ${input1.metadata.strandCol}</command> |
|---|
| 5 | 5 | <inputs> |
|---|
| 6 | 6 | <page> |
|---|
| r1129 |
r1463 |
|
| 1 | 1 | <tool id="CONVERTER_maf_to_interval_0" name="Convert MAF to Genomic Intervals"> |
|---|
| 2 | 2 | <!-- <description>__NOT_USED_CURRENTLY_FOR_CONVERTERS__</description> --> |
|---|
| 3 | | <command interpreter="python">maf_to_interval_converter.py $output1 $input1 $input1_dbkey</command> |
|---|
| | 3 | <command interpreter="python">maf_to_interval_converter.py $output1 $input1 ${input1.metadata.dbkey}</command> |
|---|
| 4 | 4 | <inputs> |
|---|
| 5 | 5 | <page> |
|---|
| r1323 |
r1463 |
|
| 14 | 14 | sys.exit( 1 ) |
|---|
| 15 | 15 | |
|---|
| 16 | | # Default chrom, start, end, stran cols for a bed file |
|---|
| | 16 | # Default chrom, start, end, strand cols for a bed file |
|---|
| 17 | 17 | BED_DEFAULT_COLS = 0, 1, 2, 5 |
|---|
| 18 | 18 | |
|---|
| … | … | |
| 20 | 20 | """Parse a columns command line argument into a four-tuple""" |
|---|
| 21 | 21 | if cols: |
|---|
| 22 | | return map( lambda x: int( x ) - 1, cols.split(",") ) |
|---|
| | 22 | col_list = map( lambda x: int( x ) - 1, cols.split(",") ) |
|---|
| | 23 | if len( col_list ) == 3: |
|---|
| | 24 | # We only have chrom, start and end cols, so we need to add a strand col |
|---|
| | 25 | col_list.append( -1 ) |
|---|
| | 26 | return col_list |
|---|
| 23 | 27 | else: |
|---|
| 24 | 28 | return BED_DEFAULT_COLS |
|---|
| r1451 |
r1463 |
|
| 51 | 51 | <output name="output" file="gops_intersect_bigint_out.interval" /> |
|---|
| 52 | 52 | </test> |
|---|
| | 53 | <test> |
|---|
| | 54 | <param name="input1" value="12.bed" ftype="bed" /> |
|---|
| | 55 | <param name="input2" value="1.bed" ftype="bed" /> |
|---|
| | 56 | <param name="min" value="1" /> |
|---|
| | 57 | <param name="returntype" value="" /> |
|---|
| | 58 | <output name="output" file="gops_intersect_no_strand_out.bed" /> |
|---|
| | 59 | </test> |
|---|
| 53 | 60 | </tests> |
|---|
| 54 | 61 | <help> |
|---|