Sha256: aabfc01b4eb788ae380d7fe235cac921fe4ebb918ed634e671549806291f21c6

Contents?: true

Size: 361 Bytes

Versions: 13

Compression:

Stored size: 361 Bytes

Contents

#require 'bio-ucsc-api'

Given /^I have a region with start (\d+) and end (\d+)$/ do |r_start, r_end|
  @r_start = r_start.to_i
  @r_end = r_end.to_i
end

When /^I compute the smallest containing bin$/ do
  @bin = Bio::Ucsc::UcscBin.bin_from_range(@r_start, @r_end)
end

Then /^the bin should be (\d+)$/ do |expected_bin|
  @bin.should == expected_bin.to_i
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bio-maf-1.0.1-java features/step_definitions/ucsc_bin_steps.rb
bio-maf-1.0.1 features/step_definitions/ucsc_bin_steps.rb
bio-maf-1.0.0-java features/step_definitions/ucsc_bin_steps.rb
bio-maf-1.0.0 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.3.2-java features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.3.2 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.3.1 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.3.0-java features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.3.0 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.2.0-java features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.2.0 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.1.0 features/step_definitions/ucsc_bin_steps.rb
bio-maf-0.1.0-java features/step_definitions/ucsc_bin_steps.rb