viral_seq 1.3.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6ff64bcbe0e019c4e6842feae4c775e5975307a51ca111ea6629de5f918a163
4
- data.tar.gz: 464d2eeacc49243722c8f8121df7a118c9a433da8df0e2f02e6c5195aa03e1a9
3
+ metadata.gz: 53c276c8975ad7b714e69906210e78950a3a6efa593cc56565fcf1b80d41d5db
4
+ data.tar.gz: 6171d3fb2594d2c214b6b94420dee99915e59941e4aeb74cd723bbc9a1d42ab8
5
5
  SHA512:
6
- metadata.gz: 9b0da2b42f7c1fb039995fa017cd6535a1253c6352be2f502ecf3ef25cbdc4bcdd7b8497e68ed00eab82e67007751be9474cc8a6f06ace3386a81456dae19a4e
7
- data.tar.gz: df93fd5689cfc8e6b5248febd0a57961cb6773b0e939cb3c980b9b13cae60ca9177209f24acd13e94748733c6c7dee165b89a86c4505f961618d68c4a05782d2
6
+ metadata.gz: 802ba6aff173d1fdae22f110e75228e2ed8d66ae4147c0e7c12ac2cad0334ca588e3ab23de57bda04bf7dfb33c778b5132c97f2eb58991c82584419ae29b5051
7
+ data.tar.gz: eb40f1364222f459392edc0dd00eba03b417d2236c4c0d2ea75b88b3153f6bf209aaf9ff0e5b28309de4abc33464cc9e9607d8d4b8bef16a9a1965a850a835ef
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- viral_seq (1.1.1)
5
- colorize (>= 0.1)
6
- combine_pdf (>= 1.0.0)
7
- muscle_bio (>= 0.4)
8
- prawn (>= 2.3.0)
9
- prawn-table (>= 0.2.0)
4
+ viral_seq (1.6.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,14 +179,37 @@ qc_seqhash.sdrm_hiv_pr(cut_off)
179
179
 
180
180
  ## Updates
181
181
 
182
+ ### Version-1.6.1-02022022
183
+
184
+ 1. Fixed the `nav bar` in tcs_log html file.
185
+ 2. Fixed a typo in `tcs`.
186
+
187
+ ### Version 1.6.0-01042022
188
+
189
+ 1. Update the `ViralSeq::TcsCore::detection_limit` with pre-calculated values to save processing time.
190
+ 2. Update `tcs` pipeline to v2.5.0. HTML report will generated after running `tcs_log` script after `tcs` pipeline.
191
+
192
+ ### Version 1.5.0-01042022
193
+
194
+ 1. Added a function to calcute detection limit/sensitivity for minority variants (R required). `ViralSeq::TcsCore::detection_limit`
195
+ 2. Added a function to get a sub SeqHash object given a range of nt positions. `ViralSeq::SeqHash#nt_range`
196
+ 3. Added a function to quality check dna sequences comparing with sample consensus for indels. `ViralSeq::SeqHash#qc_indel`
197
+ 4. Added a function for DNA variant analysis. Return a Hash object that can output as a JSON file. `ViralSeq::SeqHash#nt_variants`
198
+ 5. Added a function to check the size of sequences of a SeqHash object. `ViralSeq::SeqHash#check_nt_size`
199
+
200
+ ### Version 1.4.0-10132021
201
+
202
+ 1. Added a function to calculate false detectionr rate (FDR, aka, Benjamini-Hochberg correction) for minority mutations detected in the sequences. `ViralSeq::SeqHash#fdr`
203
+ 2. Updated `bin\tcs_sdrm` script to add FDR value to each DRMs detected.
204
+
182
205
  ### Version 1.3.0-08302021
183
206
 
184
- 1. Fixed a bug in the `tcs` pipeline.
207
+ 1. Fixed a bug in the `tcs` pipeline.
185
208
 
186
209
  ### Version 1.2.9-08022021
187
210
 
188
211
  1. Fixed a bug when reading the input primer sequences in lowercases.
189
- 2. Fix a bug in the method ViralSeq::Math::RandomGaussian
212
+ 2. Fixed a bug in the method ViralSeq::Math::RandomGaussian
190
213
 
191
214
  ### Version 1.2.8-07292021
192
215
 
data/bin/tcs CHANGED
@@ -32,9 +32,18 @@ require 'optparse'
32
32
 
33
33
  options = {}
34
34
 
35
- banner = '-'*50 + "\n" +
36
- '| The TCS Pipeline ' + "Version #{ViralSeq::TCS_VERSION}".red.bold + " by " + "Shuntai Zhou".blue.bold + ' |' + "\n" +
37
- '-'*50 + "\n"
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"
@@ -164,7 +173,7 @@ begin
164
173
  unless forward_primer
165
174
  log.puts Time.now.to_s + "\t" + region + " does not have forward primer sequence. #{region} skipped."
166
175
  end
167
- summary_json[:cdan_primer] = cdna_primer
176
+ summary_json[:cdna_primer] = cdna_primer
168
177
  summary_json[:forward_primer] = forward_primer
169
178
 
170
179
  primer[:majority] ? majority_cut_off = primer[:majority] : majority_cut_off = 0
@@ -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 sequneces less than 0.1% of the total raw sequences. Possible contamination."
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|