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.
- data/basil.gemspec +1 -1
- data/lib/basil.rb +1 -3
- data/lib/basil/cli.rb +2 -1
- data/readme.md +5 -3
- metadata +4 -5
- data/lib/basil/version.rb +0 -3
data/basil.gemspec
CHANGED
data/lib/basil.rb
CHANGED
data/lib/basil/cli.rb
CHANGED
@@ -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
|
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
|
-
-
|
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
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
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
|
data/lib/basil/version.rb
DELETED