Repository revision
19:12615d397df7

Repository 'text_processing'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/text_processing

Unique lines tool metadata
Miscellaneous
Unique lines
assuming sorted input file
tp_uniq_tool
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/9.3+galaxy0
9.3+galaxy0
uniq --version | head -n 1
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/9.3+galaxy1
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/9.3+galaxy0 (this tool)
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/1.1.1
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/1.1.0
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_uniq_tool/1.0.0
tp_uniq_tool
Requirements (dependencies defined in the <requirements> tag set)
name version type
coreutils 9.3 package
sed 4.8 package
Additional information about this tool
uniq
            #if $skipfields:
                -f $skipfields
            #end if
            $ignorecase

            #if $grouping.grouping_select == 'yes':
                --group=$grouping.group
            #else:
                $grouping.count
                $grouping.repeated
                $grouping.uniqueonly
            #end if

            '$infile'

            #if $grouping.grouping_select == 'no' and $grouping.count:
                ## count will print the count with spaces in front of the line and
                ## with a space (not a tab) after the number, we need to cahnge that
                | sed -e 's/ *//' -e 's/ /\t/'
            #end if
            > '$outfile'

    
None
False
Functional tests
name inputs outputs required files
Test-1 infile: sorted_uniq1.tabular
grouping|count: True
grouping|uniqueonly: True
grouping|grouping_select: no
ignorecase: True
name: value
sorted_uniq1.tabular
value
Test-2 infile: sorted_uniq1.tabular
grouping|group: separate
grouping|grouping_select: yes
ignorecase: True
name: value
sorted_uniq1.tabular
value