bio-fastqc 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dockerfile/Dockerfile +1 -1
- data/lib/bio/fastqc/cli.rb +12 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aa1e38f87a09d7211972e5ef8bde5717423b659346beca5eaea315918b64f6c
|
4
|
+
data.tar.gz: f601d5b3826e32eaf6a60f528ceac58f77745201a5856d9afdc41741b8659d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96d2295b2d1628232411749be52a90dc461619b47e2b0f43458dd8b3149071883dbd7f9c95e5c5b783708f70d31c8b3d94bd1940e1e1207365823def32ad581
|
7
|
+
data.tar.gz: 5e0ba4dc8138e89819e0bb612a1ac3d5381e3a54e3b882176cc60b35043c0842e612fed929524d0177b61f4e25a7ad4c9010abd4a1f2b50fd4184eca203cc08c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.7
|
data/dockerfile/Dockerfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
FROM ruby:2.5.0-slim
|
2
|
-
RUN gem install bio-fastqc -v 0.10.
|
2
|
+
RUN gem install bio-fastqc -v 0.10.7
|
data/lib/bio/fastqc/cli.rb
CHANGED
@@ -6,13 +6,23 @@ require 'json'
|
|
6
6
|
module Bio
|
7
7
|
module FastQC
|
8
8
|
class CLI < Thor
|
9
|
-
desc "parse [--format format] [
|
9
|
+
desc "parse [--format format] [--outdir output directory] [filepath, ..]", "parse fastqc data in directory or zipfile. output format: json, json-ld, turtle, or tsv"
|
10
10
|
option :format, :default => "json"
|
11
|
+
option :output, :default => nil
|
11
12
|
def parse(*files)
|
12
13
|
files.each do |file|
|
13
14
|
data = Data.read(file)
|
14
15
|
summary = Parser.new(data).summary
|
15
|
-
|
16
|
+
out = Converter.new(summary).convert_to(options[:format])
|
17
|
+
|
18
|
+
outdir_path = options[:outdir]
|
19
|
+
if outdir_path && File.directory?(outdir_path)
|
20
|
+
filename_org = File.basename(summary[:filename])
|
21
|
+
fpath = File.join(outdir_path, filename_org + "." + options[:format])
|
22
|
+
open(fpath, "w"){|f| f.puts(out) }
|
23
|
+
else
|
24
|
+
puts out
|
25
|
+
end
|
16
26
|
end
|
17
27
|
end
|
18
28
|
end
|