bio-vcf 0.9.0 → 0.9.2

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -3
  3. data/Gemfile.lock +44 -0
  4. data/README.md +151 -28
  5. data/VERSION +1 -1
  6. data/bin/bio-vcf +47 -15
  7. data/bio-vcf.gemspec +4 -21
  8. data/features/#cli.feature# +71 -0
  9. data/features/cli.feature +3 -3
  10. data/features/filter.feature +12 -0
  11. data/features/filter.feature~ +35 -0
  12. data/features/somaticsniper.feature +2 -0
  13. data/features/step_definitions/cli-feature.rb +5 -0
  14. data/features/step_definitions/somaticsniper.rb +8 -0
  15. data/lib/bio-vcf/pcows.rb +123 -36
  16. data/lib/bio-vcf/vcfgenotypefield.rb +1 -1
  17. data/lib/bio-vcf/vcfrecord.rb +21 -0
  18. data/lib/bio-vcf/vcfsample.rb +13 -0
  19. data/test/data/regression/eval_once-stderr.new +2 -1
  20. data/test/data/regression/eval_r.info.dp-stderr.new +8 -4
  21. data/test/data/regression/ifilter_s.dp-stderr.new +8 -4
  22. data/test/data/regression/pass1-stderr.new +8 -0
  23. data/test/data/regression/pass1.new +88 -0
  24. data/test/data/regression/pass1.ref +88 -0
  25. data/test/data/regression/r.info.dp-stderr.new +8 -4
  26. data/test/data/regression/rewrite.info.sample-stderr.new +8 -4
  27. data/test/data/regression/s.dp-stderr.new +8 -4
  28. data/test/data/regression/seval_s.dp-stderr.new +8 -4
  29. data/test/data/regression/sfilter_seval_s.dp-stderr.new +8 -4
  30. data/test/data/regression/thread4-stderr.new +8 -4
  31. data/test/data/regression/thread4_4-stderr.new +44 -15
  32. data/test/data/regression/vcf2json_full_header-stderr.new +8 -4
  33. data/test/data/regression/vcf2json_use_meta-stderr.new +8 -4
  34. data/test/stress/stress_test.sh +15 -0
  35. data/test/stress/stress_test.sh~ +8 -0
  36. metadata +14 -5
@@ -1,4 +1,8 @@
1
- bio-vcf 0.9.0-pre2 (biogem Ruby 2.2.2 with pcows) by Pjotr Prins 2015
2
- Waiting up to 180 seconds for pid=3688 to complete
3
- OK pid=3688, processing /tmp/bio-vcf_20150816-3685-12epvot/000001-bio-vcf
4
- Processing /tmp/bio-vcf_20150816-3685-12epvot/000001-bio-vcf
1
+ bio-vcf 0.9.2 (biogem Ruby 2.2.4 with pcows) by Pjotr Prins 2015
2
+ Waiting up to 180 seconds for pid=9418 to complete /tmp/bio-vcf_20160122-9416-1txay4y/000001-bio-vcf
3
+ Processing remaining output...
4
+ Trying: [[9418, 1, "/tmp/bio-vcf_20160122-9416-1txay4y/000001-bio-vcf"]]
5
+ Set lock on [[9418, 1, "/tmp/bio-vcf_20160122-9416-1txay4y/000001-bio-vcf"]]
6
+ Processing output file /tmp/bio-vcf_20160122-9416-1txay4y/000001-bio-vcf (blocking)
7
+ Removing /tmp/bio-vcf_20160122-9416-1txay4y/000001-bio-vcf
8
+ Removing dir /tmp/bio-vcf_20160122-9416-1txay4y
@@ -1,4 +1,8 @@
1
- bio-vcf 0.9.0-pre2 (biogem Ruby 2.2.2 with pcows) by Pjotr Prins 2015
2
- Waiting up to 180 seconds for pid=3696 to complete
3
- OK pid=3696, processing /tmp/bio-vcf_20150816-3694-162o65x/000001-bio-vcf
4
- Processing /tmp/bio-vcf_20150816-3694-162o65x/000001-bio-vcf
1
+ bio-vcf 0.9.2 (biogem Ruby 2.2.4 with pcows) by Pjotr Prins 2015
2
+ Waiting up to 180 seconds for pid=9427 to complete /tmp/bio-vcf_20160122-9425-l2fs1h/000001-bio-vcf
3
+ Processing remaining output...
4
+ Trying: [[9427, 1, "/tmp/bio-vcf_20160122-9425-l2fs1h/000001-bio-vcf"]]
5
+ Set lock on [[9427, 1, "/tmp/bio-vcf_20160122-9425-l2fs1h/000001-bio-vcf"]]
6
+ Processing output file /tmp/bio-vcf_20160122-9425-l2fs1h/000001-bio-vcf (blocking)
7
+ Removing /tmp/bio-vcf_20160122-9425-l2fs1h/000001-bio-vcf
8
+ Removing dir /tmp/bio-vcf_20160122-9425-l2fs1h
@@ -0,0 +1,15 @@
1
+ #! /bin/bash
2
+ #
3
+ # Stress test bio-vcf by running it on large files and comparing
4
+ # results using threads
5
+
6
+ input=test/data/input/multisample.vcf
7
+ filter='--sfilter 's.dp>70' --seval s.dp'
8
+
9
+ echo "cat $input | ./bin/bio-vcf --num-threads 1 $filter > stress_simple01.vcf"
10
+ cat $input | ./bin/bio-vcf --num-threads 1 $filter > stress_simple01.vcf
11
+ cat $input | ./bin/bio-vcf --num-threads 2 $filter > stress_simple02.vcf
12
+ cat $input | ./bin/bio-vcf --num-threads 4 $filter > stress_simple03.vcf
13
+ cat $input | ./bin/bio-vcf $filter > stress_simple04.vcf
14
+ cat $input | ./bin/bio-vcf --thread-lines 3 $filter > stress_simple05.vcf
15
+ cat $input | ./bin/bio-vcf --thread-lines 1 $filter > stress_simple06.vcf
@@ -0,0 +1,8 @@
1
+ #! /bin/bash
2
+ #
3
+ # Stress test bio-vcf by running it on large files and comparing
4
+ # results using threads
5
+
6
+ input=test/data/input/multisample.vcf
7
+
8
+ cat $input | ./bin/bio-vcf --num-threads 1 > stress_simple01.vcf
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-vcf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pjotr Prins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-16 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Smart lazy multi-threaded parser for VCF format with useful filtering
14
- and output rewriting
14
+ and output rewriting (JSON, RDF etc.)
15
15
  email: pjotr.public01@thebird.nl
16
16
  executables:
17
17
  - bio-vcf
@@ -22,6 +22,7 @@ extra_rdoc_files:
22
22
  files:
23
23
  - ".travis.yml"
24
24
  - Gemfile
25
+ - Gemfile.lock
25
26
  - LICENSE.txt
26
27
  - README.md
27
28
  - Rakefile
@@ -29,8 +30,11 @@ files:
29
30
  - VERSION
30
31
  - bin/bio-vcf
31
32
  - bio-vcf.gemspec
33
+ - features/#cli.feature#
32
34
  - features/cli.feature
33
35
  - features/diff_count.feature
36
+ - features/filter.feature
37
+ - features/filter.feature~
34
38
  - features/multisample.feature
35
39
  - features/sfilter.feature
36
40
  - features/somaticsniper.feature
@@ -81,6 +85,9 @@ files:
81
85
  - test/data/regression/ifilter_s.dp-stderr.new
82
86
  - test/data/regression/ifilter_s.dp.new
83
87
  - test/data/regression/ifilter_s.dp.ref
88
+ - test/data/regression/pass1-stderr.new
89
+ - test/data/regression/pass1.new
90
+ - test/data/regression/pass1.ref
84
91
  - test/data/regression/r.info.dp-stderr.new
85
92
  - test/data/regression/r.info.dp.new
86
93
  - test/data/regression/r.info.dp.ref
@@ -112,6 +119,8 @@ files:
112
119
  - test/data/regression/vcf2json_use_meta.new
113
120
  - test/data/regression/vcf2json_use_meta.ref
114
121
  - test/performance/metrics.md
122
+ - test/stress/stress_test.sh
123
+ - test/stress/stress_test.sh~
115
124
  - test/tmp/test.vcf
116
125
  homepage: http://github.com/pjotrp/bioruby-vcf
117
126
  licenses:
@@ -133,8 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
142
  version: '0'
134
143
  requirements: []
135
144
  rubyforge_project:
136
- rubygems_version: 2.4.5
145
+ rubygems_version: 2.4.5.1
137
146
  signing_key:
138
147
  specification_version: 4
139
- summary: Fast multi-threaded VCF parser
148
+ summary: Fast multi-purpose multi-threaded VCF parser
140
149
  test_files: []