muscle_bio 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8836c15a40b87918d321842dea3a197ba82f9d15
4
- data.tar.gz: 8f4bdc93effa4fdce1fddeda15396dd1185bd8b7
2
+ SHA256:
3
+ metadata.gz: b9bddb09f6263aafe70d7212d7b44b2340c68f8bc097ea8136761951f073ed9d
4
+ data.tar.gz: 50c6af382b99e721b3640c45e2b5cd293bff404ec3cfa627e986d30ef2f4194f
5
5
  SHA512:
6
- metadata.gz: d5f881d227141eafda1e9d1f3f77adc0b7b7d7b19da1f94cb50ce4a203a66ecc30ab73d6d0d2fd768d44cade9c4e634756b513f6326f0b3b962d8308182baf9c
7
- data.tar.gz: e9db0d200636a410c095fffdc89e2610967b4b4b52bb25f8a556c3bd925d7c84b19fd1c98897f0884b4f9c5a529b79e0103e60e6a692a96dec70cb141bb54a69
6
+ metadata.gz: eab1345502bcf4f7dc1650309bf8022bed9156535e34815a70ac4ca1da2f210989527ef85b136d8f52383fd1f07971a93ba60761cefad43d0b0472246f632f87
7
+ data.tar.gz: a15e9eb67ef7da31d0161cbd6cc5b5bd02f10779a7ff3580da2fc57f8335be688bf7b8f219ab6167e21a62b4e01976c8a7c553818ffab8f8e91a7c1ba70cb064
data/.DS_Store CHANGED
Binary file
data/.gitignore CHANGED
@@ -11,4 +11,5 @@
11
11
  .rspec_status
12
12
 
13
13
  .DS_STORE
14
- *.gem
14
+ *.gem
15
+ .DS_Store
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- muscle_bio (0.3.0)
4
+ muscle_bio (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.3)
10
- rake (10.4.2)
10
+ rake (13.0.1)
11
11
  rspec (3.8.0)
12
12
  rspec-core (~> 3.8.0)
13
13
  rspec-expectations (~> 3.8.0)
@@ -28,8 +28,8 @@ PLATFORMS
28
28
  DEPENDENCIES
29
29
  bundler (~> 2.0)
30
30
  muscle_bio!
31
- rake (~> 10.0)
31
+ rake (~> 13.0)
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
35
- 2.0.1
35
+ 2.2.32
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MuscleBio
2
2
 
3
- Supported on Mac, Linux, and Windows.
3
+ Supported on Mac-Intel64, Mac-AMR64, Linux, and Windows. Support Muscle 5.1.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,13 +20,16 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
+ ```{ruby}
23
24
  require 'muscle_bio'
24
25
 
25
- MuscleBio.run('muscle -in ../sample/sequence.fasta -out ../sample/sequence.afa')
26
-
27
- #pass string in as your current Muscle command
28
-
29
-
30
- MuscleBio.init(fileIn, fileOut, maxIters)
26
+ MuscleBio.exec(
27
+ '/sample/sequence.fasta', # input file
28
+ '/sample/sequence.afa', # output file
29
+ :PPP # choose from :PPP or :Super5
30
+ )
31
+ ```
31
32
 
32
- #maxIters is optional
33
+ ### Version history
34
+ * v0.5.0 - update Muscle to version 5.1.
35
+ * v0.4.0 - Muscle 3.8.1
@@ -1,3 +1,3 @@
1
1
  module MuscleBio
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/muscle_bio.rb CHANGED
@@ -2,25 +2,33 @@ require "muscle_bio/version"
2
2
 
3
3
  module MuscleBio
4
4
 
5
- def self.run(cmd, useSudo = false)
6
- file = (/darwin/ =~ RUBY_PLATFORM) != nil ? "muscle_mac_64" :
7
- (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil ? "muscle_windows_32.exe" : "muscle_linux_64"
8
- file = File.join( File.dirname(__FILE__), 'runnable/'+file)
9
- cmd = cmd.sub 'sudo ', ''
10
- cmd = cmd.sub 'muscle', file
11
- cmd = cmd + " -quiet"
12
- if useSudo
13
- cmd = 'sudo ' + cmd
5
+ def self.run(cmd)
6
+ case RUBY_PLATFORM
7
+ when /arm64/
8
+ file = "muscle5.1.macos_arm64"
9
+ when /x86.*darwin/
10
+ file = "muscle5.1.macos_intel64"
11
+ when /cygwin|mswin|mingw|bccwin|wince|emx/
12
+ file = "muscle5.1.win64.exe"
13
+ else
14
+ file = "muscle5.1.linux_intel64"
14
15
  end
15
- `#{cmd}`
16
+
17
+ file = File.join( File.dirname(__FILE__), 'runnable/'+file)
18
+ cmd = file + "\s" + cmd + " -quiet"
19
+ `#{cmd}`
16
20
  end
17
21
 
18
- def self.init(fileIn, fileOut, maxIters = nil)
19
- cmd = "muscle -in " + fileIn + " -out " + fileOut
20
- if maxIters != nil
21
- cmd += " -maxiters " + maxIters
22
- end
22
+ ### two algorithms to choose, :PPP or Super5
23
+ def self.exec(fileIn, fileOut, algorithm = :PPP)
24
+ if algorithm == :PPP
25
+ cmd = "-align " + fileIn + " -output " + fileOut
26
+ elsif algorithm == :Super5
27
+ cmd = "-super5 " + fileIn + " -output " + fileOut
28
+ else
29
+ raise "algorithm not found. Muscle aborted."
30
+ end
23
31
  self.run(cmd)
24
32
  end
25
33
 
26
- end
34
+ end
Binary file
Binary file
data/muscle_bio.gemspec CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 2.0"
27
- spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rake", "~> 13.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
  end
@@ -1,60 +1,48 @@
1
- >test1
2
- -----------------------------------------------------------G
3
- ACAGGTAGACTGTAGCCCA--------------GGAATATGGCA----------------
4
- ---ACTAGATTGTACACATCTAGAAGGAAAAATT---------------ATCCTGGTAGC
5
- AGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCGGAGACAGGACAGGA
6
- AACAGCATAC-------TTCCTCTTAAAATTAGCAGGAAGATGGCCAGTAAAAACAATAC
7
- ATACAGACAATGGCAGCAATTTCA---CCAGTACTACAGTTAAGGCCGCCTGTTGGTGGG
8
- CAGGGATTACACAGGAATTTGGTATTCCCTACAATCCCCAAAGTCAAGGAGTAGTAGAAT
9
- CTATGAATAAAGAATTAAAGAAAAT------------------------TATAGGACAAG
10
- TGAGAGATCAGGCTGAACAT--CTTAAGACA----------------------
11
- >test3
12
- -----------------------------------------------------------G
13
- ACAAGTAGACTGTAGCCCA--------------GGAATATGGCA----------------
14
- ---ACTAGATTGTACACATCTAGAAGGAAAAATT---------------ATCCTGGTAGC
15
- AGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCAGAAACAGGACAGGA
16
- AACAGCATAC-------TTCCTCTTAAAATTAGCAGGAAGATGGCCAGTAAAAACAATAC
17
- ATACAGATAATGGCAGTAATTTCA---CCAGTACTACAGTTAAGGCCGCATGCTGGTGGG
18
- CAGGGATCAAACAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGTAGAAT
19
- CTATGAATAAAGAATTAAAGAAAAT------------------------TATAGGGCAAG
20
- TAAGAGATCAGGCTGAACAT--CTTAAGACA----------------------
21
- >test2
22
- -----------------------------------------------------------G
23
- ACAAGTAGACTGTAGCCCA--------------GGAATATGGCA----------------
24
- ---ACTAGATTGCACACATTTAGAAGGAAAAATT---------------ATCCTGGTAGC
25
- AGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCAGAGACAGGGAGTGA
26
- AACAGCATAC-------TTCCTCTTAAAGTTGGCAGGAAGATGGCCAGTAAAAACAATAC
27
- ATACAGACAATGGCAGCAATTTCA---CCAGTACTACAGTTAAGGCCGCCTGTTGGTGGG
28
- CAGGGATCAAGCAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGTAGAAT
29
- CTATGAATAAAGAATTAAAGAAGAT------------------------CATAGGACAAG
30
- TAAGAGATCAGGCTGAACAT--CTTAAAACA----------------------
31
- >test4
32
- -----------------------------------------------------------G
33
- ACAAGTAGACTGTAGCCCA--------------GGAATATGGCA----------------
34
- ---ACTAGATTGTACACATTTAGAAGGAAAAATT---------------ATCCTGGTAGC
35
- AGTACATGTAGCCAGTGGATACATAGAAGCAGAAGTTATTCCAGCAGAGACAGGGAGTGA
36
- AACAGCACAC-------TTCCTCTTAAAATTAGCAGGAAGATGGCCAGTAAAAACAATAC
37
- ATACAGACAATGGCAGCAATTTCA---CCAGTGCTACAGTGAAGGCCGCATGCTGGTGGG
38
- CAGGGATCAAACAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGTAGAAT
39
- CTATGAATAAAGAATTAAAGAAAAT------------------------CATAGGACAAG
40
- TAAGAGATCAGGCTGAACAT--CTTAAGACA----------------------
41
1
  >test5
42
- ATTAGTAGAAATTTGTGCAGAAATGGAAAAGGAAGGGAAAATTTCAAAAATTGGGCCTGA
43
- AAATCCATACAATACTCCAGTGTTTGCAATAAAGAAAAAGGACAGTACTAAGTGGAGAAA
44
- ATTAGTAGATTTTAGAGAACTGAATAAGAAAACTCAAGACTTCTGGGAGGTTCAATTAGG
45
- AATAC-CACACCCGGCAGGGTTAAGAAAGAAAAAATCAGT--AACAGTATTAGATGTGGG
46
- GGATGCATATTTTTCAGTTCCCTTAGATAAAGGGATGGAAAGGATCACCAGCAATATTCC
47
- A-AAGTAGCATGACAAAAATTTTAGAGCCTTTCAGAAAACAAAATCCAGACATAGTTATC
48
- TATCAATACATGGATGACTTGTATGTAGGCTCTGACTTAGAAGTAGAGCAACA-TAGAGC
49
- --AAAAATAGAGAACCTAAGAGAACATCTGTTGAAGTGGGGACTTACTACACCAGACAA-
50
- -AAAGCATCAGAAAGAACCTCCCTTCCATTGGATGGGTTATGAACTCCATCCT
2
+ A-TTAGTAGAAATTTGTGCAGAAATGGAAAAGGAAGGGAAAATTTCAAAAATTGGGCCTGAAAATCCATACAATACTCCA
3
+ GTGTTTGCAATAAAGAAAAAGGA-CAGTACTAAGTGGAGAAAATTAGTAGATTTTAGAGAACTGAATAAGAAAACTCAAG
4
+ ACTTCTGGGAGGTTCAATTAGGAATACCACACCCGGCAGGGTTAAGAAAGAAAAAATCAGTAACAGTATTAGATGTGGGG
5
+ GATG-CATATTTTTCAGTTCCCTTAGATAA-----------AGGGATGGAAAGGATCACCAGCAATATTCCAAAGTAGCA
6
+ TGACAAAAATTTTA-GAGCCTTTCAGAAAACAAAATCCAGACATAGTTATCTATCAATACATGGATGACTTGTATGTAGG
7
+ CTCTGACTTAGAAGTAGAGCAACATAGAGCAAAAATAGAGAACCTAAGAGAACATCTGTTGAAGTGGGGACTTACTACAC
8
+ CAGACAAAAAGCATCAGAAAGAACCTCCCTTCCA---TTGGA--T-GGGTT-ATGAACTCCATCCT
9
+ >test4
10
+ GACAAGTAGACTGTAGCCCAGGAATAT-----GGCAACTAGATTGTACACATTTAGAAGGAAAAAT----------TATC
11
+ CTGGTAGCAGTACATGTAGCCAGTGGATACATAGAAGCAGAAGTTATTCCAGCAGAGACA-GGGAGTGAAACAGCACACT
12
+ TCCTCT------TAAAATTAGCAGGAAGA------------------------TGGCCAGTAAAAACAATACATACAGAC
13
+ AATGGCAGCAATTTCACCAGTGCTACAGTGAAGGCCGCATGCTGGTGGGCAGGGATCA----------------------
14
+ -AACAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGT---------------------------------
15
+ ---------------------------------------------------------------------AGAATCTATGA
16
+ ATA----AAG-AATTAAAGAAAA--TCATAGGACAAGTAAGAGATCAGGCTGAACATCTTAAGACA
51
17
  >test6
52
- -------------------------------------------CCTCAAATCACTCTTTG
53
- GCAACGACCCCTCGTCACAGT-----------AAAGATAGGGGG----------------
54
- ---------------TCAGCTAAAGGAG---------------------GCTCTATTAG-
55
- --------------------ATACAGGAGCAGATGATA------------CAGTTTTAGA
56
- AGAAATGTAT-------------------TTGCCAGGAAAATGGAAACCAAAAATGAT--
57
- --AGGGGGAATTGGAGGTTTTATC---AAAGTAAGACAA-TATGATCAGATATTAGTA--
58
- -------------GAAATTTG----TGGACATAAAGCAATAGGTACAGTATTAATAGGAC
59
- CTA----------------------------------------------CACCTGTCAA-
60
- --CATAATTGGAAGAAATCT--GTTGACTCAGATTGGTTGCACTCTAAACTTT
18
+ CCTCAAATCACTCTT-----------T-----GGCAA---------------------------CG----------ACCC
19
+ CTCGTCACAGTAAAGATAGGGGGTCAGCTAAAGGAGGCTCTATTAGATACAGGAGCA-------GATGATACAGTTTTAG
20
+ AAGAAA------TGTATTTGCCAGGAAAA------------------------TGGAAACCAAAAATGAT----AGGGGG
21
+ AATTGGAGGTTTTATCAAAGTAAGACAATATG-ATCAGATATTAG-----------------------------------
22
+ ---TAGAAATTTGT----GGACATAAAGCAATAGGTACAGTATTAAT---------------------------------
23
+ ---------------------------------------------------------------------AGGACCTACAC
24
+ CTGTCAACAT-AATTGGAAGAAA--TCTGTTGAC---TCAGA--T-TGGTT-GCACTCTAAACTTT
25
+ >test1
26
+ GACAGGTAGACTGTAGCCCAGGAATAT-----GGCAACTAGATTGTACACATCTAGAAGGAAAAAT----------TATC
27
+ CTGGTAGCAGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCGGAGACA-GGACAGGAAACAGCATACT
28
+ TCCTCT------TAAAATTAGCAGGAAGA------------------------TGGCCAGTAAAAACAATACATACAGAC
29
+ AATGGCAGCAATTTCACCAGTACTACAGTTAAGGCCGCCTGTTGGTGGGCAGGGATTA----------------------
30
+ -CACAGGAATTTGGTATTCCCTACAATCCCCAAAGTCAAGGAGTAGT---------------------------------
31
+ ---------------------------------------------------------------------AGAATCTATGA
32
+ ATA----AAG-AATTAAAGAAAA--TTATAGGACAAGTGAGAGATCAGGCTGAACATCTTAAGACA
33
+ >test2
34
+ GACAAGTAGACTGTAGCCCAGGAATAT-----GGCAACTAGATTGCACACATTTAGAAGGAAAAAT----------TATC
35
+ CTGGTAGCAGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCAGAGACA-GGGAGTGAAACAGCATACT
36
+ TCCTCT------TAAAGTTGGCAGGAAGA------------------------TGGCCAGTAAAAACAATACATACAGAC
37
+ AATGGCAGCAATTTCACCAGTACTACAGTTAAGGCCGCCTGTTGGTGGGCAGGGATCA----------------------
38
+ -AGCAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGT---------------------------------
39
+ ---------------------------------------------------------------------AGAATCTATGA
40
+ ATA----AAG-AATTAAAGAAGA--TCATAGGACAAGTAAGAGATCAGGCTGAACATCTTAAAACA
41
+ >test3
42
+ GACAAGTAGACTGTAGCCCAGGAATAT-----GGCAACTAGATTGTACACATCTAGAAGGAAAAAT----------TATC
43
+ CTGGTAGCAGTTCATGTAGCCAGTGGATATATAGAAGCAGAAGTTATTCCAGCAGAAACA-GGACAGGAAACAGCATACT
44
+ TCCTCT------TAAAATTAGCAGGAAGA------------------------TGGCCAGTAAAAACAATACATACAGAT
45
+ AATGGCAGTAATTTCACCAGTACTACAGTTAAGGCCGCATGCTGGTGGGCAGGGATCA----------------------
46
+ -AACAGGAATTTGGCATTCCCTACAATCCCCAAAGTCAAGGAGTAGT---------------------------------
47
+ ---------------------------------------------------------------------AGAATCTATGA
48
+ ATA----AAG-AATTAAAGAAAA--TTATAGGGCAAGTAAGAGATCAGGCTGAACATCTTAAGACA
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muscle_bio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Clark
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-21 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -75,9 +75,10 @@ files:
75
75
  - lib/.DS_Store
76
76
  - lib/muscle_bio.rb
77
77
  - lib/muscle_bio/version.rb
78
- - lib/runnable/muscle_linux_64
79
- - lib/runnable/muscle_mac_64
80
- - lib/runnable/muscle_windows_32.exe
78
+ - lib/runnable/muscle5.1.linux_intel64
79
+ - lib/runnable/muscle5.1.macos_arm64
80
+ - lib/runnable/muscle5.1.macos_intel64
81
+ - lib/runnable/muscle5.1.win64.exe
81
82
  - muscle_bio.gemspec
82
83
  - sample/sample_seq.afa
83
84
  - sample/sample_seq.fasta
@@ -85,7 +86,7 @@ homepage: http://swanstrom.web.unc.edu/
85
86
  licenses:
86
87
  - MIT
87
88
  metadata: {}
88
- post_install_message:
89
+ post_install_message:
89
90
  rdoc_options: []
90
91
  require_paths:
91
92
  - lib
@@ -100,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  requirements: []
103
- rubyforge_project:
104
- rubygems_version: 2.5.2.3
105
- signing_key:
104
+ rubygems_version: 3.2.29
105
+ signing_key:
106
106
  specification_version: 4
107
107
  summary: Run Muscle from Ruby gem
108
108
  test_files: []
Binary file
Binary file
Binary file