# HG changeset patch # User azomics # Date 1595505053 14400 # Node ID fddd754b8bcbd5db09c947ecd4a179e31a8ed41c "planemo upload for repository https://github.com/AstraZeneca-Omics/immport-galaxy-tools/tree/develop/flowtools/flowclr_sample_name commit 0d94c83066ae8396ffa2821a6cb751ed471e7bf5" diff -r 000000000000 -r fddd754b8bcb flowclr_sample_name.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flowclr_sample_name.xml Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,102 @@ + + a flow clustered or tabular text file collection. + + sed + + + + + '$output'; + + #if $sample_names + #set $identifiers = [ x.strip() for x in $sample_names.split(",") ] + #else + #set $identifiers = [ i.element_identifier for i in $inputs ] + #end if + + #if len($identifiers) != len($inputs) + # echo "Error, number of file identifiers/samples doesn't match the number of files."; + # exit(1) + #end if + + #for $i, $input in enumerate($inputs) + tail -n +2 '$input' | sed "s/\$/\t$identifiers[$i]/" >> '$output'; + #end for# + ]]> + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r fddd754b8bcb test-data/input1.flowclr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/input1.flowclr Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,5 @@ +FSC SSC CD4 CCR7 CD8 CCR3 Population +289 56 438 0 626 480 3 +352 153 30 147 483 386 6 +383 190 156 228 734 408 7 +261 62 432 121 598 555 3 diff -r 000000000000 -r fddd754b8bcb test-data/input2.flowclr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/input2.flowclr Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,4 @@ +FSC SSC CD4 CCR7 CD8 CCR3 Population +289 56 438 0 626 480 3 +352 153 30 147 483 386 6 +261 62 432 121 598 555 3 diff -r 000000000000 -r fddd754b8bcb test-data/input3.flowclr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/input3.flowclr Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,5 @@ +FSC SSC CD4 CCR7 CD8 CCR3 Population +289 56 438 0 626 480 3 +352 153 30 147 483 386 6 +383 190 156 228 734 408 7 +261 62 432 121 598 555 3 diff -r 000000000000 -r fddd754b8bcb test-data/output1.flowtext --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/output1.flowtext Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,12 @@ +FSC SSC CD4 CCR7 CD8 CCR3 Population Sample +289 56 438 0 626 480 3 input1.flowclr +352 153 30 147 483 386 6 input1.flowclr +383 190 156 228 734 408 7 input1.flowclr +261 62 432 121 598 555 3 input1.flowclr +289 56 438 0 626 480 3 input2.flowclr +352 153 30 147 483 386 6 input2.flowclr +261 62 432 121 598 555 3 input2.flowclr +289 56 438 0 626 480 3 input3.flowclr +352 153 30 147 483 386 6 input3.flowclr +383 190 156 228 734 408 7 input3.flowclr +261 62 432 121 598 555 3 input3.flowclr diff -r 000000000000 -r fddd754b8bcb test-data/output2.flowtext --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/output2.flowtext Thu Jul 23 07:50:53 2020 -0400 @@ -0,0 +1,12 @@ +FSC SSC CD4 CCR7 CD8 CCR3 Population Sample +289 56 438 0 626 480 3 S1 +352 153 30 147 483 386 6 S1 +383 190 156 228 734 408 7 S1 +261 62 432 121 598 555 3 S1 +289 56 438 0 626 480 3 S2 +352 153 30 147 483 386 6 S2 +261 62 432 121 598 555 3 S2 +289 56 438 0 626 480 3 S3 +352 153 30 147 483 386 6 S3 +383 190 156 228 734 408 7 S3 +261 62 432 121 598 555 3 S3