viral_seq 1.2.1 → 1.2.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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -1
  3. data/bin/tcs +16 -4
  4. data/lib/viral_seq/version.rb +2 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3316ff7e72ca84c6eb2fa861a9fdad14fbcb3ab3c0053ade843ee13cc9ce82e
4
- data.tar.gz: df1035ea5934b794ef8c64a04085f407bcd4dffc0888bf81a569a7ccfba3560a
3
+ metadata.gz: a235cae95121a8522a47620eb9f8c05a3e2e416084743cd23df43aff7870a2c4
4
+ data.tar.gz: f0ce3a9412774eed703b0b0b663e7bb2dccf340f3f558cffdca85e920291794d
5
5
  SHA512:
6
- metadata.gz: a3ec35b3a40ee9cf66131416a1c20eda38bf8bde818aa41af285c099ddd2b49e4f31fe1d011c95def77fd5c6653d96f4295142fd543444f249242154bb2b671b
7
- data.tar.gz: daa6e694a841cc615cfde850bf2d98ca7467cb1d27502daf398ab0204e55c4d477f34aafce0149c765a931755fc3a3f7dbdf425964904d0199efb0651b9a09a6
6
+ metadata.gz: b97f98e40b8257281bd29cee40942d16084cf175933fc8357838ebb2a9eede1ab93ba323dbf315afb300f0a7852b2c6d939235831124710fc6f16f109e3eafc5
7
+ data.tar.gz: 4d660da22c69ce1ff929ed7f67d2b03aad662bb0237e9a93d9a8ea6bd1866d8544ad108db9ab8a11eee2df992395e41b68ffc43a8d1dbb132cc1f83a897676ef
data/README.md CHANGED
@@ -31,7 +31,7 @@ Specifically for Primer ID sequencing and HIV drug resistance analysis.
31
31
  ### Excutables
32
32
 
33
33
  ### `tcs`
34
- Use executable `tcs` pipeline to process **Primer ID MiSeq sequencing** data.
34
+ Use executable `tcs` pipeline (v2.3.2) to process **Primer ID MiSeq sequencing** data.
35
35
 
36
36
  Example commands:
37
37
  ```bash
@@ -175,6 +175,11 @@ qc_seqhash.sdrm_hiv_pr(cut_off)
175
175
 
176
176
  ## Updates
177
177
 
178
+ ### Version 1.2.2-05272021
179
+
180
+ 1. Fixed a bug in the `tcs` pipeline that sometimes causes `SystemStackError`.
181
+ `tcs` pipeline upgraded to v2.3.2
182
+
178
183
  ### Version 1.2.1-05172021
179
184
 
180
185
  1. Added a function in R to check and install missing R packages for `tcs_sdrm` pipeline.
data/bin/tcs CHANGED
@@ -371,9 +371,21 @@ primers.each do |primer|
371
371
  # Primer ID distribution in .json file
372
372
  out_pid_json = File.join(out_dir_set, 'primer_id.json')
373
373
  pid_json = {}
374
- pid_json[:primer_id_in_use] = Hash[*(primer_id_in_use.sort_by {|k, v| [-v,k]}.flatten)]
375
- pid_json[:primer_id_distribution] = Hash[*(primer_id_dis.sort_by{|k,v| k}.flatten)]
376
- pid_json[:primer_id_frequency] = Hash[*(primer_id_count.sort_by {|k, v| [-v,k]}.flatten)]
374
+ pid_json[:primer_id_in_use] = {}
375
+ primer_id_in_use.sort_by {|k, v| [-v,k]}.each do |k,v|
376
+ pid_json[:primer_id_in_use][k] = v
377
+ end
378
+
379
+ pid_json[:primer_id_distribution] = {}
380
+ primer_id_dis.sort_by{|k,v| k}.each do |k,v|
381
+ pid_json[:primer_id_distribution][k] = v
382
+ end
383
+
384
+ pid_json[:primer_id_frequency] = {}
385
+ primer_id_count.sort_by {|k,v| [-v,k]}.each do |k,v|
386
+ pid_json[:primer_id_frequency][k] = v
387
+ end
388
+
377
389
  File.open(out_pid_json, 'w') do |f|
378
390
  f.puts JSON.pretty_generate(pid_json)
379
391
  end
@@ -490,6 +502,6 @@ unless options[:keep]
490
502
  File.unlink(r1_f)
491
503
  File.unlink(r2_f)
492
504
  end
493
- log.puts Time.now.to_s + "\t" + "TCS pipeline successfuly exercuted."
505
+ log.puts Time.now.to_s + "\t" + "TCS pipeline successfuly executed."
494
506
  log.close
495
507
  puts "DONE!"
@@ -2,6 +2,6 @@
2
2
  # version info and histroy
3
3
 
4
4
  module ViralSeq
5
- VERSION = "1.2.1"
6
- TCS_VERSION = "2.3.1"
5
+ VERSION = "1.2.2"
6
+ TCS_VERSION = "2.3.2"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viral_seq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuntai Zhou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-17 00:00:00.000000000 Z
12
+ date: 2021-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler