Sha256: b2fefdc2e22bdd8a77c6aadba2924414c01f847b8f4f508e2c97beed3b27aaf3
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
When /^build an index on the reference sequence$/ do @idx = Bio::MAF::KyotoIndex.build(@parser, '%') end Given /^a Kyoto Cabinet index file "(.*?)"$/ do |name| @idx = Bio::MAF::KyotoIndex.open($test_data + name) end Then /^the index has at least (\d+) entries$/ do |size_spec| @idx.db.count.should be >= size_spec.to_i end When /^search for blocks between positions (\d+) and (\d+) of (\S+)$/ do |i_start, i_end, chr| @interval = Bio::GenomicInterval.zero_based(chr, i_start.to_i, i_end.to_i) @blocks = @idx.find([@interval], @parser, @block_filter).to_a end Then /^(\d+) blocks? (?:is|are) obtained$/ do |num| @blocks.count.should == num.to_i end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bio-maf-0.3.0-java | features/step_definitions/index_steps.rb |
bio-maf-0.3.0 | features/step_definitions/index_steps.rb |