Sha256: 90a45997de4be4d6025480cd8f934b4fa8187ad0af3140fdda5c0550c5c5a09b

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 Bytes

Contents

When /^slice the resulting blocks according to the given interval$/ do
  # @blocks and @interval
  @blocks = @blocks.collect { |b| b.slice(@interval) }
end

When /^I extract a slice over the genomic interval$/ do |table|
  # table is a Cucumber::Ast::Table
  intervals = table.hashes.collect do |row|
    Bio::GenomicInterval.zero_based(row['chrom'],
                                    row['start'].to_i,
                                    row['end'].to_i)
  end
  intervals.size.should == 1
  @blocks = @access.slice(intervals[0])
end

Version data entries

9 entries across 9 versions & 1 rubygems

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