1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
require "fileutils"
Name "gt seqfilter -minlength"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}nGASP/protein_100.fas", ".")
run_test "#{$bin}gt seqfilter -minlength 1000 " \
"./protein_100.fas"
run "diff #{last_stdout} #{$testdata}nGASP/protein_long.fas"
end
Name "gt seqfilter -maxlength"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}nGASP/protein_100.fas", ".")
run_test "#{$bin}gt seqfilter -maxlength 499 " \
"./protein_100.fas"
run "diff #{last_stdout} #{$testdata}nGASP/protein_short.fas"
end
Name "gt seqfilter -maxseqnum"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}nGASP/protein_100.fas", ".")
run_test "#{$bin}gt seqfilter -maxseqnum 10 " \
"./protein_100.fas"
run "diff #{last_stdout} #{$testdata}nGASP/protein_10.fas"
end
Name "gt seqfilter -step"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}nGASP/protein_100.fas", ".")
run_test "#{$bin}gt seqfilter -step 10 " \
"./protein_100.fas"
run "diff #{last_stdout} #{$testdata}nGASP/protein_10th.fas"
end
Name "gt seqfilter -sample"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}nGASP/protein_100.fas", ".")
run_test "#{$bin}gt seqfilter -sample 0.5 " \
"./protein_100.fas"
end
Name "gt seqfilter -nowildcards"
Keywords "gt_seqfilter"
Test do
FileUtils.copy("#{$testdata}U89959_ests.fas", ".")
run_test "#{$bin}gt seqfilter -nowildcards " \
"./U89959_ests.fas"
run "diff #{last_stdout} #{$testdata}U89959_ests_no_wildcards.fas"
FileUtils.copy("#{$testdata}seqfilter_prot_wildcard.fas", ".")
run_test "#{$bin}gt seqfilter -nowildcards " \
"./seqfilter_prot_wildcard.fas"
run "diff #{last_stdout} #{$testdata}seqfilter_prot_wildcard_no_wildcards.fas"
end
|