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 +5 -5
- data/.DS_Store +0 -0
- data/.gitignore +2 -1
- data/Gemfile.lock +4 -4
- data/README.md +11 -8
- data/lib/muscle_bio/version.rb +1 -1
- data/lib/muscle_bio.rb +24 -16
- data/lib/runnable/muscle5.1.linux_intel64 +0 -0
- data/lib/runnable/muscle5.1.macos_arm64 +0 -0
- data/lib/runnable/muscle5.1.macos_intel64 +0 -0
- data/lib/runnable/muscle5.1.win64.exe +0 -0
- data/muscle_bio.gemspec +1 -1
- data/sample/sample_seq.afa +46 -58
- metadata +12 -12
- data/lib/runnable/muscle_linux_64 +0 -0
- data/lib/runnable/muscle_mac_64 +0 -0
- data/lib/runnable/muscle_windows_32.exe +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b9bddb09f6263aafe70d7212d7b44b2340c68f8bc097ea8136761951f073ed9d
|
4
|
+
data.tar.gz: 50c6af382b99e721b3640c45e2b5cd293bff404ec3cfa627e986d30ef2f4194f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab1345502bcf4f7dc1650309bf8022bed9156535e34815a70ac4ca1da2f210989527ef85b136d8f52383fd1f07971a93ba60761cefad43d0b0472246f632f87
|
7
|
+
data.tar.gz: a15e9eb67ef7da31d0161cbd6cc5b5bd02f10779a7ff3580da2fc57f8335be688bf7b8f219ab6167e21a62b4e01976c8a7c553818ffab8f8e91a7c1ba70cb064
|
data/.DS_Store
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
muscle_bio (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
|
+
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 (~>
|
31
|
+
rake (~> 13.0)
|
32
32
|
rspec (~> 3.0)
|
33
33
|
|
34
34
|
BUNDLED WITH
|
35
|
-
2.
|
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.
|
26
|
-
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
+
### Version history
|
34
|
+
* v0.5.0 - update Muscle to version 5.1.
|
35
|
+
* v0.4.0 - Muscle 3.8.1
|
data/lib/muscle_bio/version.rb
CHANGED
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
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
16
|
+
|
17
|
+
file = File.join( File.dirname(__FILE__), 'runnable/'+file)
|
18
|
+
cmd = file + "\s" + cmd + " -quiet"
|
19
|
+
`#{cmd}`
|
16
20
|
end
|
17
21
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
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", "~>
|
27
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
29
|
end
|
data/sample/sample_seq.afa
CHANGED
@@ -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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
+
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:
|
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: '
|
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: '
|
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/
|
79
|
-
- lib/runnable/
|
80
|
-
- lib/runnable/
|
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
|
-
|
104
|
-
|
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
|
data/lib/runnable/muscle_mac_64
DELETED
Binary file
|
Binary file
|