basil 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,12 +32,14 @@ module Basil
32
32
  records.each do |record|
33
33
 
34
34
  match = basil.recognize record.sequence
35
- barcode, trimmed_sequence = match if match
35
+ barcode, sequence = match if match
36
36
 
37
37
  unless match
38
38
  barcode = 'unknown'
39
39
  trimmed_sequence = record.sequence
40
40
  end
41
+
42
+ trimmed_sequence = record.sequence[pretrim..-1]
41
43
 
42
44
  new_record = Fasta.new :name => record.name, :sequence => trimmed_sequence
43
45
  buffer.add_to File.join(out_dir, barcode + ".#{records_format}"), new_record
@@ -1,3 +1,3 @@
1
1
  module Basil
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/readme.md CHANGED
@@ -4,7 +4,7 @@ Yet another tool for splitting barcoded sequences. It had to be done.
4
4
 
5
5
  ## Installation
6
6
 
7
- gem install basil
7
+ (sudo) gem install basil
8
8
 
9
9
  ## Features
10
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basil
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson