Repository revision
9:37af7f0540e5

Repository 'mothur_make_group'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/mothur_make_group

Make.group tool metadata
Miscellaneous
Make.group
Make a group file
mothur_make_group
toolshed.g2.bx.psu.edu/repos/iuc/mothur_make_group/mothur_make_group/1.39.5.0
1.39.5.0
mothur "#help()" | sed '7q;d' | cut -d" " -f2
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_make_group/mothur_make_group/1.39.5.0 (this tool)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_make_group/mothur_make_group/1.36.1.0
mothur_make_group
Requirements (dependencies defined in the <requirements> tag set)
name version type
mothur 1.39.5 package
Additional information about this tool
set -o pipefail; export TERM=vt100; 

#import re

#set fastas = ''
#set groups = ''
#set count = 0

#if $method.how == 'collection':
    #for $i in $method.fasta_collection:
        #set $identifier=re.sub('[^\w_]', '_', str($i.element_identifier))
        ln -s '$i' 'fasta_${identifier}.dat' &&
        #set fastas+='fasta_'+$identifier+'.dat-'
        #set groups+=$identifier+'-'
    #end for
#else
    #for $i in $method.inputs:
        ln -s '$i.fasta' fasta_${count}.dat &&
        #set fastas+='fasta_'+str($count)+'.dat-'
        #set groups+=str($i.group)+'-'
        #set count+=1
    #end for
#end if

echo 'make.group(
    fasta=${ str($fastas).rstrip('-') },
    groups=${ str($groups).rstrip('-') }
)'
| sed 's/ //g'  ## mothur trips over whitespace
| mothur
| tee mothur.out.log
    
None
False
Functional tests
name inputs outputs required files
Test-1 method|inputs_0|fasta: Mock_S280_L001_R1_001_small.trim.contigs.good.align_head
method|inputs_0|group: testgroup
method|inputs_1|fasta: Mock_S280_L001_R1_001_small.trim.contigs.good.align_head
method|inputs_1|group: testgroup2
method|how: manually
savelog: True
name: value
name: value
Mock_S280_L001_R1_001_small.trim.contigs.good.align_head
value
Test-2 method|fasta_collection: list collection
method|how: collection
savelog: True
name: value
name: value
Mock_S280_L001_R1_001_small.trim.contigs.good.align_head
value
Test-3 method|fasta_collection: list collection
method|how: collection
savelog: True
name: value
name: value
Mock_S280_L001_R1_001_small.trim.contigs.good.align_head
value