File: muscle.rb

package info (click to toggle)
ruby-bio 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,480 kB
  • ctags: 9,428
  • sloc: ruby: 74,117; xml: 3,383; makefile: 17; perl: 13; sh: 1
file content (52 lines) | stat: -rw-r--r-- 1,406 bytes parent folder | download | duplicates (10)
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
#
# = bio/appl/muscle.rb - MUSCLE application wrapper class
#
# Copyright:: Copyright (C) 2006-2007
#             Jeffrey Blakeslee and John Conery University of Oregon <jeffb@uoregon.edu>
#             Naohisa Goto <ng@bioruby.org>
# License::   The Ruby License
#
#  $Id: muscle.rb,v 1.1 2007/07/16 12:25:50 ngoto Exp $
#
#
# Bio::Muscle is a wrapper class to execute MUSCLE.
#
# == References
#
# * http://www.drive5.com/muscle/
# * Edgar R.C.
#   MUSCLE: multiple sequence alignment with high accuracy and
#   high throughput. Nucleic Acids Res. 32: 1792-1797, 2004.
# * Edgar, R.C.
#   MUSCLE: a multiple sequence alignment method with reduced time
#   and space complexity. BMC Bioinformatics 5: 113, 2004.
#

module Bio

  # Bio::Muscle is a wrapper class to execute MUSCLE.
  #
  # Please refer documents in bio/apple/muscle.rb for references.
  class Muscle < Bio::Alignment::FactoryTemplate::StdinInFileOut

    # default program name
    DEFAULT_PROGRAM = 'muscle'.freeze

    # default report parser
    DEFAULT_PARSER = Bio::Alignment::MultiFastaFormat

    private
    # generates options specifying input filename.
    # returns an array of string
    def _option_input_file(fn)
      [ '-in', fn ]
    end

    # generates options specifying output filename.
    # returns an array of string
    def _option_output_file(fn)
      [ '-out', fn ]
    end
  end #class Muscle

end #module Bio