Mercurial > repos > iuc > polypolish
diff polypolish.xml @ 3:915637bd1d1a draft default tip
planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/polypolish commit f3b5a8f978923c5bbf663b0a99025245458e6ee0
author | iuc |
---|---|
date | Tue, 12 Nov 2024 09:56:40 +0000 |
parents | f355085dd2aa |
children |
line wrap: on
line diff
--- a/polypolish.xml Thu Jan 11 16:44:56 2024 +0000 +++ b/polypolish.xml Tue Nov 12 09:56:40 2024 +0000 @@ -5,9 +5,9 @@ <macros> <import>macro.xml</import> </macros> - <expand macro='xrefs'/> - <expand macro="requirements" /> - <expand macro="version_command" /> + <expand macro="xrefs"/> + <expand macro="requirements"/> + <expand macro="version_command"/> <command detect_errors="aggressive"><![CDATA[ ln -s '$input.fasta_file' input_data && #*====================================== @@ -21,7 +21,7 @@ #else echo "${input.sam_data_type.single_sam} not a sam/bam file" #end if - polypolish input_data input_sam > '$polished_fasta' + polypolish polish input_data input_sam > '$polished_fasta' #*====================================== For paired SAM ======================================*# @@ -41,15 +41,15 @@ echo "${input.sam_data_type.single_sam} not a sam/bam file" #end if #if $input.sam_data_type.insert_filter.filter_select == 'filter' - polypolish_insert_filter.py --low '$input.sam_data_type.insert_filter.low' + polypolish filter --low '$input.sam_data_type.insert_filter.low' --high '$input.sam_data_type.insert_filter.high' --in1 sample_R1.sam --in2 sample_R2.sam --out1 'filtered_1.sam' --out2 'filtered_2.sam' && - polypolish input_data 'filtered_1.sam' 'filtered_2.sam' > $polished_fasta + polypolish polish input_data 'filtered_1.sam' 'filtered_2.sam' > $polished_fasta #else - polypolish input_data sample_R1.sam sample_R2.sam > $polished_fasta + polypolish polish input_data sample_R1.sam sample_R2.sam > $polished_fasta #end if #*====================================== For multiple single-end SAM @@ -65,7 +65,7 @@ echo "${single_sam} is not a sam/bam file" #end if #end for - polypolish input_data single_collection/*.sam > '$polished_fasta' + polypolish polish input_data single_collection/*.sam > '$polished_fasta' #*====================================== For multiple paired-end SAM ======================================*# @@ -83,7 +83,7 @@ ln -s '$paired_sam.reverse' 'paired_collection/reverse_input$(value)$(paired_sam.reverse.element_identifier).sam' && #end if #if $input.sam_data_type.insert_filter.filter_select == 'filter' - polypolish_insert_filter.py --low '$input.sam_data_type.insert_filter.low' + polypolish filter --low '$input.sam_data_type.insert_filter.low' --high '$input.sam_data_type.insert_filter.high' --in1 'paired_collection/forward_input$(value)$(paired_sam.forward.element_identifier).sam' --in2 'paired_collection/reverse_input$(value)$(paired_sam.reverse.element_identifier).sam' @@ -95,9 +95,9 @@ Filtering option ======================================*# #if $input.sam_data_type.insert_filter.filter_select == 'filter' - polypolish input_data paired_collection/*_filtered.sam > '$polished_fasta' + polypolish polish input_data paired_collection/*_filtered.sam > '$polished_fasta' #else - polypolish input_data paired_collection/*.sam > '$polished_fasta' + polypolish polish input_data paired_collection/*.sam > '$polished_fasta' #end if #end if #*====================================== @@ -116,8 +116,7 @@ </command> <inputs> <section name="input" title="Input sequences" expanded="True"> - <param name="fasta_file" type="data" format="fasta" label="Select a draft genome for polishing" - help="Fasta sequence to be cleaned using short-reads data"/> + <param name="fasta_file" type="data" format="fasta" label="Select a draft genome for polishing" help="Fasta sequence to be cleaned using short-reads data"/> <conditional name="sam_data_type"> <param name="sam_selector" type="select" label="Select aligned data to polish" help="Choose number of aligned sam/bam files. Need aligned file with all possible locations in aligner option"> <option value="single">Single SAM/BAM file</option> @@ -143,14 +142,10 @@ </conditional> </section> <section name="options" title="Options" expanded="False"> - <param argument="--min_depth" type="integer" min="0" value="5" label="Minimal depth" - help="A base must occur at least this many times in the pileup to be considered valid [default: 5]"/> - <param argument="--fraction_invalid" type="float" min="0" value="0.2" max="1" label="Minimal invalid fraction" - help="A base must make up less than this fraction of the read depth to be considered invalid [default: 0.2]"/> - <param argument="--max_errors" type="integer" min="0" value="10" label="Number of mismatch/indels to ignore alignments" - help="Ignore alignments with more than this many mismatches and indels [default: 10]"/> - <param argument="--fraction_valid" type="float" min="0" value="0.5" max="1" label="Minimal valid fraction" - help="A base must make up at least this fraction of the read depth to be considered valid [default: 0.5"/> + <param argument="--min_depth" type="integer" min="0" value="5" label="Minimal depth" help="A base must occur at least this many times in the pileup to be considered valid [default: 5]"/> + <param argument="--fraction_invalid" type="float" min="0" value="0.2" max="1" label="Minimal invalid fraction" help="A base must make up less than this fraction of the read depth to be considered invalid [default: 0.2]"/> + <param argument="--max_errors" type="integer" min="0" value="10" label="Number of mismatch/indels to ignore alignments" help="Ignore alignments with more than this many mismatches and indels [default: 10]"/> + <param argument="--fraction_valid" type="float" min="0" value="0.5" max="1" label="Minimal valid fraction" help="A base must make up at least this fraction of the read depth to be considered valid [default: 0.5"/> <param name="keep_logfile" type="boolean" truevalue="true" falsevalue="false" label="Keep log file"/> <param argument="--debug" type="boolean" truevalue="true" falsevalue="false" label="Keep per base information file"/> </section> @@ -369,29 +364,29 @@ <section name="input"> <param name="fasta_file" value="contigs.fa"/> <conditional name="sam_data_type"> - <param name="sam_selector" value="multiple_paired"/> - <param name="paired_collection"> - <collection type="list:paired"> - <element name="paired_1"> - <collection type="paired"> - <element name="forward" value="aligned_test_file/alignement_R1.bam" ftype="unsorted.bam"/> - <element name="reverse" value="aligned_test_file/alignement_R2.bam" ftype="unsorted.bam"/> - </collection> - </element> - <element name="paired_2"> - <collection type="paired"> - <element name="forward" value="aligned_test_file/alignement_R1_bis.bam" ftype="unsorted.bam"/> - <element name="reverse" value="aligned_test_file/alignement_R2_bis.bam" ftype="unsorted.bam"/> - </collection> - </element> - <element name="paired_3"> - <collection type="paired"> - <element name="forward" value="aligned_test_file/alignement_R1_ter.bam" ftype="unsorted.bam"/> - <element name="reverse" value="aligned_test_file/alignement_R2_ter.bam" ftype="unsorted.bam"/> - </collection> - </element> - </collection> - </param> + <param name="sam_selector" value="multiple_paired"/> + <param name="paired_collection"> + <collection type="list:paired"> + <element name="paired_1"> + <collection type="paired"> + <element name="forward" value="aligned_test_file/alignement_R1.bam" ftype="unsorted.bam"/> + <element name="reverse" value="aligned_test_file/alignement_R2.bam" ftype="unsorted.bam"/> + </collection> + </element> + <element name="paired_2"> + <collection type="paired"> + <element name="forward" value="aligned_test_file/alignement_R1_bis.bam" ftype="unsorted.bam"/> + <element name="reverse" value="aligned_test_file/alignement_R2_bis.bam" ftype="unsorted.bam"/> + </collection> + </element> + <element name="paired_3"> + <collection type="paired"> + <element name="forward" value="aligned_test_file/alignement_R1_ter.bam" ftype="unsorted.bam"/> + <element name="reverse" value="aligned_test_file/alignement_R2_ter.bam" ftype="unsorted.bam"/> + </collection> + </element> + </collection> + </param> </conditional> </section> <section name="options"> @@ -429,7 +424,7 @@ <output name="debug_file" value="debug_file_test_2.tsv"/> </test> </tests> - <help><![CDATA[ + <help><![CDATA[ **What it does** Polypolish is a tool for polishing genome assemblies with short reads. Polypolish uses SAM/BAM files where each read has been aligned to all possible locations (not just a single best location).