File: gt_seqfilter_include.rb

package info (click to toggle)
genometools 1.6.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 50,504 kB
  • sloc: ansic: 271,868; ruby: 30,327; python: 4,942; sh: 3,230; makefile: 1,214; perl: 219; pascal: 159; haskell: 37; sed: 5
file content (57 lines) | stat: -rw-r--r-- 1,759 bytes parent folder | download | duplicates (8)
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