fasta_read 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile.lock +8 -13
- data/Guardfile +26 -23
- data/README.md +2 -1
- data/Rakefile +2 -13
- data/bin/fasta_read +12 -12
- data/fasta_read.gemspec +3 -3
- data/features/fasta_read.feature +33 -19
- data/lib/fasta_read.rb +1 -4
- data/lib/fasta_read/sequence.rb +31 -0
- data/lib/fasta_read/version.rb +1 -1
- data/spec/fasta_read/sequence_spec.rb +37 -0
- data/spec/spec_helper.rb +8 -0
- metadata +12 -6
- data/spec/something_spec.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d46389f8c604841492cdfc937c0ac0c4ac69082
|
4
|
+
data.tar.gz: 79e57cab5fe9d2e5325eb8a8aa9e05ec7393e821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d11757e322c49a9c9607f37212e2dfe4350f9cfbb9498d29aecf89f672b6e7dc6dd6d2c2ef5ea4959800f3745a1a9dc9b0da5f0e5aa63467ecdba08b849795
|
7
|
+
data.tar.gz: a98f489a0d17f7123af3411578c27f716a5c7660f0bdb94adf55f025e337ac0796ebb836dcc44754125327c3f6087a3f75f97a482fe3ff07646b28b9ead4f2eb
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fasta_read (1.
|
5
|
-
methadone (
|
6
|
-
rake (
|
4
|
+
fasta_read (1.1.0)
|
5
|
+
methadone (>= 1.3.2)
|
6
|
+
rake (>= 0.9.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -44,7 +44,6 @@ GEM
|
|
44
44
|
guard-rspec (4.2.8)
|
45
45
|
guard (~> 2.1)
|
46
46
|
rspec (>= 2.14, < 4.0)
|
47
|
-
json (1.8.1)
|
48
47
|
listen (2.7.1)
|
49
48
|
celluloid (>= 0.15.2)
|
50
49
|
celluloid-io (>= 0.15.0)
|
@@ -61,12 +60,10 @@ GEM
|
|
61
60
|
coderay (~> 1.0)
|
62
61
|
method_source (~> 0.8)
|
63
62
|
slop (~> 3.4)
|
64
|
-
rake (
|
63
|
+
rake (10.2.2)
|
65
64
|
rb-fsevent (0.9.4)
|
66
65
|
rb-inotify (0.9.3)
|
67
66
|
ffi (>= 0.5.0)
|
68
|
-
rdoc (4.1.1)
|
69
|
-
json (~> 1.4)
|
70
67
|
rspec (2.14.1)
|
71
68
|
rspec-core (~> 2.14.0)
|
72
69
|
rspec-expectations (~> 2.14.0)
|
@@ -83,10 +80,8 @@ PLATFORMS
|
|
83
80
|
ruby
|
84
81
|
|
85
82
|
DEPENDENCIES
|
86
|
-
aruba
|
87
|
-
bundler (~> 1.5)
|
83
|
+
aruba (>= 0.5.4)
|
88
84
|
fasta_read!
|
89
|
-
guard-cucumber
|
90
|
-
guard-rspec
|
91
|
-
|
92
|
-
rspec
|
85
|
+
guard-cucumber (>= 1.4.1)
|
86
|
+
guard-rspec (>= 4.2.8)
|
87
|
+
rspec (>= 2.14.1)
|
data/Guardfile
CHANGED
@@ -1,33 +1,36 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
|
4
|
+
group :cucumber do
|
5
|
+
guard 'cucumber', all_on_start: false, change_format: "pretty" do
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
watch(%r{^bin/.+$}) { 'features' }
|
8
|
+
watch(%r{^lib/.+$}) { 'features' }
|
9
|
+
watch(%r{^features/.+\.feature$})
|
10
|
+
watch(%r{^features/support/.+$}) { 'features' }
|
11
|
+
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
|
12
|
+
end
|
11
13
|
end
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
group :rspec do
|
16
|
+
guard :rspec do
|
17
|
+
watch(%r{^spec/.+_spec\.rb$})
|
18
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
19
|
+
watch('spec/spec_helper.rb') { "spec" }
|
17
20
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
# Rails example
|
22
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
23
|
+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
24
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
25
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
26
|
+
watch('config/routes.rb') { "spec/routing" }
|
27
|
+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
25
28
|
|
26
|
-
|
27
|
-
|
29
|
+
# Capybara features specs
|
30
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
28
31
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
+
# Turnip features and steps
|
33
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
34
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
35
|
+
end
|
32
36
|
end
|
33
|
-
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/fasta_read.svg)](http://badge.fury.io/rb/fasta_read) [![Build Status](https://travis-ci.org/adamico/ruby-fasta-read.svg?branch=master)](https://travis-ci.org/adamico/ruby-fasta-read) [![Code Climate](https://codeclimate.com/github/adamico/ruby-fasta-read.png)](https://codeclimate.com/github/adamico/ruby-fasta-read)
|
1
2
|
# FastaRead
|
2
3
|
|
3
|
-
A Ruby command-line program that will take coordinates and return either a unmasked sequence or a snp-masked sequence. The coordinates refer to the start and stop positions, and are "UCSC coordinates" i.e. 0 based and half open (see [UCSC_coordinate_transforms](http://genomewiki.ucsc.edu/index.php/Coordinate_Transforms))
|
4
|
+
A Ruby command-line program that will take coordinates and return either a unmasked gene sequence or a snp-masked sequence. The coordinates refer to the start and stop positions, and are "UCSC coordinates" i.e. 0 based and half open (see [UCSC_coordinate_transforms](http://genomewiki.ucsc.edu/index.php/Coordinate_Transforms))
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
data/Rakefile
CHANGED
@@ -34,15 +34,12 @@ raise
|
|
34
34
|
end
|
35
35
|
|
36
36
|
require 'cucumber/rake/task'
|
37
|
-
gem 'rdoc' # we need the installed RDoc gem, not the system one
|
38
|
-
require 'rdoc/task'
|
39
37
|
|
40
38
|
include Rake::DSL
|
41
39
|
|
42
40
|
Bundler::GemHelper.install_tasks
|
43
41
|
|
44
|
-
|
45
|
-
RSpec::Core::RakeTask.new do |t|
|
42
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
46
43
|
# Put spec opts in a file named .rspec in root
|
47
44
|
end
|
48
45
|
|
@@ -54,13 +51,5 @@ Cucumber::Rake::Task.new(:features) do |t|
|
|
54
51
|
t.fork = false
|
55
52
|
end
|
56
53
|
|
57
|
-
Rake::RDocTask.new do |rd|
|
58
|
-
|
59
|
-
rd.main = "README.rdoc"
|
60
|
-
|
61
|
-
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
62
|
-
end
|
63
|
-
|
64
54
|
desc "Run Cucumber features"
|
65
|
-
task :default => [:features]
|
66
|
-
|
55
|
+
task :default => [:spec, :features]
|
data/bin/fasta_read
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'optparse'
|
4
4
|
require 'methadone'
|
5
|
-
require 'fasta_read
|
6
|
-
require 'fileutils'
|
5
|
+
require 'fasta_read'
|
7
6
|
|
8
7
|
class App
|
9
8
|
include Methadone::Main
|
@@ -13,19 +12,18 @@ class App
|
|
13
12
|
snp = masked_unmasked(options)[0]
|
14
13
|
subst = masked_unmasked(options)[1]
|
15
14
|
path = "fasta/#{assembly}/#{snp}/chr#{chromosome + subst}.fa"
|
16
|
-
|
15
|
+
exit_now_with!(assembly_or_chromosome(assembly, chromosome)) unless File.exist?(path)
|
16
|
+
fasta = IO.read(path)
|
17
17
|
debug("About to read #{assembly} #{snp} chr#{chromosome}:#{cstart}-#{cend}")
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
else
|
24
|
-
puts IO.read(path, cend.to_i - cstart.to_i, cstart.to_i)
|
18
|
+
sequence = FastaRead::Sequence.new(fasta, chromosome, cstart, cend).process
|
19
|
+
if options[:output]
|
20
|
+
File.open(options[:output], "w") do |file|
|
21
|
+
file.puts sequence
|
25
22
|
end
|
26
23
|
else
|
27
|
-
|
24
|
+
puts sequence
|
28
25
|
end
|
26
|
+
info "#{sequence.length} base pairs"
|
29
27
|
end
|
30
28
|
|
31
29
|
def self.masked_unmasked(options)
|
@@ -39,7 +37,6 @@ class App
|
|
39
37
|
def self.exit_now_with!(value_and_argument)
|
40
38
|
exit_now!(1, "the '#{value_and_argument[0]}' #{value_and_argument[1]} doesn't exist in directory structure")
|
41
39
|
end
|
42
|
-
|
43
40
|
# supplemental methods here
|
44
41
|
|
45
42
|
# Declare command-line interface here
|
@@ -49,10 +46,13 @@ class App
|
|
49
46
|
# Accept flags via:
|
50
47
|
# on("--flag VAL","Some flag")
|
51
48
|
# options[flag] will contain VAL
|
49
|
+
options['multiple-lines'] = true
|
52
50
|
#
|
53
51
|
# Specify switches via:
|
54
52
|
on "-o OUTPUTFILE", "--output", "outputs sequence to a file"
|
55
53
|
on "--snp", "return the sequence from the SNP-masked assembly"
|
54
|
+
on "--multiple-lines", "return the sequence from the SNP-masked assembly"
|
55
|
+
|
56
56
|
# on("--[no-]switch","Some switch")
|
57
57
|
#
|
58
58
|
# Or, just call OptionParser methods on opts
|
data/fasta_read.gemspec
CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "fasta_read"
|
8
8
|
spec.version = FastaRead::VERSION
|
9
9
|
spec.authors = ["Andrea D'Amico"]
|
10
|
-
spec.email = ["andrea.damico@gmail.com"]
|
10
|
+
spec.email = ["andrea.damico@gmail.com", "sfcarroll@gmail.com"]
|
11
11
|
spec.summary = %q{Fasta sequence extracter}
|
12
12
|
spec.description = %q{Extract DNA Fasta sequence from assembly files.}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/sfcarroll/ruby-fasta-read"
|
14
14
|
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_runtime_dependency 'methadone', '>= 1.3.2'
|
23
|
-
spec.
|
23
|
+
spec.add_runtime_dependency 'rake', '>= 0.9.2'
|
24
24
|
spec.add_development_dependency 'aruba', '>= 0.5.4'
|
25
25
|
spec.add_development_dependency 'rspec', '>= 2.14.1'
|
26
26
|
spec.add_development_dependency "guard-cucumber", '>= 1.4.1'
|
data/features/fasta_read.feature
CHANGED
@@ -4,16 +4,24 @@ Feature: My bootstrapped app kinda works
|
|
4
4
|
So I don't have to do it myself
|
5
5
|
|
6
6
|
Background:
|
7
|
-
Given a file named "fasta/hg19/unmasked/
|
7
|
+
Given a file named "fasta/hg19/unmasked/chr1.fa" with:
|
8
8
|
"""
|
9
|
-
|
9
|
+
>chr1
|
10
|
+
AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTT
|
11
|
+
CTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACC
|
12
|
+
ACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTG
|
13
|
+
GTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT
|
14
|
+
C
|
10
15
|
"""
|
11
|
-
And a file named "fasta/hg19/snp/
|
16
|
+
And a file named "fasta/hg19/snp/chr1.subst.fa" with:
|
12
17
|
"""
|
13
|
-
|
18
|
+
AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTT
|
19
|
+
CTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACC
|
20
|
+
ACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTG
|
21
|
+
GTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT
|
22
|
+
C
|
14
23
|
"""
|
15
24
|
|
16
|
-
@announce
|
17
25
|
Scenario: Basic UI
|
18
26
|
When I get help for "fasta_read"
|
19
27
|
Then the exit status should be 0
|
@@ -32,37 +40,43 @@ Feature: My bootstrapped app kinda works
|
|
32
40
|
|cstart |which is required|
|
33
41
|
|cend |which is required|
|
34
42
|
|
35
|
-
|
36
|
-
|
37
|
-
Given a file named "fasta/hg19/unmasked/chr12.fa" with:
|
43
|
+
Scenario Outline: files with one line stream
|
44
|
+
Given a file named "fasta/hg19/unmasked/chr1.fa" with:
|
38
45
|
"""
|
39
|
-
|
46
|
+
>chr1
|
47
|
+
AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTT
|
48
|
+
CTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACC
|
49
|
+
ACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTG
|
50
|
+
GTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT
|
51
|
+
C
|
40
52
|
"""
|
41
|
-
And a file named "fasta/hg19/snp/
|
53
|
+
And a file named "fasta/hg19/snp/chr1.subst.fa" with:
|
42
54
|
"""
|
43
|
-
|
55
|
+
>chr1
|
56
|
+
AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTT
|
57
|
+
CTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACC
|
58
|
+
ACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTG
|
59
|
+
GTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT
|
60
|
+
C
|
44
61
|
"""
|
45
62
|
When I successfully run `fasta_read <options>`
|
46
63
|
Then the output should contain "<output>"
|
47
64
|
Then the output should not contain "<noutput>"
|
48
65
|
|
49
66
|
Scenarios: unmasked
|
50
|
-
|options
|
51
|
-
|hg19
|
52
|
-
|hg19 12 10 20|cctcagcctc|ccaga |
|
67
|
+
|options |output |noutput|
|
68
|
+
|hg19 1 0 200|AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTTCTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACCACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTGGTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT|ccaga |
|
53
69
|
Scenarios: snp
|
54
70
|
|options |output |noutput|
|
55
|
-
|hg19
|
71
|
+
|hg19 1 0 200 --snp|AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTTCTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACCACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTGGTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT|ccaga |
|
56
72
|
|
57
|
-
@announce
|
58
73
|
Scenario: Export to file
|
59
|
-
When I successfully run `fasta_read hg19
|
74
|
+
When I successfully run `fasta_read hg19 1 0 200 --output=out.txt`
|
60
75
|
Then the file "out.txt" should contain:
|
61
76
|
"""
|
62
|
-
|
77
|
+
AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTTCTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACCACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTGGTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT
|
63
78
|
"""
|
64
79
|
|
65
|
-
@announce
|
66
80
|
Scenario Outline: Painful path
|
67
81
|
When I run `fasta_read <options>`
|
68
82
|
Then the stderr should contain "<output>"
|
data/lib/fasta_read.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module FastaRead
|
4
|
+
class Sequence
|
5
|
+
include Methadone::Main
|
6
|
+
include Methadone::CLILogging
|
7
|
+
|
8
|
+
attr_reader :separate_lines
|
9
|
+
|
10
|
+
def initialize(fasta, chromosome, cstart, cend)
|
11
|
+
@fasta = fasta.gsub("\n", "")
|
12
|
+
@chromosome = ">chr#{chromosome}"
|
13
|
+
@cstart = cstart.to_i
|
14
|
+
@cend = cend.to_i
|
15
|
+
end
|
16
|
+
|
17
|
+
def process
|
18
|
+
@fasta[real_cstart..real_cend]
|
19
|
+
end
|
20
|
+
|
21
|
+
def real_cstart
|
22
|
+
cstart = @cstart
|
23
|
+
cstart -= 1 unless @cstart == 0
|
24
|
+
cstart + @chromosome.length
|
25
|
+
end
|
26
|
+
|
27
|
+
def real_cend
|
28
|
+
@cend - 1 + @chromosome.length
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/fasta_read/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module FastaRead
|
4
|
+
describe Sequence do
|
5
|
+
let(:fasta) {">chr1\nAATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTT\nCTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACC\nACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTG\nGTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT\nC"}
|
6
|
+
describe "#real_cstart" do
|
7
|
+
context "when @cstart is > 0" do
|
8
|
+
subject {Sequence.new(fasta, "12", "5", "200").real_cstart}
|
9
|
+
it "should add file header string length" do
|
10
|
+
expect(subject).to eq 10
|
11
|
+
end
|
12
|
+
end
|
13
|
+
context "when @cstart is 0" do
|
14
|
+
subject {Sequence.new(fasta, "1", "0", "200").real_cstart}
|
15
|
+
it "should not subtract 1" do
|
16
|
+
expect(subject).to eq 5
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#real_cend" do
|
22
|
+
subject {Sequence.new(fasta, "1", "0", "200").real_cend}
|
23
|
+
it "should subtract 1 and add file header string length" do
|
24
|
+
expect(subject).to eq 204
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "#process" do
|
29
|
+
subject {Sequence.new(fasta, "1", "0", "200").process}
|
30
|
+
describe "with a continuous character stream" do
|
31
|
+
it "builds a character sequence" do
|
32
|
+
expect(subject).to eq "AATCACACGTGCAGGAACCCTTTTCCAAAGGAGGGTCACGCTCACAGCTTCTGGAGTAGGACATGGACTTGTCTTTTTGGAGGCCCATCCTCAACGCACCACAGTTGACTACATCAAGGTCTGCCTCTGATCTGGTGGGAGTGCTGGGTGGTCTGTCTCCACCAGCACTTTGTGGGTGGGCTCTGTCCCCAGGAAATGCT"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fasta_read
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea D'Amico
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: methadone
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.9.2
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -97,12 +97,15 @@ dependencies:
|
|
97
97
|
description: Extract DNA Fasta sequence from assembly files.
|
98
98
|
email:
|
99
99
|
- andrea.damico@gmail.com
|
100
|
+
- sfcarroll@gmail.com
|
100
101
|
executables:
|
101
102
|
- fasta_read
|
102
103
|
extensions: []
|
103
104
|
extra_rdoc_files: []
|
104
105
|
files:
|
105
106
|
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".travis.yml"
|
106
109
|
- Gemfile
|
107
110
|
- Gemfile.lock
|
108
111
|
- Guardfile
|
@@ -116,10 +119,12 @@ files:
|
|
116
119
|
- features/step_definitions/fasta_read_steps.rb
|
117
120
|
- features/support/env.rb
|
118
121
|
- lib/fasta_read.rb
|
122
|
+
- lib/fasta_read/sequence.rb
|
119
123
|
- lib/fasta_read/version.rb
|
120
|
-
- spec/
|
124
|
+
- spec/fasta_read/sequence_spec.rb
|
125
|
+
- spec/spec_helper.rb
|
121
126
|
- stories.txt
|
122
|
-
homepage: https://github.com/
|
127
|
+
homepage: https://github.com/sfcarroll/ruby-fasta-read
|
123
128
|
licenses:
|
124
129
|
- MIT
|
125
130
|
metadata: {}
|
@@ -147,5 +152,6 @@ test_files:
|
|
147
152
|
- features/fasta_read.feature
|
148
153
|
- features/step_definitions/fasta_read_steps.rb
|
149
154
|
- features/support/env.rb
|
150
|
-
- spec/
|
155
|
+
- spec/fasta_read/sequence_spec.rb
|
156
|
+
- spec/spec_helper.rb
|
151
157
|
has_rdoc:
|