bio-gfastqc 0.0.1
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.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.travis.yml +13 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +20 -0
- data/README.md +77 -0
- data/Rakefile +51 -0
- data/VERSION +1 -0
- data/bin/gfastqc +159 -0
- data/lib/bio-gfastqc.rb +12 -0
- data/lib/bio-gfastqc/gfastqc.rb +3 -0
- data/lib/bio-gfastqc/index.html.erb +138 -0
- data/test/config.yml +3 -0
- data/test/helper.rb +34 -0
- data/test/test_bio-gfastqc.rb +7 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cac0f88eccf1fbe76912a8a3a0b4fb6a25a436dd
|
4
|
+
data.tar.gz: 37a6c8e3af76d4c896fb2ae57ff9a34335fa3014
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 44cd149bc4a1d5423b2dedf2fe7fa9da739ef4c3fbbc30e29980e97d6b621b2856230de52aa1069f76dc6c8e90db8e78f0b104badb23de9b9cc7b84439f227bf
|
7
|
+
data.tar.gz: f97b5e978ebe87225c793ab81e06ddbac514ee80fc9220ee39bf8a418593a0078f422d749d7e440830ec02b0f27147fa0cded93195fe47ffe077ae6957075b89
|
data/.document
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.2
|
4
|
+
- 1.9.3
|
5
|
+
- jruby-19mode # JRuby in 1.9 mode
|
6
|
+
|
7
|
+
# - rbx-19mode
|
8
|
+
# - 1.8.7
|
9
|
+
# - jruby-18mode # JRuby in 1.8 mode
|
10
|
+
# - rbx-18mode
|
11
|
+
|
12
|
+
# uncomment this line if your project needs to run something other than `rake`:
|
13
|
+
# script: bundle exec rspec spec
|
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem 'rubyzip'
|
7
|
+
|
8
|
+
# Add dependencies to develop your gem here.
|
9
|
+
# Include everything needed to run rake, tests, features, etc.
|
10
|
+
group :development do
|
11
|
+
gem "shoulda", ">= 0"
|
12
|
+
gem "rdoc", "~> 3.12"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
gem "jeweler"
|
15
|
+
gem "bundler", ">= 1.0.21"
|
16
|
+
gem "bio", ">= 1.4.2"
|
17
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2015 Raoul Jean Pierre Bonnal
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# bio-gfastqc
|
2
|
+
|
3
|
+
[](http://travis-ci.org/helios/bioruby-gfastqc)
|
4
|
+
|
5
|
+
Full description goes here
|
6
|
+
|
7
|
+
Note: this software is under active development!
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
```sh
|
12
|
+
gem install bio-gfastqc
|
13
|
+
```
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'bio-gfastqc'
|
19
|
+
```
|
20
|
+
|
21
|
+
The API doc is online. For more code examples see the test files in
|
22
|
+
the source tree.
|
23
|
+
|
24
|
+
## Project home page
|
25
|
+
|
26
|
+
Information on the source tree, documentation, examples, issues and
|
27
|
+
how to contribute, see
|
28
|
+
|
29
|
+
http://github.com/helios/bioruby-gfastqc
|
30
|
+
|
31
|
+
The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.
|
32
|
+
|
33
|
+
|
34
|
+
Create a config YAML file
|
35
|
+
|
36
|
+
config.yml
|
37
|
+
|
38
|
+
it contents is for example:
|
39
|
+
|
40
|
+
samples:
|
41
|
+
Sample_A: /path_to_sampleA
|
42
|
+
Sample_B: /path_to_sampleB
|
43
|
+
|
44
|
+
then run the script in the directory of the `config.yml` file and specify the sub directory for each sampel where is located the result of the FASTQC
|
45
|
+
|
46
|
+
ruby gfastqc.rb -a R1 -b R2
|
47
|
+
|
48
|
+
in case you have the results of FastQC in a sub folder and you want to keep the definition of the sample independen from it, you can use the step option
|
49
|
+
|
50
|
+
ruby gfastqc.rb -a R1 -b R2 --step qc_pre_trimming
|
51
|
+
|
52
|
+
Then open index.html in your browser
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
## TODO
|
57
|
+
|
58
|
+
* avoid user to specify -a and -b. By default discover zip files and ordering them define the first and second strand.
|
59
|
+
* ~~package everything as a gem~~
|
60
|
+
* provide better documentation for installing the gem on multiple system (GNU/Linux, OSX, Windows)
|
61
|
+
|
62
|
+
|
63
|
+
## Cite
|
64
|
+
|
65
|
+
If you use this software, please cite one of
|
66
|
+
|
67
|
+
* [BioRuby: bioinformatics software for the Ruby programming language](http://dx.doi.org/10.1093/bioinformatics/btq475)
|
68
|
+
* [Biogem: an effective tool-based approach for scaling up open source software development in bioinformatics](http://dx.doi.org/10.1093/bioinformatics/bts080)
|
69
|
+
|
70
|
+
## Biogems.info
|
71
|
+
|
72
|
+
This Biogem is published at (http://biogems.info/index.html#bio-gfastqc)
|
73
|
+
|
74
|
+
## Copyright
|
75
|
+
|
76
|
+
Copyright (c) 2015 Raoul Jean Pierre Bonnal. See LICENSE.txt for further details.
|
77
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "bio-gfastqc"
|
18
|
+
gem.homepage = "http://github.com/helios/bioruby-gfastqc"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{TODO: one-line summary of your gem}
|
21
|
+
gem.description = %Q{TODO: longer description of your gem}
|
22
|
+
gem.email = "ilpuccio.febo@gmail.com"
|
23
|
+
gem.authors = ["Raoul Jean Pierre Bonnal"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "Code coverage detail"
|
36
|
+
task :simplecov do
|
37
|
+
ENV['COVERAGE'] = "true"
|
38
|
+
Rake::Task['test'].execute
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :test
|
42
|
+
|
43
|
+
require 'rdoc/task'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "bio-gfastqc #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/gfastqc
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# BioRuby bio-gfastqc Plugin BioGfastqc
|
4
|
+
# Author:: Raoul Jean Pierre Bonnal
|
5
|
+
# Copyright:: 2015
|
6
|
+
require 'json'
|
7
|
+
require 'base64'
|
8
|
+
require 'yaml'
|
9
|
+
require 'optparse'
|
10
|
+
require 'ostruct'
|
11
|
+
require 'zip'
|
12
|
+
require 'erb'
|
13
|
+
# Copyright 2015, Raoul Jean Pierre Bonnal <bonnal@ingm.org>
|
14
|
+
# This scripts reads and input file in YAML format followint
|
15
|
+
# the specification from pipengine for samples
|
16
|
+
# generates a single comprehesive html page with a summary for
|
17
|
+
# all the Quality Control data generated by FASTQC
|
18
|
+
|
19
|
+
|
20
|
+
USAGE = "Describe bio-gfastqc"
|
21
|
+
|
22
|
+
gempath = File.dirname(File.dirname(__FILE__))
|
23
|
+
$: << File.join(gempath,'lib')
|
24
|
+
|
25
|
+
VERSION_FILENAME=File.join(gempath,'VERSION')
|
26
|
+
version = File.new(VERSION_FILENAME).read.chomp
|
27
|
+
|
28
|
+
# print banner
|
29
|
+
print "bio-gfastqc #{version} by Raoul Jean Pierre Bonnal 2015\n"
|
30
|
+
|
31
|
+
if ARGV.size == 0
|
32
|
+
print USAGE
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'bio-gfastqc'
|
36
|
+
|
37
|
+
# Uncomment when using the bio-logger
|
38
|
+
# require 'bio-logger'
|
39
|
+
# Bio::Log::CLI.logger('stderr')
|
40
|
+
# Bio::Log::CLI.trace('info')
|
41
|
+
|
42
|
+
|
43
|
+
class OptHandlingBox
|
44
|
+
def self.parse(args)
|
45
|
+
options = OpenStruct.new
|
46
|
+
options.config = 'config.yml'
|
47
|
+
options.step = ''
|
48
|
+
|
49
|
+
opt_parser = OptionParser.new do |opts|
|
50
|
+
opts.banner = 'Usage: qc_overview.rb '
|
51
|
+
|
52
|
+
opts.on('-c', '--config [config]',
|
53
|
+
'choose the config from get info about the samples') do |config|
|
54
|
+
options.config = config
|
55
|
+
end
|
56
|
+
|
57
|
+
opts.on('-s', '--step [STEP]',
|
58
|
+
'choose the step from which extract the fastqc data') do |step|
|
59
|
+
options.step = step
|
60
|
+
end
|
61
|
+
|
62
|
+
opts.on('-a', '--first [FIRST]',
|
63
|
+
'forward strand reads') do |first|
|
64
|
+
options.first = first
|
65
|
+
end
|
66
|
+
|
67
|
+
opts.on('-b', '--second [SECOND]',
|
68
|
+
'reverse strand reads') do |second|
|
69
|
+
options.second = second
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
74
|
+
puts opts
|
75
|
+
exit
|
76
|
+
end
|
77
|
+
end #opt_parse
|
78
|
+
|
79
|
+
opt_parser.parse!(args)
|
80
|
+
options
|
81
|
+
end #parse
|
82
|
+
end #class OptGtfSplit
|
83
|
+
|
84
|
+
options = OptHandlingBox.parse(ARGV)
|
85
|
+
|
86
|
+
if !File.exists?(options.config)
|
87
|
+
puts
|
88
|
+
puts "Warning: there is not config file #{options.config}"
|
89
|
+
exit
|
90
|
+
end
|
91
|
+
config = YAML.load_file(options.config)
|
92
|
+
@data = {}
|
93
|
+
@tables = {}
|
94
|
+
@base_file_names = []
|
95
|
+
@base_file_names << options.first #this must be mandatory
|
96
|
+
@base_file_names << options.second if options.second # this can be optional
|
97
|
+
|
98
|
+
|
99
|
+
config['samples'].each_pair do |name, path|
|
100
|
+
@data[name] = {}
|
101
|
+
@tables[name] = {}
|
102
|
+
@base_file_names.each do |base_file_name|
|
103
|
+
@data[name][base_file_name]={}
|
104
|
+
@tables[name][base_file_name]={}
|
105
|
+
file = File.join(path, options.step, "#{base_file_name}_fastqc.zip")
|
106
|
+
Zip::File.open(file) do |zip_file|
|
107
|
+
zip_file.glob('*/Images/*.png').each do |entry|
|
108
|
+
@data[name][base_file_name][File.basename(entry.name,".png")]=Base64.encode64(entry.get_input_stream.read)
|
109
|
+
end #each entry
|
110
|
+
zip_file.glob('*/fastqc_data.txt').each do |entry|
|
111
|
+
entry.get_input_stream.read.scan(/>>(.*?)>>END_MODULE/m).each do |match|
|
112
|
+
match_data = match.first.split("\n")
|
113
|
+
field_name, status = match_data[0].split("\t")
|
114
|
+
begin
|
115
|
+
header = match_data[1].tr("#","").split("\t")
|
116
|
+
content = match_data[2..-1].map do |data_row|
|
117
|
+
data_row.split("\t")
|
118
|
+
end
|
119
|
+
# puts field_name
|
120
|
+
@tables[name][base_file_name][field_name.tr(" ","_")]={ "status" => status,
|
121
|
+
"header"=> header,
|
122
|
+
"content" => content
|
123
|
+
}
|
124
|
+
rescue
|
125
|
+
# $stderr.puts match_data.inspect #This is a generic warning to notify the user that this records has no data associated with.
|
126
|
+
end
|
127
|
+
|
128
|
+
end #match
|
129
|
+
end #fastq data.txt
|
130
|
+
end #zip
|
131
|
+
end #files
|
132
|
+
end
|
133
|
+
# File.open('test.json','w') do |file|
|
134
|
+
# file.write data.to_json
|
135
|
+
# end
|
136
|
+
|
137
|
+
@type_images = %w(kmer_profiles per_sequence_gc_content per_base_sequence_content duplication_levels sequence_length_distribution per_sequence_quality per_base_quality adapter_content per_base_n_content per_tile_quality)
|
138
|
+
@type_tables = %w(Adapter_Content Basic_Statistics Kmer_Content Per_base_N_content Per_base_sequence_content Per_base_sequence_quality Per_sequence_quality_scores Sequence_Duplication_Levels Sequence_Length_Distribution)
|
139
|
+
# dropped tables to avoid wast of space or not so informative:
|
140
|
+
# Per_sequence_GC_content Overrepresented_sequences Per_tile_sequence_quality
|
141
|
+
# Overrepresented_sequences temporary removed it seems that when this fields pass the test there are no data associated with
|
142
|
+
|
143
|
+
|
144
|
+
erb_file = 'index.html.erb'
|
145
|
+
|
146
|
+
html_file = File.basename(erb_file, '.erb') #=>"page.html"
|
147
|
+
|
148
|
+
erb_str = File.read(File.join(File.dirname(__FILE__),'../lib/bio-gfastqc',erb_file))
|
149
|
+
|
150
|
+
renderer = ERB.new(erb_str)
|
151
|
+
result = renderer.result()
|
152
|
+
|
153
|
+
File.open(html_file, 'w') do |f|
|
154
|
+
f.write(result)
|
155
|
+
end
|
156
|
+
|
157
|
+
puts "Your comprehensive quality control file is ready in the current directory #{File.join(Dir.pwd,'index.html')}"
|
158
|
+
|
159
|
+
|
data/lib/bio-gfastqc.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Please require your code below, respecting the naming conventions in the
|
2
|
+
# bioruby directory tree.
|
3
|
+
#
|
4
|
+
# For example, say you have a plugin named bio-plugin, the only uncommented
|
5
|
+
# line in this file would be
|
6
|
+
#
|
7
|
+
# require 'bio/bio-plugin/plugin'
|
8
|
+
#
|
9
|
+
# In this file only require other files. Avoid other source code.
|
10
|
+
|
11
|
+
require 'bio-gfastqc/gfastqc.rb'
|
12
|
+
|
@@ -0,0 +1,138 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Main FASTQC</title>
|
5
|
+
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
|
6
|
+
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
7
|
+
|
8
|
+
<!-- Latest compiled and minified CSS -->
|
9
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
10
|
+
|
11
|
+
<!-- Optional theme -->
|
12
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
|
13
|
+
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.5/css/jquery.dataTables.min.css">
|
14
|
+
<!-- Latest compiled and minified JavaScript -->
|
15
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
16
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.5.2/holder.min.js"></script>
|
17
|
+
<script src="https://cdn.datatables.net/1.10.5/js/jquery.dataTables.min.js"></script>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
<div id="main-container" class="container">
|
24
|
+
<div class="page-header">
|
25
|
+
<h1>G-FastQC</h1>
|
26
|
+
<h3><small>Aggregate FastQC results in single web page. You can explore Charts and Tables.</small></h3>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="row">
|
30
|
+
<div class="col-xs-12">
|
31
|
+
|
32
|
+
<div role="tabpanel">
|
33
|
+
<ul class="nav nav-tabs" role="tablist" >
|
34
|
+
<li role="presentation"><a href="#charts" aria-controls="charts" role="tab" data-toggle="tab">Charts</a></li>
|
35
|
+
<li role="presentation"><a href="#tables" aria-controls="tables" role="tab" data-toggle="tab">Tables</a></li>
|
36
|
+
</ul>
|
37
|
+
<div class="tab-content">
|
38
|
+
|
39
|
+
<div role="tabpanel" class="tab-pane" id="charts">
|
40
|
+
<!-- Charts Start-->
|
41
|
+
<div role="tabpanel">
|
42
|
+
<ul class="nav nav-pills" role="tablist" >
|
43
|
+
<% @type_images.each do |type| %>
|
44
|
+
<li role="presentation"><a href="#<%= type %>" aria-controls="<%= type %>" role="tab" data-toggle="tab"><%= type %></a></li>
|
45
|
+
<% end %>
|
46
|
+
</ul>
|
47
|
+
<div class="tab-content">
|
48
|
+
<% @type_images.each do |type| %>
|
49
|
+
<div role="tabpanel" class="tab-pane" id="<%= type %>">
|
50
|
+
<div class="row">
|
51
|
+
<% @data.each_pair do |sample_name, pairs| %>
|
52
|
+
<div class="col-xs-6 col-md-6">
|
53
|
+
<div class="caption">
|
54
|
+
<h3><%= sample_name %></h3>
|
55
|
+
<a href="#" class="thumbnail">
|
56
|
+
<img data-src="holder.js/300x200" src="data:image/png;base64,<%= pairs[@base_file_names[0]][type] %>" alt="<%= sample_name + ' ' + @base_file_names[0] %>">
|
57
|
+
</a>
|
58
|
+
<a href="#" class="thumbnail">
|
59
|
+
<img data-src="holder.js/300x200" src="data:image/png;base64,<%= pairs[@base_file_names[1]][type] %>" alt="<%= sample_name + ' ' + @base_file_names[1] %>">
|
60
|
+
</a>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<% end %>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<% end %>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
<!-- Charts End-->
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div role="tabpanel" class="tab-pane" id="tables">
|
73
|
+
<!-- Tables Start-->
|
74
|
+
<div role="tabpanel">
|
75
|
+
<ul class="nav nav-pills" role="tablist" >
|
76
|
+
<% @type_tables.each do |type| %>
|
77
|
+
<li role="presentation"><a href="#<%= type %>_div_table" aria-controls="<%= type %>_div_table" role="tab" data-toggle="tab"><%= type %></a></li>
|
78
|
+
<% end %>
|
79
|
+
</ul>
|
80
|
+
<div class="tab-content">
|
81
|
+
|
82
|
+
<% @type_tables.each do |type| %>
|
83
|
+
<div role="tabpanel" class="tab-pane" id="<%= type %>_div_table">
|
84
|
+
<div class="row">
|
85
|
+
<% @tables.each_pair do |sample_name, reads| %>
|
86
|
+
<% reads.each_pair do |reads_name, tables| %>
|
87
|
+
<table id="<%= type %>_<%= sample_name %>_<%= reads_name %>_table" class="display" cellspacing="0" width="100%">
|
88
|
+
<thead>
|
89
|
+
<tr>
|
90
|
+
<% tables[type]["header"].each do |col_name| %>
|
91
|
+
<th><%= col_name %></th>
|
92
|
+
<% end %>
|
93
|
+
</tr>
|
94
|
+
</thead>
|
95
|
+
<tbody>
|
96
|
+
<% tables[type]["content"].each do |row| %>
|
97
|
+
<tr>
|
98
|
+
<% row.each do |col_value| %>
|
99
|
+
<td><%= col_value %></td>
|
100
|
+
<% end %>
|
101
|
+
</tr>
|
102
|
+
<% end %>
|
103
|
+
</tbody>
|
104
|
+
</table>
|
105
|
+
<% end %>
|
106
|
+
<% end %>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
<% end %>
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<!-- Charts End-->
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
</body>
|
126
|
+
<script type="text/javascript">
|
127
|
+
$(document).ready(function() {
|
128
|
+
<% @type_tables.each do |type| %>
|
129
|
+
<% @tables.each_pair do |sample_name, reads| %>
|
130
|
+
<% reads.each_pair do |reads_name, tables| %>
|
131
|
+
$("#<%= type %>_<%= sample_name %>_<%= reads_name %>_table").DataTable();
|
132
|
+
<% end %>
|
133
|
+
<% end %>
|
134
|
+
<% end %>
|
135
|
+
} );
|
136
|
+
</script>
|
137
|
+
|
138
|
+
</html>
|
data/test/config.yml
ADDED
data/test/helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_adapter 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
require 'rubygems'
|
18
|
+
require 'bundler'
|
19
|
+
begin
|
20
|
+
Bundler.setup(:default, :development)
|
21
|
+
rescue Bundler::BundlerError => e
|
22
|
+
$stderr.puts e.message
|
23
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
24
|
+
exit e.status_code
|
25
|
+
end
|
26
|
+
require 'test/unit'
|
27
|
+
require 'shoulda'
|
28
|
+
|
29
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
30
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
31
|
+
require 'bio-gfastqc'
|
32
|
+
|
33
|
+
class Test::Unit::TestCase
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bio-gfastqc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Raoul Jean Pierre Bonnal
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubyzip
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: shoulda
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.12'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jeweler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.0.21
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.0.21
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bio
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.4.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.4.2
|
111
|
+
description: Bioinformatics. Aggregate FastQC (quality control for Next Generation
|
112
|
+
Sequencing -NGS-) results from many different samples in a single web page, with
|
113
|
+
charts and tables organized and simplified. The main goal is to speed up the communication
|
114
|
+
process with out colleagues (PIs, Biologists, BioInformaticians).
|
115
|
+
email: ilpuccio.febo@gmail.com
|
116
|
+
executables:
|
117
|
+
- gfastqc
|
118
|
+
extensions: []
|
119
|
+
extra_rdoc_files:
|
120
|
+
- LICENSE.txt
|
121
|
+
- README.md
|
122
|
+
files:
|
123
|
+
- ".document"
|
124
|
+
- ".travis.yml"
|
125
|
+
- Gemfile
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.md
|
128
|
+
- Rakefile
|
129
|
+
- VERSION
|
130
|
+
- bin/gfastqc
|
131
|
+
- lib/bio-gfastqc.rb
|
132
|
+
- lib/bio-gfastqc/gfastqc.rb
|
133
|
+
- lib/bio-gfastqc/index.html.erb
|
134
|
+
- test/config.yml
|
135
|
+
- test/helper.rb
|
136
|
+
- test/test_bio-gfastqc.rb
|
137
|
+
homepage: http://github.com/helios/bioruby-gfastqc
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.4.3
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: Bioinformatics. Aggregate FastQC (quality control for Next Generation Sequencing
|
161
|
+
-NGS-) results from many different samples in a single web page, with charts and
|
162
|
+
tables organized and simplified. The main goal is to speed up the communication
|
163
|
+
process with out colleagues (PIs, Biologists, BioInformaticians).
|
164
|
+
test_files: []
|