Sha256: 1480b6bf29e28b7aa8dcfb4bf449642ed3c70d3a69c6cb91d1106d2e3e20f63a
Contents?: true
Size: 770 Bytes
Versions: 7
Compression:
Stored size: 770 Bytes
Contents
When /^build an index on the reference sequence$/ do @idx = Bio::MAF::KyotoIndex.build(@parser, '%') end When /^build an index on all sequences$/ do @idx = Bio::MAF::KyotoIndex.build(@parser, '%', false) 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
7 entries across 7 versions & 1 rubygems