basil 0.0.3 → 0.0.4

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.
@@ -4,7 +4,7 @@ require 'basil/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'basil'
7
- s.version = Basil::VERSION
7
+ s.version = '0.0.4'
8
8
  s.authors = ["Austin G. Davis-Richardson"]
9
9
  s.email = ["harekrishna@gmail.com"]
10
10
  s.homepage = "http://github.com/audy/basil"
@@ -1,10 +1,8 @@
1
- require 'pp'
2
- require 'awesome_print'
1
+ require 'rubygems'
3
2
  require 'bundler'
4
3
 
5
4
  Bundler.require :default
6
5
 
7
-
8
6
  Dir.glob(File.join(File.dirname(__FILE__), 'basil', '*.rb')).each do |f|
9
7
  require f
10
8
  end
@@ -20,6 +20,7 @@ module Basil
20
20
  handles << reads_handle
21
21
  records_format = records.format
22
22
  pretrim = opts[:pretrim] || 0
23
+ afttrim = -1*opts[:afttrim] || -1
23
24
  end
24
25
 
25
26
  if File.exist? out_dir
@@ -39,7 +40,7 @@ module Basil
39
40
  trimmed_sequence = record.sequence
40
41
  end
41
42
 
42
- trimmed_sequence = record.sequence[pretrim..-1]
43
+ trimmed_sequence = record.sequence[pretrim..afttrim]
43
44
 
44
45
  new_record = Fasta.new :name => record.name, :sequence => trimmed_sequence
45
46
  buffer.add_to File.join(out_dir, barcode + ".#{records_format}"), new_record
data/readme.md CHANGED
@@ -4,13 +4,16 @@ Yet another tool for splitting barcoded sequences. It had to be done.
4
4
 
5
5
  ## Installation
6
6
 
7
+ You're gonna need Ruby 1.8.7 or better.
8
+
7
9
  (sudo) gem install basil
8
10
 
9
11
  ## Features
10
12
 
11
- - Trims and separates by barcode
13
+ **Demultiplexes multiplexed high-throughput sequencing data for Illumina, Roche 454, IonTorrent, _etc_... sequence data in their native formats**
14
+
12
15
  - Supports unlimited number of barcodes
13
- - Trimming from left/right end of read
16
+ - Trimming from left end of read
14
17
  - Barcodes provided as simple .csv file
15
18
  - Support input filetypes:
16
19
  - Fastq
@@ -19,7 +22,6 @@ Yet another tool for splitting barcoded sequences. It had to be done.
19
22
  ## TODO
20
23
 
21
24
  - Support regexp in barcodes input.
22
- - QSEQ (Illumina)
23
25
 
24
26
  ## Usage
25
27
 
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-14 00:00:00 Z
18
+ date: 2012-05-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: dna
@@ -95,7 +95,6 @@ files:
95
95
  - lib/basil/basil.rb
96
96
  - lib/basil/buffer.rb
97
97
  - lib/basil/cli.rb
98
- - lib/basil/version.rb
99
98
  - readme.md
100
99
  - spec/basil_spec.rb
101
100
  - spec/buffer_spec.rb
@@ -1,3 +0,0 @@
1
- module Basil
2
- VERSION = "0.0.3"
3
- end