# HG changeset patch # User iuc # Date 1729069732 0 # Node ID a019807f4e67e1c5e36557365b6f6a9552a467cc # Parent 4b494533146a2b508aa953063f128086f7469ae8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 75d5141110314addc160504e0a1f9cd66443de66 diff -r 4b494533146a -r a019807f4e67 seqtk_mergefa.xml --- a/seqtk_mergefa.xml Sat Dec 09 11:14:21 2023 +0000 +++ b/seqtk_mergefa.xml Wed Oct 16 09:08:52 2024 +0000 @@ -1,6 +1,6 @@ - - merge two FASTA/Q files + + Merge two FASTA/Q files into a FASTA file output macros.xml @@ -18,17 +18,28 @@ '$in_fa2' #echo "| pigz -p ${GALAXY_SLOTS:-1} --no-name --no-time" if $in_fa1.is_of_type('fasta.gz', 'fastq.gz') else "" # > '$default' ]]> + + +#set $ext = None +#if $in_fa1.is_of_type('fasta.gz', 'fastq.gz') + #set $ext = "fasta.gz" +#else + #set $ext = "fasta" +#end if +{"default": {"ext": "$ext"}} + + - + - + - - + + @@ -52,24 +63,27 @@ test0 - ACTGACTGAAA + >seq1 + ACTGACTGAAA + + >seq2 + ACTGAMTGCGN - # seq2.fa - >test0 - ACTGAMTGCGN +will result in:: + + >seq1 + ACTGAMTGMRN -In the following the `-m` option has been set to highlight seqtk-mergefa's features. +If the `-m` option is in use, however, the tool will pick the least ambiguous base if there is no contradiction between the symbols in the inputs. Conflicts are indicated by using x in the merged sequence and the picked base is converted to lowercase if the less specific symbol is an N to express uncertainty. +With this logic the input sequences above will result in the merge result:: -:: - - >test0 - ACTGACTGxxa + >seq1 + ACTGACTGxxa @ATTRIBUTION@ ]]> diff -r 4b494533146a -r a019807f4e67 seqtk_seq.xml --- a/seqtk_seq.xml Sat Dec 09 11:14:21 2023 +0000 +++ b/seqtk_seq.xml Wed Oct 16 09:08:52 2024 +0000 @@ -1,5 +1,5 @@ - + common transformation of FASTA/Q macros.xml @@ -34,13 +34,25 @@ '$in_file' @CONDITIONAL_GZIP_OUT@ ]]> + + +#if $A and $in_file.is_of_type('fasta.gz', 'fastq.gz') + #set $ext = "fasta.gz" +#elif $A + #set $ext = "fasta" +#else + #set $ext = $in_file.ext +#end if +{"default": {"ext": "$ext"}} + + - + - + @@ -53,26 +65,37 @@ - - + + + - + - + + + + + + + + + + + SEQ_ID1 +GATTTGGGGTTCAAAGCAGTATCGATCAAATAGTAAATCCATTTGTTCAACTCACAGTTT diff -r 4b494533146a -r a019807f4e67 test-data/seqtk_seq_A.fasta.gz Binary file test-data/seqtk_seq_A.fasta.gz has changed