genomer-plugin-summary 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,29 +1,67 @@
1
- # Genomer::Plugin::Summary
1
+ ![Summary: metrics for genome projects](http://genomer.s3.amazonaws.com/icon/summary/summary.jpg)
2
2
 
3
- TODO: Write a gem description
3
+ ## About
4
+
5
+ Summary is a plugin for the [genomer][] tool for genome finishing. This summary
6
+ plugin provides metrics that useful are to understanding that state of your
7
+ genome scaffold. Plugins are added to a genomer project by specifying them in
8
+ the project Gemfile. Each summary function is documented with a [manual
9
+ page][man].
10
+
11
+ [genomer]: https://github.com/michaelbarton/genomer
12
+ [man]: https://github.com/michaelbarton/genomer-plugin-summary/tree/master/man
13
+
14
+ ## Usage
15
+
16
+ The following command will provide a list of all the gaps in your genome
17
+ scaffold:
18
+
19
+ $ genomer summary gaps
20
+
21
+ Producing output similiar to as follows:
22
+
23
+ +----------+----------+----------+----------+--------------+
24
+ | Scaffold Gaps |
25
+ +----------+----------+----------+----------+--------------+
26
+ | Number | Length | Start | End | Type |
27
+ +----------+----------+----------+----------+--------------+
28
+ | 1 | 400 | 121250 | 121649 | unresolved |
29
+ | 2 | 659 | 123354 | 124012 | contig |
30
+ | 3 | 10 | 126781 | 126790 | unresolved |
31
+ | 4 | 10 | 127393 | 127402 | unresolved |
32
+ | 5 | 500 | 778936 | 779435 | unresolved |
33
+ | 6 | 659 | 781140 | 781798 | contig |
34
+ | 7 | 10 | 784567 | 784576 | unresolved |
35
+ | 8 | 300 | 785179 | 785478 | unresolved |
36
+ | 9 | 556 | 803968 | 804523 | contig |
37
+ | 10 | 242 | 1032294 | 1032535 | contig |
38
+ | 11 | 1751 | 1057108 | 1058858 | contig |
39
+ | 12 | 575 | 1137194 | 1137768 | contig |
40
+ <remainder omitted>
41
+
42
+ Other commands are available for showing contigs, sequences, and the complete
43
+ scaffolded genome. These are listed in the [manual page][man] directory.
4
44
 
5
45
  ## Installation
6
46
 
7
- Add this line to your application's Gemfile:
47
+ Add this line to your genomer projects's Gemfile:
8
48
 
9
49
  gem 'genomer-plugin-summary'
10
50
 
11
- And then execute:
51
+ And then execute in the project directory:
12
52
 
13
53
  $ bundle
14
54
 
15
- Or install it yourself as:
55
+ Run the `help` command and the summary plugin should be available:
16
56
 
17
- $ gem install genomer-plugin-summary
18
-
19
- ## Usage
57
+ $ genomer help
58
+ $ genomer man summary
20
59
 
21
- TODO: Write usage instructions here
60
+ ## Copyright
22
61
 
23
- ## Contributing
62
+ Genomer copyright (c) 2010 by Michael Barton. Genomer is licensed under the MIT
63
+ license. See LICENSE.txt for further details. The tape measure image is used
64
+ under a Creative Commons Generic 2.0 Licence. The original can be [found on
65
+ flickr.][flickr]
24
66
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
67
+ [flickr]: http://www.flickr.com/photos/aussiegall/286709039/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,7 +1,15 @@
1
1
  Feature: Producing a summary of the scaffold contigs
2
2
  In order to have an overview of the contigs in a scaffold
3
3
  A user can use the "contigs" command
4
- to generate the a tabular output of the scaffold contigs
4
+ to generate a tabular output of the scaffold contigs
5
+
6
+ @disable-bundler
7
+ Scenario: Getting the man page for the scaffold contigs summary
8
+ Given I create a new genomer project
9
+ When I run `genomer man summary contigs`
10
+ Then the exit status should be 0
11
+ And the output should contain a valid man page
12
+ And the output should contain "GENOMER-SUMMARY-CONTIGS(1)"
5
13
 
6
14
  @disable-bundler
7
15
  Scenario: An empty scaffold
@@ -0,0 +1,13 @@
1
+ Feature: Producing different summaries of a genomes scaffold
2
+ In order to have an overview of a genome scaffold
3
+ A user can use the "summary" plugin
4
+ to generate different tabular output of the scaffold
5
+
6
+ @disable-bundler
7
+ Scenario: Getting the man page for the scaffold summary plugin
8
+ Given I create a new genomer project
9
+ When I run `genomer man summary`
10
+ Then the exit status should be 0
11
+ And the output should contain a valid man page
12
+ And the output should contain "GENOMER-SUMMARY(1)"
13
+ And the output should contain "gaps"
@@ -1,7 +1,15 @@
1
1
  Feature: Producing a summary of the scaffold gaps
2
2
  In order to have an overview of the gaps in a scaffold
3
3
  A user can use the "gaps" command
4
- to generate the a tabular output of the scaffold gaps
4
+ to generate a tabular output of the scaffold gaps
5
+
6
+ @disable-bundler
7
+ Scenario: Getting the man page for the scaffold gaps summary
8
+ Given I create a new genomer project
9
+ When I run `genomer man summary gaps`
10
+ Then the exit status should be 0
11
+ And the output should contain a valid man page
12
+ And the output should contain "GENOMER-SUMMARY-GAPS(1)"
5
13
 
6
14
  @disable-bundler
7
15
  Scenario: A single contig scaffold
@@ -1,7 +1,15 @@
1
1
  Feature: Producing a summary of the genome
2
2
  In order to have an overview of the genome
3
3
  A user can use the "genome" command
4
- to generate the a tabular output of the genome
4
+ to generate a tabular output of the genome
5
+
6
+ @disable-bundler
7
+ Scenario: Getting the man page for the scaffold genome summary
8
+ Given I create a new genomer project
9
+ When I run `genomer man summary genome`
10
+ Then the exit status should be 0
11
+ And the output should contain a valid man page
12
+ And the output should contain "GENOMER-SUMMARY-GENOME(1)"
5
13
 
6
14
  Scenario: A scaffold with a single sequence
7
15
  Given I create a new genomer project
@@ -1,7 +1,15 @@
1
1
  Feature: Producing a summary of the scaffold sequences
2
2
  In order to have an overview of the sequences in a scaffold
3
3
  A user can use the "sequence" command
4
- to generate the a tabular output of the scaffold sequences
4
+ to generate a tabular output of the scaffold sequences
5
+
6
+ @disable-bundler
7
+ Scenario: Getting the man page for the scaffold sequences summary
8
+ Given I create a new genomer project
9
+ When I run `genomer man summary sequences`
10
+ Then the exit status should be 0
11
+ And the output should contain a valid man page
12
+ And the output should contain "GENOMER-SUMMARY-SEQUENCES(1)"
5
13
 
6
14
  @disable-bundler
7
15
  Scenario: An empty scaffold
@@ -3,3 +3,9 @@ When /^I create a new genomer project$/ do
3
3
  step 'I cd to "project"'
4
4
  step 'I append to "Gemfile" with "gem \'genomer-plugin-summary\', :path =>\'../../../\'"'
5
5
  end
6
+
7
+ Then /^the output should contain a valid man page$/ do
8
+ step 'the output should not contain "md2man/roff: raw_html not implemented"'
9
+ step 'the output should not contain "\<"'
10
+ step 'the output should not contain "\>"'
11
+ end
@@ -0,0 +1,53 @@
1
+ # GENOMER-SUMMARY-CONTIGS 1
2
+
3
+ ## NAME
4
+
5
+ genomer-summary-contigs(1) -- summarise the contigs in the scaffold
6
+
7
+ ## SYNOPSIS
8
+
9
+ `genomer summary contigs [<--output=csv>]`
10
+
11
+ ## DESCRIPTION
12
+
13
+ Generates a summary of the contigous sequence used in the scaffolded output
14
+ sequence. The output may be generated in CSV format if preferred using the
15
+ <--output=csv> option. This summary produces a table with the following
16
+ attributes:
17
+
18
+ * Contig:
19
+
20
+ The number of the contig in the final scaffold. Generated from counting
21
+ each contiguous length of non-N characters from the beginning scaffolded
22
+ sequence.
23
+
24
+ * Start:
25
+
26
+ The start position of the contig in the final scaffold sequence.
27
+
28
+ * End:
29
+
30
+ The end position of the contig in the final scaffold sequence.
31
+
32
+ * Size (bp):
33
+
34
+ The size of the contig in the final scaffold sequence.
35
+
36
+ * Size (%):
37
+
38
+ The size of the contig in the final scaffold sequence as a percentage of
39
+ the total sequence.
40
+
41
+ * GC:
42
+
43
+ The G+C content of the contig as percentage the total GCAT length of the
44
+ contig.
45
+
46
+ ## BUGS
47
+
48
+ **Genomer-summary** is written in Ruby and uses several RubyGem dependencies.
49
+ See the .gemspec file in the install directory for version details.
50
+
51
+ ## COPYRIGHT
52
+
53
+ **Genomer** is Copyright (C) 2011 Michael Barton <http://michaelbarton.me.uk>
@@ -1,15 +1,19 @@
1
+ # GENOMER-SUMMARY-GAPS 1
2
+
3
+ ## NAME
4
+
1
5
  genomer-summary-gaps(1) -- summarise the gaps in the scaffold
2
- =============================================================
3
6
 
4
7
  ## SYNOPSIS
5
8
 
6
- `genomer summary gaps`
9
+ `genomer summary gaps [<--output=csv>]`
7
10
 
8
11
  ## DESCRIPTION
9
12
 
10
13
  Generates a summary of the gaps (regions of N characters) in the scaffolded
11
- output sequence. This summary command lists these gaps with the following
12
- attributes:
14
+ output sequence. The output may be generated in CSV format if preferred using
15
+ the <--output=csv> option. This summary command lists these gaps with the
16
+ following attributes:
13
17
 
14
18
  * Number:
15
19
  Incremental gap number from the start of the sequence.
@@ -0,0 +1,37 @@
1
+ # GENOMER-SUMMARY-GENOME 1
2
+
3
+ ## NAME
4
+
5
+ genomer-summary-genome(1) -- summarise the genome scaffold
6
+
7
+ ## SYNOPSIS
8
+
9
+ `genomer summary genome [<--output=csv>]`
10
+
11
+ ## DESCRIPTION
12
+
13
+ Generates a summary of the genome scaffold. This summary contains various
14
+ metrics of the scaffold. The output may be generated in CSV format if preferred
15
+ using the <--output=csv> option. This summary produces a table with the
16
+ following attributes:
17
+
18
+ * Sequences:
19
+
20
+ The sequences used to build the scaffold.
21
+
22
+ * Contigs:
23
+
24
+ Regions of contiguous non-N characters in the final scaffold sequence.
25
+
26
+ * Gaps:
27
+
28
+ Regions of contiguous N characters in the final scaffold sequence.
29
+
30
+ ## BUGS
31
+
32
+ **Genomer-summary** is written in Ruby and uses several RubyGem dependencies.
33
+ See the .gemspec file in the install directory for version details.
34
+
35
+ ## COPYRIGHT
36
+
37
+ **Genomer** is Copyright (C) 2011 Michael Barton <http://michaelbarton.me.uk>
@@ -0,0 +1,50 @@
1
+ # GENOMER-SUMMARY-SEQUENCES 1
2
+
3
+ ## NAME
4
+
5
+ genomer-summary-sequences(1) -- summarise the sequences in the scaffold
6
+
7
+ ## SYNOPSIS
8
+
9
+ `genomer summary sequences [<--output=csv>]`
10
+
11
+ ## DESCRIPTION
12
+
13
+ Generates a summary of the sequences used to build the scaffold. The
14
+ output may be generated in CSV format if preferred using the <--output=csv>
15
+ option. This summary produces a table with the following attributes:
16
+
17
+ * Contig:
18
+
19
+ The identifier of the sequence in the scaffold.
20
+
21
+ * Start:
22
+
23
+ The start position of the sequence in the final scaffold sequence.
24
+
25
+ * End:
26
+
27
+ The end position of the sequence in the final scaffold sequence.
28
+
29
+ * Size (bp):
30
+
31
+ The size of the sequence in the final scaffold sequence.
32
+
33
+ * Size (%):
34
+
35
+ The size of the sequence in the final scaffold sequence as a percentage of
36
+ the total sequence.
37
+
38
+ * GC:
39
+
40
+ The G+C content of the sequence as percentage the total GCAT length of the
41
+ sequence.
42
+
43
+ ## BUGS
44
+
45
+ **Genomer-summary** is written in Ruby and uses several RubyGem dependencies.
46
+ See the .gemspec file in the install directory for version details.
47
+
48
+ ## COPYRIGHT
49
+
50
+ **Genomer** is Copyright (C) 2011 Michael Barton <http://michaelbarton.me.uk>
@@ -1,9 +1,12 @@
1
+ # GENOMER-SUMMARY 1
2
+
3
+ ## NAME
4
+
1
5
  genomer-summary(1) -- generate summaries of genomer projects
2
- ============================================================
3
6
 
4
7
  ## SYNOPSIS
5
8
 
6
- `genomer summary` <summary-type> [<options>...]
9
+ `genomer summary` \<summary-type\> [\<options\>...]
7
10
 
8
11
  ## DESCRIPTION
9
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genomer-plugin-summary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-31 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: genomer
@@ -169,6 +169,7 @@ files:
169
169
  - Rakefile
170
170
  - VERSION
171
171
  - features/contigs.feature
172
+ - features/core.feature
172
173
  - features/gaps.feature
173
174
  - features/genome.feature
174
175
  - features/sequences.feature
@@ -183,7 +184,10 @@ files:
183
184
  - lib/genomer-plugin-summary/genome.rb
184
185
  - lib/genomer-plugin-summary/metrics.rb
185
186
  - lib/genomer-plugin-summary/sequences.rb
187
+ - man/genomer-summary-contigs.ronn
186
188
  - man/genomer-summary-gaps.ronn
189
+ - man/genomer-summary-genome.ronn
190
+ - man/genomer-summary-sequences.ronn
187
191
  - man/genomer-summary.ronn
188
192
  - spec/genomer-plugin-summary_spec.rb
189
193
  - spec/genomer-plugin-summary_spec/contigs_spec.rb
@@ -208,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
212
  version: '0'
209
213
  segments:
210
214
  - 0
211
- hash: 2735699573861550577
215
+ hash: 2140050632096310214
212
216
  required_rubygems_version: !ruby/object:Gem::Requirement
213
217
  none: false
214
218
  requirements:
@@ -217,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
221
  version: '0'
218
222
  segments:
219
223
  - 0
220
- hash: 2735699573861550577
224
+ hash: 2140050632096310214
221
225
  requirements: []
222
226
  rubyforge_project:
223
227
  rubygems_version: 1.8.23
@@ -226,6 +230,7 @@ specification_version: 3
226
230
  summary: Generates reports on the status of the genomer project
227
231
  test_files:
228
232
  - features/contigs.feature
233
+ - features/core.feature
229
234
  - features/gaps.feature
230
235
  - features/genome.feature
231
236
  - features/sequences.feature