viral_seq 1.2.9 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +24 -2
- data/bin/tcs +18 -5
- data/bin/tcs_log +614 -0
- data/bin/tcs_sdrm +9 -6
- data/docs/variants_structure.pdf +0 -0
- data/lib/viral_seq/constant.rb +3 -1
- data/lib/viral_seq/hivdr.rb +22 -14
- data/lib/viral_seq/seq_hash.rb +139 -0
- data/lib/viral_seq/tcs_core.rb +21 -0
- data/lib/viral_seq/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bc062e2f207fd9e33d97885125b656c4b24ae8056221020bb611c191104109b
|
4
|
+
data.tar.gz: a0086f02da866821c134a9433317b7016a429e37e775de65d434dbae1b7efd23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc29bb6914196e4aa0fa6d7c2db25d4db1179f40a551dc0784534fe2225c857ef22663815d483412db1a715977574a01ab457a5d4913e38a7a9ac439b38795ab
|
7
|
+
data.tar.gz: f42559bc07b75b2d9a4023af0313cc40e037697970c0ac4a6c34fd04938b5ab879ece19fd95d05237075292c38a93e315018c7e0c03bd0ee9ab8cf1716b894ed
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
viral_seq (1.
|
5
|
-
colorize (
|
6
|
-
combine_pdf (>= 1.0.0)
|
7
|
-
muscle_bio (
|
8
|
-
prawn (>= 2.3.0)
|
9
|
-
prawn-table (>= 0.2.0)
|
4
|
+
viral_seq (1.3.0)
|
5
|
+
colorize (~> 0.1)
|
6
|
+
combine_pdf (~> 1.0, >= 1.0.0)
|
7
|
+
muscle_bio (~> 0.4)
|
8
|
+
prawn (~> 2.3, >= 2.3.0)
|
9
|
+
prawn-table (~> 0.2, >= 0.2.0)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
data/README.md
CHANGED
@@ -55,7 +55,7 @@ Example commands:
|
|
55
55
|
---
|
56
56
|
### `tcs_log`
|
57
57
|
|
58
|
-
Use `tcs_log` script to pool run logs and TCS fasta files after one batch of `tcs` jobs.
|
58
|
+
Use `tcs_log` script to pool run logs and TCS fasta files after one batch of `tcs` jobs. This command generates log.html to visualize the sequencing runs.
|
59
59
|
|
60
60
|
|
61
61
|
Example file structure:
|
@@ -179,10 +179,32 @@ qc_seqhash.sdrm_hiv_pr(cut_off)
|
|
179
179
|
|
180
180
|
## Updates
|
181
181
|
|
182
|
+
### Version 1.6.0-01042022
|
183
|
+
|
184
|
+
1. Update the `ViralSeq::TcsCore::detection_limit` with pre-calculated values to save processing time.
|
185
|
+
2. Update `tcs` pipeline to v2.5.0. HTML report will generated after running `tcs_log` script after `tcs` pipeline.
|
186
|
+
|
187
|
+
### Version 1.5.0-01042022
|
188
|
+
|
189
|
+
1. Added a function to calcute detection limit/sensitivity for minority variants (R required). `ViralSeq::TcsCore::detection_limit`
|
190
|
+
2. Added a function to get a sub SeqHash object given a range of nt positions. `ViralSeq::SeqHash#nt_range`
|
191
|
+
3. Added a function to quality check dna sequences comparing with sample consensus for indels. `ViralSeq::SeqHash#qc_indel`
|
192
|
+
4. Added a function for DNA variant analysis. Return a Hash object that can output as a JSON file. `ViralSeq::SeqHash#nt_variants`
|
193
|
+
5. Added a function to check the size of sequences of a SeqHash object. `ViralSeq::SeqHash#check_nt_size`
|
194
|
+
|
195
|
+
### Version 1.4.0-10132021
|
196
|
+
|
197
|
+
1. Added a function to calculate false detectionr rate (FDR, aka, Benjamini-Hochberg correction) for minority mutations detected in the sequences. `ViralSeq::SeqHash#fdr`
|
198
|
+
2. Updated `bin\tcs_sdrm` script to add FDR value to each DRMs detected.
|
199
|
+
|
200
|
+
### Version 1.3.0-08302021
|
201
|
+
|
202
|
+
1. Fixed a bug in the `tcs` pipeline.
|
203
|
+
|
182
204
|
### Version 1.2.9-08022021
|
183
205
|
|
184
206
|
1. Fixed a bug when reading the input primer sequences in lowercases.
|
185
|
-
2.
|
207
|
+
2. Fixed a bug in the method ViralSeq::Math::RandomGaussian
|
186
208
|
|
187
209
|
### Version 1.2.8-07292021
|
188
210
|
|
data/bin/tcs
CHANGED
@@ -32,9 +32,18 @@ require 'optparse'
|
|
32
32
|
|
33
33
|
options = {}
|
34
34
|
|
35
|
-
banner = '-'*50 + "\n" +
|
36
|
-
|
37
|
-
|
35
|
+
# banner = '-'*50 + "\n" +
|
36
|
+
# '| The TCS Pipeline ' + "Version #{ViralSeq::TCS_VERSION}".red.bold + " by " + "Shuntai Zhou".blue.bold + ' |' + "\n" +
|
37
|
+
# '-'*50 + "\n"
|
38
|
+
|
39
|
+
banner = "\n" +
|
40
|
+
"████████ ██████ ███████ ██████ ██ ██████ ███████ ██ ██ ███ ██ ███████\n".light_red +
|
41
|
+
" ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██\n".light_yellow +
|
42
|
+
" ██ ██ ███████ ██████ ██ ██████ █████ ██ ██ ██ ██ ██ █████\n".light_green +
|
43
|
+
" ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██\n".light_cyan +
|
44
|
+
" ██ ██████ ███████ ██ ██ ██ ███████ ███████ ██ ██ ████ ███████\n".light_magenta
|
45
|
+
|
46
|
+
banner += "\nVersion #{ViralSeq::TCS_VERSION}".red.bold + " by " + "Shuntai Zhou".blue.bold + "\n\n"
|
38
47
|
|
39
48
|
OptionParser.new do |opts|
|
40
49
|
opts.banner = banner + "Usage: tcs -j"
|
@@ -200,7 +209,7 @@ begin
|
|
200
209
|
summary_json[:paired_raw_sequence] = paired_seq_number
|
201
210
|
if paired_seq_number < raw_sequence_number * 0.001
|
202
211
|
summary_json[:warnings] <<
|
203
|
-
"WARNING: Filtered raw
|
212
|
+
"WARNING: Filtered raw sequences less than 0.1% of the total raw sequences. Possible contamination."
|
204
213
|
end
|
205
214
|
|
206
215
|
common_keys.each do |seqtag|
|
@@ -401,7 +410,11 @@ begin
|
|
401
410
|
when 4
|
402
411
|
joined_sh = shp.join2(model: :indiv)
|
403
412
|
end
|
404
|
-
|
413
|
+
if joined_sh
|
414
|
+
return joined_sh
|
415
|
+
else
|
416
|
+
joined_sh = ViralSeq::SeqHash.new
|
417
|
+
end
|
405
418
|
end
|
406
419
|
|
407
420
|
if primer[:end_join]
|