CodonUsage 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 903272496abe6a395d721a40f4d503682a62df8e
4
- data.tar.gz: 290248d2dfb0913d68195e3bebc571400e650a75
3
+ metadata.gz: c81861b670bfb00e551e74e27364d805e6066756
4
+ data.tar.gz: 3d75b58dffeda5c14730397f9d10d3234c0b531c
5
5
  SHA512:
6
- metadata.gz: 5abb42139512d4dafd4a91f08caaf2017614cdbd6d2d5d296328b596dbb5ecdea3ed9ba3b419e225875cbaf59fe9952fde26cfb2ef8c0b004009b6ec4842ed13
7
- data.tar.gz: 311b7d03e4ff5f939e88885b4bdafd3d920f6dc9166d5bc3132f0c2c5a161439177789395534d647cdd0d58b8b7f4deefa3829f5bcbfd85dd555b655edf5c675
6
+ metadata.gz: 5e7b96acb769897a6ca3fa145a3b9938f5b6aebe1a75f2c19796505879aa4fe1ef6a0abc4dc88bb5b0ba89ca6955004dbab051b3d286218ef5ff15fd8dd304fb
7
+ data.tar.gz: 246d3a96f59b6bd630c0a9ea6523b1cf3c794f228431d69f4f9e2da6890243cb42fbbfe54d3e722f765b0168707d6c46870c9ee5ced3c72115519304d300ad4c
data/CodonUsage.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["hotdogcheng@gmail.com"]
11
11
  spec.summary = %q{A ruby gem that parses codon table from http://www.kazusa.or.jp/codon}
12
12
  spec.description = %q{A ruby gem that parses codon table from http://www.kazusa.or.jp/codon and turn it to hash or JSON}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/proxhotdog/CodonTable"
14
14
  spec.license = "GPLv3"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -19,6 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
- spec.add_development_dependency "rake"
23
22
  spec.add_development_dependency "rspec", "~> 2.14"
24
23
  end
data/README.md CHANGED
@@ -1,29 +1,17 @@
1
1
  # CodonUsage
2
2
  A ruby gem that parse Codon Usage table provided by: http://www.kazusa.or.jp/codon/
3
3
 
4
-
5
-
6
4
  ## Installation
7
-
8
- Add this line to your application's Gemfile:
9
-
10
- gem 'CodonUsage'
11
-
12
- And then execute:
13
-
14
- $ bundle
15
-
16
- Or install it yourself as:
17
-
18
5
  $ gem install CodonUsage
19
6
 
20
7
  ## Usage
21
- require "CodonUsage"
22
- foo = CodonUsage::KazusaDB.new(aa = "1", species = "9606")
8
+ require "CodonUsage" # load the gem
9
+ foo = CodonUsage::KazusaDB.new(aa = "1", species = "9606") # Noted that parameters should be STRING
23
10
  p foo.getURL
24
11
  p foo.getHash
25
- p foo.toJSON
12
+ p foo.to_json
26
13
 
14
+ for species, "9606" is homo sapiens ID.
27
15
 
28
16
  for aa, it is the codon translation table, default = "1":
29
17
  * 1: Standard
@@ -41,7 +29,6 @@ for aa, it is the codon translation table, default = "1":
41
29
  * 15: Blepharisma Nuclear Code
42
30
 
43
31
 
44
-
45
32
  ## Contributing
46
33
 
47
34
  1. Fork it ( http://github.com/proxhotdog/CodonUsage/fork )
@@ -1,3 +1,3 @@
1
1
  module CodonUsage
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,6 +8,8 @@ describe CodonUsage::KazusaDB do
8
8
  #let(:dblink) {"http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species="}
9
9
  it "Create object using default args" do
10
10
  CodonUsage::KazusaDB.new.getURL.should == "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=9606&aa=1&style=N"
11
+ p "Human codon preference"
12
+ p CodonUsage::KazusaDB.new.getHash
11
13
  end
12
14
  it "#aa 2" do
13
15
  CodonUsage::KazusaDB.new(aa: "2").getURL.should == "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=9606&aa=2&style=N"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CodonUsage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - proxhotdog
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -71,7 +57,7 @@ files:
71
57
  - lib/CodonUsage/version.rb
72
58
  - spec/CodonUsage_spec.rb
73
59
  - spec/spec_helper.rb
74
- homepage: ''
60
+ homepage: https://github.com/proxhotdog/CodonTable
75
61
  licenses:
76
62
  - GPLv3
77
63
  metadata: {}