Mercurial > repos > devteam > fastq_manipulation
comparison fastq_manipulation.xml @ 2:16d28d67ebeb draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/galaxy_sequence_utils/fastq_manipulation commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
author | devteam |
---|---|
date | Fri, 18 Dec 2015 19:28:39 -0500 |
parents | b50aeae8bcaa |
children | 7ea141c4c834 |
comparison
equal
deleted
inserted
replaced
1:b50aeae8bcaa | 2:16d28d67ebeb |
---|---|
1 <tool id="fastq_manipulation" name="Manipulate FASTQ" version="1.0.1"> | 1 <tool id="fastq_manipulation" name="Manipulate FASTQ" version="1.0.2"> |
2 <options sanitize="False" /> <!-- This tool uses a file to rely all parameter information (actually a dynamically generated python module), we can safely not sanitize any parameters --> | 2 <options sanitize="False" /> <!-- This tool uses a file to rely all parameter information (actually a dynamically generated python module), we can safely not sanitize any parameters --> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="1.0.0">galaxy_sequence_utils</requirement> | 4 <requirement type="package" version="1.0.0">galaxy_sequence_utils</requirement> |
5 </requirements> | 5 </requirements> |
6 <description>reads on various attributes</description> | 6 <description>reads on various attributes</description> |
99 <when value="offsets_absolute"> | 99 <when value="offsets_absolute"> |
100 <param name="left_column_offset" label="Offset from 5' end" value="0" type="integer" help="Values start at 0, increasing from the left"> | 100 <param name="left_column_offset" label="Offset from 5' end" value="0" type="integer" help="Values start at 0, increasing from the left"> |
101 <validator type="in_range" message="Base Offsets must be positive" min="0" max="inf"/> | 101 <validator type="in_range" message="Base Offsets must be positive" min="0" max="inf"/> |
102 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator> | 102 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator> |
103 </param> | 103 </param> |
104 <param name="right_column_offset" label="Offset from 3' end" value="0" type="integer" help="Values start at 0, increasing from the right"> | 104 <param name="right_column_offset" label="Offset from 3' end" value="0" type="integer" help="Values start at 0, increasing from the right; use a negative value to remove everything to the right of the absolute value of the position"> |
105 <validator type="in_range" message="Base Offsets must be positive" min="0" max="inf"/> | |
106 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator> | 105 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator> |
107 </param> | 106 </param> |
108 </when> | 107 </when> |
109 <when value="offsets_percent"> | 108 <when value="offsets_percent"> |
110 <param name="left_column_offset" label="Offset from 5' end" value="0" type="float"> | 109 <param name="left_column_offset" label="Offset from 5' end" value="0" type="float"> |
206 right_column_offset = int( round( float( ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['right_column_offset'] } ) / 100.0 * float( len( new_read ) ) ) ) | 205 right_column_offset = int( round( float( ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['right_column_offset'] } ) / 100.0 * float( len( new_read ) ) ) ) |
207 #else | 206 #else |
208 left_column_offset = ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['left_column_offset'] } | 207 left_column_offset = ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['left_column_offset'] } |
209 right_column_offset = ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['right_column_offset'] } | 208 right_column_offset = ${ manipulate_block['manipulation_type']['manipulation']['offset_type']['right_column_offset'] } |
210 #end if | 209 #end if |
211 if right_column_offset > 0: | 210 if right_column_offset != 0: |
212 right_column_offset = -right_column_offset | 211 right_column_offset = -right_column_offset |
213 else: | 212 else: |
214 right_column_offset = None | 213 right_column_offset = None |
215 new_read = new_read.slice( left_column_offset, right_column_offset ) | 214 new_read = new_read.slice( left_column_offset, right_column_offset ) |
216 if not ( ${str( manipulate_block['manipulation_type']['manipulation']['keep_zero_length'] ) == 'keep_zero_length'} or len( new_read ) ): | 215 if not ( ${str( manipulate_block['manipulation_type']['manipulation']['keep_zero_length'] ) == 'keep_zero_length'} or len( new_read ) ): |