# HG changeset patch # User iuc # Date 1697805687 0 # Node ID bd2a15dbcea1091e6849bcd9ccc9cedb83712048 # Parent aaa868913641ef1fa6413e43c7eea35d02044202 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/polypolish commit afc3449a0b68d43fd1179543815dfe23b951e157 diff -r aaa868913641 -r bd2a15dbcea1 macro.xml --- a/macro.xml Thu Sep 22 07:51:48 2022 +0000 +++ b/macro.xml Fri Oct 20 12:41:27 2023 +0000 @@ -1,7 +1,7 @@ 0.5.0 - 0 + 1 21.05 \${GALAXY_SLOTS:-7} @@ -33,8 +33,8 @@ - - + + diff -r aaa868913641 -r bd2a15dbcea1 polypolish.xml --- a/polypolish.xml Thu Sep 22 07:51:48 2022 +0000 +++ b/polypolish.xml Fri Oct 20 12:41:27 2023 +0000 @@ -14,25 +14,31 @@ For single SAM ======================================*# #if $input.sam_data_type.sam_selector == 'single' - #if $input.sam_data_type.single_sam.ext == 'unsorted.bam' + #if $input.sam_data_type.single_sam.is_of_type("unsorted.bam") samtools view -h $input.sam_data_type.single_sam > input_sam && #elif $input.sam_data_type.single_sam.ext == 'sam' ln -s $input.sam_data_type.single_sam input_sam && + #else + echo "${input.sam_data_type.single_sam} not a sam/bam file" #end if polypolish input_data input_sam > '$polished_fasta' #*====================================== For paired SAM ======================================*# #elif $input.sam_data_type.sam_selector == 'paired' - #if $input.sam_data_type.R1_sam.ext == 'unsorted.bam' + #if $input.sam_data_type.R1_sam.is_of_type("unsorted.bam") samtools view -h $input.sam_data_type.R1_sam > sample_R1.sam && #elif $input.sam_data_type.R1_sam.ext == 'sam' ln -s '$input.sam_data_type.R1_sam' sample_R1.sam && + #else + echo "${input.sam_data_type.single_sam} not a sam/bam file" #end if - #if $input.sam_data_type.R2_sam.ext == 'unsorted.bam' + #if $input.sam_data_type.R2_sam.is_of_type("unsorted.bam") samtools view -h $input.sam_data_type.R2_sam > sample_R2.sam && #elif $input.sam_data_type.R2_sam.ext == 'sam' ln -s '$input.sam_data_type.R2_sam' sample_R2.sam && + #else + 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' @@ -51,10 +57,12 @@ #elif $input.sam_data_type.sam_selector == 'multiple_single' mkdir single_collection && #for $value, $single_sam in enumerate($input.sam_data_type.single_collection): - #if $single_sam.ext == 'unsorted.bam' + #if $single_sam.is_of_type("unsorted.bam") samtools view -h $single_sam > 'single_collection/$(single_sam.element_identifier).sam' && #elif $single_sam.ext == 'sam' ln -s $single_sam 'single_collection/$(single_sam.element_identifier).$(single_sam.ext)' && + #else + echo "${single_sam} is not a sam/bam file" #end if #end for polypolish input_data single_collection/*.sam > '$polished_fasta' @@ -64,12 +72,12 @@ #elif $input.sam_data_type.sam_selector == "multiple_paired" mkdir paired_collection && #for $value, $paired_sam in enumerate($input.sam_data_type.paired_collection): - #if $paired_sam.forward.ext == 'unsorted.bam' + #if $paired_sam.forward.is_of_type("unsorted.bam") samtools view -h $paired_sam.forward > 'paired_collection/forward_input$(value)$(paired_sam.forward.element_identifier).sam' && #else ln -s '$paired_sam.forward' 'paired_collection/forward_input$(value)$(paired_sam.forward.element_identifier).sam' && #end if - #if $paired_sam.reverse.ext == 'unsorted.bam' + #if $paired_sam.reverse.is_of_type("unsorted.bam") samtools view -h $paired_sam.reverse > 'paired_collection/reverse_input$(value)$(paired_sam.reverse.element_identifier).sam' && #else ln -s '$paired_sam.reverse' 'paired_collection/reverse_input$(value)$(paired_sam.reverse.element_identifier).sam' && @@ -135,16 +143,16 @@
- - - - - +
@@ -343,9 +351,9 @@ - - - + + + @@ -392,6 +400,34 @@ + + +
+ + + + + +
+ +
+ + +
+ + + + + + +
+
+ + +
+ + +
Set input/output options - - This allow multiple ailgnemnt output need to use polypolish - - + This allow multiple ailgnemnt output need to use polypolish ]]>