CodonUsage 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CodonUsage.gemspec +2 -2
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -20
- data/README.md +3 -3
- data/lib/CodonUsage/kazusaDB.rb +1 -14
- data/lib/CodonUsage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e98fa638049cf13652967c4d3c6440c713b36a1b
|
4
|
+
data.tar.gz: b94d43c7043ae9126dad70acd976e714e374faa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5bb0fdc1edaf6f48e5ce5a84855eb38d0a658f4fbd4476866783509e39b88094f33e4beb8fd8e18dd49ef9c41f14ca688ce2e6cc7782f07f8a1cf956533683b
|
7
|
+
data.tar.gz: bdc3bf83dcdae1149b8fd031a6a768a2d219b0fcc574ba05e029b5a62b4e04f3895adce098ea0d0b160921d6c9d5c7e457748e36481ce755fa27499510715a29
|
data/CodonUsage.gemspec
CHANGED
@@ -10,8 +10,8 @@ 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 = "https://github.com/proxhotdog/
|
14
|
-
spec.license = "
|
13
|
+
spec.homepage = "https://github.com/proxhotdog/CodonUsage"
|
14
|
+
spec.license = "GPL v3"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,22 +1,3 @@
|
|
1
1
|
Copyright (c) 2014 proxhotdog
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
|
+
GPL v3
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# CodonUsage
|
2
|
-
A ruby gem that parses Codon Usage table provided by: http://www.kazusa.or.jp/codon/ that output the information in a hash or JSON
|
2
|
+
A ruby gem that parses Codon Usage table provided by: http://www.kazusa.or.jp/codon/ that output the information in a hash or JSON format. You can find this gem on http://rubygems.org/gems/CodonUsage
|
3
3
|
|
4
4
|
## Version
|
5
|
-
0.0.
|
5
|
+
0.0.4
|
6
6
|
|
7
7
|
## Disclaimer
|
8
8
|
I write this gem because bioruby doesn't provide any library for me to do this job, and this is my first ruby gem. Hope this gem can help people in the bioinformatics field! :)
|
@@ -23,7 +23,7 @@ I write this gem because bioruby doesn't provide any library for me to do this j
|
|
23
23
|
|
24
24
|
for the argument "species", default value = "9606" which is the ID of Homo sapiens (Human).
|
25
25
|
|
26
|
-
for the arguement "aa", it is the genetic code, default value = "1":
|
26
|
+
for the arguement "aa", it is the genetic code, default value = "1", for other values, please refer to the following list:
|
27
27
|
* 1: Standard
|
28
28
|
* 2: Vertebrate Mitochondrial
|
29
29
|
* 3: Yeast Mitochondrial
|
data/lib/CodonUsage/kazusaDB.rb
CHANGED
@@ -8,20 +8,7 @@ require "json"
|
|
8
8
|
|
9
9
|
module CodonUsage
|
10
10
|
class KazusaDB
|
11
|
-
def initialize(host: "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=", aa: "1", species: "9606")
|
12
|
-
#1: Standard
|
13
|
-
#2: Vertebrate Mitochondrial
|
14
|
-
#3: Yeast Mitochondrial
|
15
|
-
#4: Mold, Protozoan, Coelenterate Mitochondrial and Mycoplasma/Spiroplasma
|
16
|
-
#5: Invertebrate Mitochondrial
|
17
|
-
#6: Ciliate Macronuclear and Dasycladacean
|
18
|
-
#9: Echinoderm Mitochondrial
|
19
|
-
#10: ALternative Ciliate Macronuclear
|
20
|
-
#11: Eubacterial
|
21
|
-
#12: Alternative Yeast
|
22
|
-
#13: Ascidian Mitochondrial
|
23
|
-
#14: Flatworm Mitochondrial
|
24
|
-
#15: Blepharisma Nuclear Code
|
11
|
+
def initialize(host: "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=", aa: "1", species: "9606") # for default values of the arugments, please refer to README.md
|
25
12
|
@url = "#{host}#{species}&aa=#{aa}&style=N"
|
26
13
|
@codonPreferenceTable = {}
|
27
14
|
@codonTable = {}
|
data/lib/CodonUsage/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- proxhotdog
|
@@ -57,9 +57,9 @@ files:
|
|
57
57
|
- lib/CodonUsage/version.rb
|
58
58
|
- spec/CodonUsage_spec.rb
|
59
59
|
- spec/spec_helper.rb
|
60
|
-
homepage: https://github.com/proxhotdog/
|
60
|
+
homepage: https://github.com/proxhotdog/CodonUsage
|
61
61
|
licenses:
|
62
|
-
-
|
62
|
+
- GPL v3
|
63
63
|
metadata: {}
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|