bio-nexml 1.0.0 → 1.1.0
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.
- data/.gitignore +3 -0
- data/.travis.yml +10 -0
- data/Gemfile +11 -0
- data/README.mkd +459 -0
- data/Rakefile +36 -0
- data/TODO.txt +6 -0
- data/VERSION +1 -0
- data/bio-nexml.gemspec +27 -0
- data/lib/bio/db/nexml.rb +6 -19
- data/lib/bio/db/nexml/mapper/framework.rb +6 -9
- data/test/data/nexml/test.xml +69 -0
- data/test/unit/bio/db/nexml/tc_factory.rb +119 -0
- data/test/unit/bio/db/nexml/tc_mapper.rb +78 -0
- data/test/unit/bio/db/nexml/tc_matrix.rb +551 -0
- data/test/unit/bio/db/nexml/tc_parser.rb +21 -0
- data/test/unit/bio/db/nexml/tc_taxa.rb +118 -0
- data/test/unit/bio/db/nexml/tc_trees.rb +370 -0
- data/test/unit/bio/db/nexml/tc_writer.rb +633 -0
- metadata +61 -73
- data/README.rdoc +0 -53
metadata
CHANGED
@@ -1,79 +1,72 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-nexml
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Rutger Vos
|
14
9
|
- Anurag Priyam
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-05-09 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: bio
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &78329210 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 5
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 4
|
33
|
-
- 1
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 1.4.1
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: libxml-ruby
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: *78329210
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: libxml-ruby
|
28
|
+
requirement: &78370740 !ruby/object:Gem::Requirement
|
41
29
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 27
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 1
|
49
|
-
- 4
|
30
|
+
requirements:
|
31
|
+
- - =
|
32
|
+
- !ruby/object:Gem::Version
|
50
33
|
version: 1.1.4
|
51
34
|
type: :runtime
|
52
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *78370740
|
53
37
|
description: This plugin reads, writes and generates NeXML
|
54
|
-
email:
|
38
|
+
email:
|
55
39
|
- rutgeraldo@gmail.com
|
56
40
|
- anurag08priyam@gmail.com
|
57
41
|
executables: []
|
58
|
-
|
59
42
|
extensions: []
|
60
|
-
|
61
43
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
|
44
|
+
files:
|
45
|
+
- .gitignore
|
46
|
+
- .travis.yml
|
47
|
+
- Gemfile
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.mkd
|
50
|
+
- Rakefile
|
51
|
+
- TODO.txt
|
52
|
+
- VERSION
|
53
|
+
- bio-nexml.gemspec
|
54
|
+
- lib/bio-nexml.rb
|
55
|
+
- lib/bio/db/nexml.rb
|
56
|
+
- lib/bio/db/nexml/mapper.rb
|
64
57
|
- lib/bio/db/nexml/mapper/framework.rb
|
65
58
|
- lib/bio/db/nexml/mapper/inflection.rb
|
66
59
|
- lib/bio/db/nexml/mapper/repository.rb
|
67
|
-
- lib/bio/db/nexml/mapper.rb
|
68
60
|
- lib/bio/db/nexml/matrix.rb
|
69
61
|
- lib/bio/db/nexml/parser.rb
|
62
|
+
- lib/bio/db/nexml/schema/README.txt
|
70
63
|
- lib/bio/db/nexml/schema/abstract.xsd
|
64
|
+
- lib/bio/db/nexml/schema/characters/README.txt
|
71
65
|
- lib/bio/db/nexml/schema/characters/abstractcharacters.xsd
|
72
66
|
- lib/bio/db/nexml/schema/characters/characters.xsd
|
73
67
|
- lib/bio/db/nexml/schema/characters/continuous.xsd
|
74
68
|
- lib/bio/db/nexml/schema/characters/dna.xsd
|
75
69
|
- lib/bio/db/nexml/schema/characters/protein.xsd
|
76
|
-
- lib/bio/db/nexml/schema/characters/README.txt
|
77
70
|
- lib/bio/db/nexml/schema/characters/restriction.xsd
|
78
71
|
- lib/bio/db/nexml/schema/characters/rna.xsd
|
79
72
|
- lib/bio/db/nexml/schema/characters/standard.xsd
|
@@ -81,58 +74,53 @@ files:
|
|
81
74
|
- lib/bio/db/nexml/schema/external/xhtml-datatypes-1.xsd
|
82
75
|
- lib/bio/db/nexml/schema/external/xlink.xsd
|
83
76
|
- lib/bio/db/nexml/schema/external/xml.xsd
|
77
|
+
- lib/bio/db/nexml/schema/meta/README.txt
|
84
78
|
- lib/bio/db/nexml/schema/meta/annotations.xsd
|
85
79
|
- lib/bio/db/nexml/schema/meta/meta.xsd
|
86
|
-
- lib/bio/db/nexml/schema/meta/README.txt
|
87
80
|
- lib/bio/db/nexml/schema/nexml.xsd
|
88
|
-
- lib/bio/db/nexml/schema/README.txt
|
89
81
|
- lib/bio/db/nexml/schema/taxa/README.txt
|
90
82
|
- lib/bio/db/nexml/schema/taxa/taxa.xsd
|
83
|
+
- lib/bio/db/nexml/schema/trees/README.txt
|
91
84
|
- lib/bio/db/nexml/schema/trees/abstracttrees.xsd
|
92
85
|
- lib/bio/db/nexml/schema/trees/network.xsd
|
93
|
-
- lib/bio/db/nexml/schema/trees/README.txt
|
94
86
|
- lib/bio/db/nexml/schema/trees/tree.xsd
|
95
87
|
- lib/bio/db/nexml/schema/trees/trees.xsd
|
96
88
|
- lib/bio/db/nexml/taxa.rb
|
97
89
|
- lib/bio/db/nexml/trees.rb
|
98
90
|
- lib/bio/db/nexml/writer.rb
|
99
|
-
-
|
100
|
-
- lib/bio-nexml.rb
|
101
|
-
- LICENSE.txt
|
102
|
-
- README.rdoc
|
91
|
+
- test/data/nexml/test.xml
|
103
92
|
- test/test_bio-nexml.rb
|
104
|
-
|
105
|
-
|
93
|
+
- test/unit/bio/db/nexml/tc_factory.rb
|
94
|
+
- test/unit/bio/db/nexml/tc_mapper.rb
|
95
|
+
- test/unit/bio/db/nexml/tc_matrix.rb
|
96
|
+
- test/unit/bio/db/nexml/tc_parser.rb
|
97
|
+
- test/unit/bio/db/nexml/tc_taxa.rb
|
98
|
+
- test/unit/bio/db/nexml/tc_trees.rb
|
99
|
+
- test/unit/bio/db/nexml/tc_writer.rb
|
100
|
+
homepage: https://github.com/nexml/bio-nexml
|
101
|
+
licenses:
|
106
102
|
- MIT
|
107
103
|
post_install_message:
|
108
104
|
rdoc_options: []
|
109
|
-
|
110
|
-
require_paths:
|
105
|
+
require_paths:
|
111
106
|
- lib
|
112
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
108
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
119
|
-
- 0
|
120
|
-
version: "0"
|
121
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
114
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
version: "0"
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
130
119
|
requirements: []
|
131
|
-
|
132
120
|
rubyforge_project:
|
133
|
-
rubygems_version: 1.8.
|
121
|
+
rubygems_version: 1.8.10
|
134
122
|
signing_key:
|
135
123
|
specification_version: 3
|
136
124
|
summary: BioRuby plugin for reading and writing NeXML (http://nexml.org)
|
137
|
-
test_files:
|
125
|
+
test_files:
|
138
126
|
- test/test_bio-nexml.rb
|
data/README.rdoc
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
= bio-nexml
|
2
|
-
|
3
|
-
NeXML is a file format for phylogenetic data. It is inspired by the modular
|
4
|
-
architecture of the commonly-used NEXUS file format (hence the name) in that
|
5
|
-
a NeXML instance document can contain:
|
6
|
-
* sets of Operational Taxonomic Units (OTUs), i.e. the tips in phylogenetic
|
7
|
-
trees, and that which comparative observations are made on. Often these are
|
8
|
-
species ("taxa").
|
9
|
-
* sets of phylogenetic trees (or reticulate trees, i.e. networks)
|
10
|
-
* sets of comparative data, i.e. molecular sequences, morphological categorical
|
11
|
-
data, continuous data, and other types.
|
12
|
-
|
13
|
-
The elements in a NeXML document can be annotated using RDFa
|
14
|
-
(http://en.wikipedia.org/wiki/RDFa), which means that every object that can
|
15
|
-
be parsed out of a NeXML document must be an object that, in turn, can be
|
16
|
-
annotated with predicates (and their namespaces) and other objects (with,
|
17
|
-
perhaps, their own namespaces). The advantage over previous file formats is
|
18
|
-
that we can retain all metadata for all objects within one file, regardless
|
19
|
-
where the metadata come from.
|
20
|
-
|
21
|
-
NeXML can be transformed to RDF using an XSL stylesheet. As such, NeXML forms
|
22
|
-
an intermediate format between traditional flat file formats (with predictable
|
23
|
-
structure but no semantics) and RDF (with loose structure, but lots of
|
24
|
-
semantics) that is both easy to work with, yet ready for the Semantic Web.
|
25
|
-
|
26
|
-
To learn more, visit http://www.nexml.org
|
27
|
-
|
28
|
-
== Getting Started
|
29
|
-
|
30
|
-
https://www.nescent.org/wg_phyloinformatics/NeXML_and_RDF_API_for_BioRuby
|
31
|
-
|
32
|
-
It is not complete, but definitely enough to get started.
|
33
|
-
|
34
|
-
== Contributing to bio-nexml
|
35
|
-
|
36
|
-
* Check out the latest master to make sure the feature hasn't been implemented
|
37
|
-
or the bug hasn't been fixed yet
|
38
|
-
* Check out the issue tracker to make sure someone already hasn't requested it
|
39
|
-
and/or contributed it
|
40
|
-
* Fork the project
|
41
|
-
* Start a feature/bugfix branch
|
42
|
-
* Commit and push until you are happy with your contribution
|
43
|
-
* Make sure to add tests for it. This is important so I don't break it in a
|
44
|
-
future version unintentionally.
|
45
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to
|
46
|
-
have your own version, or is otherwise necessary, that is fine, but please
|
47
|
-
isolate to its own commit so I can cherry-pick around it.
|
48
|
-
|
49
|
-
== Copyright
|
50
|
-
|
51
|
-
Copyright (c) 2011 rvosa. See LICENSE.txt for
|
52
|
-
further details.
|
53
|
-
|