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

Version Path
bio-maf-1.0.1-java features/step_definitions/index_steps.rb
bio-maf-1.0.1 features/step_definitions/index_steps.rb
bio-maf-1.0.0-java features/step_definitions/index_steps.rb
bio-maf-1.0.0 features/step_definitions/index_steps.rb
bio-maf-0.3.2-java features/step_definitions/index_steps.rb
bio-maf-0.3.2 features/step_definitions/index_steps.rb
bio-maf-0.3.1 features/step_definitions/index_steps.rb