muscle_bio 0.2.0 → 0.3.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
2
  SHA1:
3
- metadata.gz: 27aa0358df79d390e3ca21f2dd17b76057528b5e
4
- data.tar.gz: ed573ec60398e0b2af16edafeec7125c5876832e
3
+ metadata.gz: aa933fcac87a7b3662ee990c35d61d1df51a26ba
4
+ data.tar.gz: 3b87a66959ff6d3dd2811290507fb40f022555f4
5
5
  SHA512:
6
- metadata.gz: 5d2d0fdf747ea6de8fb8aed3d19c9885396ef2b25d2190c05f2ab81515a2fca4dd86c0240bed8f69c8fc6603f92ee58edd3c928e8ae728cde1e811c1cc54131a
7
- data.tar.gz: 25cf67384b8d0154484238f9ae40631ad7c0cb43861b6ebb76ab8ce1e4727a28aef40ab6ebcd769249260195d2d00af5b4057d86b40f880bba34342dc3ef4b7c
6
+ metadata.gz: e75e2958cb504d8d394af1817471c814c5cf24daa215dea5de4a82100d456add5b47efe073c9bc5eca2a17748c39dc20101cf91190917bfc2e537a5a903ab20e
7
+ data.tar.gz: b9c12e81029f8d2b707712bf364232ada0315466974758c5ad195574b688ee8580ed6832acbdf3ccd6580f3f3b111ce53dd9c3197944f0c07e14ac34d932d757
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- muscle_bio (0.1.0)
4
+ muscle_bio (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # MuscleBio
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/muscle_bio`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Supported on Mac, Linux, and Windows.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,22 +20,13 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
23
+ require 'muscle_bio'
34
24
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/muscle_bio. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
25
+ MuscleBio.run('muscle -in ../sample/sequence.fasta -out ../sample/sequence.afa')
36
26
 
37
- ## License
27
+ #pass string in as your current Muscle command
38
28
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
29
 
41
- ## Code of Conduct
30
+ MuscleBio.init(fileIn, fileOut, maxIters)
42
31
 
43
- Everyone interacting in the MuscleBio project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/muscle_bio/blob/master/CODE_OF_CONDUCT.md).
32
+ #maxIters is optional
@@ -8,8 +8,16 @@ module MuscleBio
8
8
  file = File.join( File.dirname(__FILE__), 'runnable/'+file)
9
9
  cmd = cmd.sub 'sudo ', ''
10
10
  cmd = cmd.sub 'muscle', file
11
- cmd = 'sudo ' + cmd
11
+ cmd = 'sudo ' + cmd + " -quiet"
12
12
  `#{cmd}`
13
13
  end
14
14
 
15
+ def self.init(fileIn, fileOut, maxIters = nil)
16
+ cmd = "muscle -in " + fileIn + " -out " + fileOut
17
+ if maxIters != nil
18
+ cmd += " -maxiters " + maxIters
19
+ end
20
+ self.run(cmd)
21
+ end
22
+
15
23
  end
@@ -1,3 +1,3 @@
1
1
  module MuscleBio
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["clarkmu@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Run Muscle from Ruby gem}
13
- spec.description = %q{Multiple Sequence Alignment for Ruby scripts. Muscle found at https://www.ebi.ac.uk/Tools/msa/muscle/}
13
+ spec.description = %q{Multiple Sequence Alignment for Ruby scripts. Muscle found at https://www.ebi.ac.uk/Tools/msa/muscle/. For instructions on how to use, see https://github.com/clarkmu/muscle_bio}
14
14
  spec.homepage = "http://swanstrom.web.unc.edu/"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muscle_bio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Clark
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: Multiple Sequence Alignment for Ruby scripts. Muscle found at https://www.ebi.ac.uk/Tools/msa/muscle/
55
+ description: Multiple Sequence Alignment for Ruby scripts. Muscle found at https://www.ebi.ac.uk/Tools/msa/muscle/. For
56
+ instructions on how to use, see https://github.com/clarkmu/muscle_bio
56
57
  email:
57
58
  - clarkmu@gmail.com
58
59
  executables: []