assembly_pipe 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'minitest/unit'
11
+
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ require 'assembly_pipe'
15
+
16
+ class MiniTest::Unit::TestCase
17
+ end
18
+
19
+ MiniTest::Unit.autorun
@@ -0,0 +1,38 @@
1
+ require 'helper'
2
+
3
+ class TestLogFile < MiniTest::Unit::TestCase
4
+ def setup
5
+ @file = AssemblyPipe::VelvetOptimiser::LogFile.open("test/data/test_logfile.txt")
6
+ end
7
+
8
+ def test_open
9
+ assert_equal AssemblyPipe::VelvetOptimiser::LogFile, @file.class
10
+ end
11
+
12
+ def test_date
13
+ assert_equal "06/24", @file.date.strftime("%m/%d")
14
+ end
15
+
16
+ def test_velveth_runs
17
+ assert_equal 1, @file.velveth_runs.first["Assembly id"]
18
+ assert_equal 25, @file.velveth_runs.first["Velvet hash value"]
19
+ assert_equal 1150179650, @file.velveth_runs.first["Roadmap file size"]
20
+ assert_equal 20, @file.velveth_runs.count
21
+ end
22
+
23
+ def test_vanilla_velvetg_runs
24
+ assert_equal 3057, @file.vanilla_velvetg_runs.first['Assembly score']
25
+ assert_equal 30018, @file.vanilla_velvetg_runs.first['length of longest contig']
26
+ assert_equal 8787270, @file.vanilla_velvetg_runs.to_a.last['Total bases in contigs']
27
+ end
28
+
29
+ def test_final_assembly
30
+ assert_equal 3, @file.final_assembly['Assembly id']
31
+ assert_equal 28278189, @file.final_assembly['Assembly score']
32
+ assert_equal 28278189, @file.final_assembly['Total bases in contigs > 1k']
33
+ end
34
+
35
+ def test_summary_table
36
+ File.open("test/test.txt", 'w'){|f| f.puts @file.summary_table }
37
+ end
38
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: assembly_pipe
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.0
6
+ platform: ruby
7
+ authors:
8
+ - robsyme
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-07-07 00:00:00 +08:00
14
+ default_executable: assembly_pipe
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: minitest
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ type: :development
25
+ prerelease: false
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: yard
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 0.6.0
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: bundler
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: jeweler
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 1.6.2
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: rcov
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *id005
71
+ description: A sketch that may not see the light of day assembly pipeline and report generation
72
+ email: rob.syme@gmail.com
73
+ executables:
74
+ - assembly_pipe
75
+ extensions: []
76
+
77
+ extra_rdoc_files:
78
+ - LICENSE.txt
79
+ - README.rdoc
80
+ files:
81
+ - .document
82
+ - Gemfile
83
+ - Gemfile.lock
84
+ - LICENSE.txt
85
+ - README.rdoc
86
+ - Rakefile
87
+ - VERSION
88
+ - assembly_pipe.gemspec
89
+ - bin/assembly_pipe
90
+ - lib/assembly_pipe.rb
91
+ - lib/queue/word_analyzer.rb
92
+ - test/data/test_logfile.txt
93
+ - test/helper.rb
94
+ - test/test_assembly_pipe.rb
95
+ has_rdoc: true
96
+ homepage: http://github.com/robsyme/assembly_pipe
97
+ licenses:
98
+ - MIT
99
+ post_install_message:
100
+ rdoc_options: []
101
+
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: -149426781813587154
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: "0"
119
+ requirements: []
120
+
121
+ rubyforge_project:
122
+ rubygems_version: 1.5.0
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: Generating reports from genome assemblies
126
+ test_files: []
127
+