viral_seq 1.2.7 → 1.2.8

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: 554845dba339d0e06b84c88bc117258516f391bdf58cce015c2669e7b2c6c0d5
4
- data.tar.gz: 870280337c90d1f5b9ecbea6e6478d7e2dc22aa70917c6b2ecd94afaa185c1c6
3
+ metadata.gz: bb2f3be04857f96f8cf15b02e67a585771c04d45d4e4be68e566b4226342b5f0
4
+ data.tar.gz: 2c36ff5494bcf415796a5a8b10da22721a6ea6f574a97601d0a9ad487236e70e
5
5
  SHA512:
6
- metadata.gz: 54db76e6fd8333ccebb19dee602378ec8dbe5d196ec7bd675e55f65db80cb06ac2ab51ce1f13ab7ea65c0a50ad49978bd3e9581074c497b298f0912858946fa8
7
- data.tar.gz: 03d02329192465a9f278715c8a85e3a910e5c5c7252026980d29e669df823a5bdb4be323eeb56f7c9804b71fa8f1763c5a526227f3764315d6eb8e208934ce81
6
+ metadata.gz: abc5622ae5dc8d5e1343f8e85557fc03e169146a34f6d980bf0d5db4dc973d41d81cc89bb0ce9cc0dd5a090d1c58357834431d9d1ad106f31c3a8f0a739ce4b9
7
+ data.tar.gz: a890a557536ff43073258220801bdc8b6294b3c22bc8ec030f245bb9acccfeaebf8f0d3b228233de4e980558e88c953143d57f1ff3bc2a5b366026d7371df67d
data/README.md CHANGED
@@ -179,10 +179,14 @@ qc_seqhash.sdrm_hiv_pr(cut_off)
179
179
 
180
180
  ## Updates
181
181
 
182
+ ### Version 1.2.8-07292021
183
+
184
+ 1. Fixed an issue when reading .fastq files containing blank_lines.
185
+
182
186
  ### Version 1.2.7-07152021
183
187
 
184
- 1. Optimzed the workflow of the `tcs` pipeline on raw data with uneven lengths.
185
- `tcs` version to v2.3.5.
188
+ 1. Optimzed the workflow of the `tcs` pipeline on raw data with uneven lengths.
189
+ `tcs` version to v2.3.6.
186
190
 
187
191
 
188
192
  ### Version 1.2.6-07122021
@@ -116,6 +116,8 @@ module ViralSeq
116
116
 
117
117
  File.open(fastq_file,'r') do |file|
118
118
  file.readlines.collect do |line|
119
+ line.tr!("\u0000","")
120
+ next if line == "\n"
119
121
  count +=1
120
122
  count_m = count % 4
121
123
  if count_m == 1
@@ -305,7 +305,8 @@ module ViralSeq
305
305
  end
306
306
 
307
307
  def general_filter(seq)
308
- if seq.size < ($platform_sequencing_length - 1)
308
+ return false unless seq
309
+ if seq.size < ($platform_sequencing_length - 10)
309
310
  return false
310
311
  elsif seq[1..-2] =~ /N/ # sequences with ambiguities except the 1st and last position removed
311
312
  return false
@@ -2,6 +2,6 @@
2
2
  # version info and histroy
3
3
 
4
4
  module ViralSeq
5
- VERSION = "1.2.7"
6
- TCS_VERSION = "2.3.6"
5
+ VERSION = "1.2.8"
6
+ TCS_VERSION = "2.3.7"
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.7
4
+ version: 1.2.8
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-07-15 00:00:00.000000000 Z
12
+ date: 2021-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler