nexus_parser 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/LICENSE +25 -17
- data/{README.rdoc → README.md} +7 -5
- data/Rakefile +5 -21
- data/lib/{lexer.rb → nexus_parser/lexer.rb} +17 -17
- data/lib/{parser.rb → nexus_parser/parser.rb} +2 -2
- data/lib/{tokens.rb → nexus_parser/tokens.rb} +36 -36
- data/lib/nexus_parser/version.rb +5 -0
- data/lib/nexus_parser.rb +44 -39
- data/nexus_parser.gemspec +49 -50
- data/test/MX_test_03.nex +3 -3
- data/test/test_nexus_parser.rb +134 -138
- metadata +111 -63
- data/MIT-LICENSE +0 -20
- data/README +0 -13
- data/VERSION +0 -1
- data/init.rb +0 -1
data/nexus_parser.gemspec
CHANGED
@@ -1,60 +1,59 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/nexus_parser/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "nexus_parser"
|
7
|
+
spec.version = NexusParser::VERSION
|
8
|
+
spec.authors = ["mjy", "kleintom"]
|
9
|
+
spec.email = ["diapriid@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "A Nexus file format (phylogenetic inference) parser in Ruby."
|
12
|
+
spec.description = "A full featured and extensible Nexus file parser in Ruby."
|
13
|
+
spec.homepage = "http://github.com/mjy/nexus_parser"
|
14
|
+
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
17
|
+
|
18
|
+
spec.extra_rdoc_files = [
|
16
19
|
"LICENSE",
|
17
|
-
|
18
|
-
"README.rdoc"
|
20
|
+
"README.md"
|
19
21
|
]
|
20
|
-
|
22
|
+
spec.files = [
|
21
23
|
".document",
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
"test/test.nex",
|
39
|
-
"test/test_nexus_parser.rb",
|
40
|
-
"uninstall.rb"
|
24
|
+
".gitignore",
|
25
|
+
"LICENSE",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"install.rb",
|
29
|
+
"lib/nexus_parser.rb",
|
30
|
+
"lib/nexus_parser/lexer.rb",
|
31
|
+
"lib/nexus_parser/parser.rb",
|
32
|
+
"lib/nexus_parser/tokens.rb",
|
33
|
+
"lib/nexus_parser/version.rb",
|
34
|
+
"nexus_parser.gemspec",
|
35
|
+
"tasks/nexus_parser_tasks.rake",
|
36
|
+
"test/MX_test_03.nex",
|
37
|
+
"test/test.nex",
|
38
|
+
"test/test_nexus_parser.rb",
|
39
|
+
"uninstall.rb"
|
41
40
|
]
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
|
42
|
+
spec.bindir = "exe"
|
43
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
44
|
+
spec.rdoc_options = ["--charset=UTF-8"]
|
45
|
+
spec.require_paths = ["lib"]
|
46
|
+
|
47
|
+
spec.test_files = [
|
48
48
|
"test/test_nexus_parser.rb"
|
49
49
|
]
|
50
50
|
|
51
|
-
|
52
|
-
s.specification_version = 3
|
51
|
+
spec.required_ruby_version = '>= 3.3.0'
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
54
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
55
|
+
spec.add_development_dependency 'rdoc', '~> 6.6.2'
|
56
|
+
spec.add_development_dependency 'byebug', '~> 11.1'
|
57
|
+
spec.add_development_dependency 'test-unit'
|
59
58
|
end
|
60
59
|
|
data/test/MX_test_03.nex
CHANGED
@@ -9,7 +9,7 @@ BEGIN TAXA;
|
|
9
9
|
TITLE 'Scharff&Coddington_1997_Araneidae';
|
10
10
|
DIMENSIONS NTAX=10;
|
11
11
|
TAXLABELS
|
12
|
-
Dictyna Uloborus Deinopis Nephila&Herennia 'Nephilengys_cruentata' Meta Leucauge_venusta Pachygnatha 'Theridiosoma_01' Tetragnatha
|
12
|
+
Dictyna Uloborus Deinopis Nephila&Herennia 'Nephilengys_cruentata' Meta Leucauge_venusta Pachygnatha 'Theridiosoma_01' Tetragnatha
|
13
13
|
;
|
14
14
|
IDS JC1191fcddc2b128 JC1191fcddc2b129 JC1191fcddc2b130 JC1191fcddc2b131 JC1191fcddc2b132 JC1191fcddc2b133 JC1191fcddc2b134 JC1191fcddc2b135 JC1191fcddc2b137 JC1191fcddc2b136 ;
|
15
15
|
BLOCKID JC1191fcddc0c4;
|
@@ -21,8 +21,8 @@ BEGIN CHARACTERS;
|
|
21
21
|
TITLE 'Scharff&Coddington_1997_Araneidae';
|
22
22
|
DIMENSIONS NCHAR=10;
|
23
23
|
FORMAT DATATYPE = STANDARD GAP = - MISSING = ? SYMBOLS = " 0 1 2 3 4 5 6 7 8 9 A";
|
24
|
-
CHARSTATELABELS
|
25
|
-
1 Tibia_II / norm modified, 2 TII_macrosetae / '= TI' stronger, 3 Femoral_tuber / abs pres 'm-setae', 5 Cymbium / dorsal mesal lateral, 6 Paracymbium / abs pres, 7 Globular_tegulum / abs pres, 8 / entire w_lobe, 9 Conductor_wraps_embolus, 10 Median_apophysis / pres abs ;
|
24
|
+
CHARSTATELABELS
|
25
|
+
1 Tibia_II / norm modified, 2 TII_macrosetae / '= TI' stronger, 3 Femoral_tuber / abs pres 'm-setae', 5 Cymbium / dorsal mesal lateral, 6 Paracymbium / abs pres, 7 Globular_tegulum / abs pres, 8 / entire w_lobe, 9 Conductor_wraps_embolus, 10 Median_apophysis / pres abs ;
|
26
26
|
MATRIX
|
27
27
|
Dictyna 0?00201001
|
28
28
|
Uloborus 0?11000000
|