Sha256: 0d486c07806a673ceae243522787c964ecdb69c19d1ac049117a6f60d4c8fd0a

Contents?: true

Size: 1.71 KB

Versions: 2

Compression:

Stored size: 1.71 KB

Contents

Feature: BGZF compression
  Because MAF files are large
  We need random access
  But we would also like to compress them
  Yet common compression formats don't facilitate random access
  So we use BGZF compression to support random access
  To 64 KB chunks

  @no_jruby
  Scenario: Compress a MAF file
    Given test files:
    | mm8_chr7_tiny.maf |
    When I run `maf_bgzip mm8_chr7_tiny.maf`
    Then it should pass with:
    """
    """
    And a file named "mm8_chr7_tiny.maf.bgz" should exist
    
  @no_jruby
  Scenario: Compress and index a MAF file
    Given test files:
    | mm8_chr7_tiny.maf |
    When I run `maf_bgzip -i mm8_chr7_tiny.maf`
    Then it should pass with:
    """
    """
    And a file named "mm8_chr7_tiny.maf.bgz" should exist
    And a file named "mm8_chr7_tiny.kct" should exist
    
  @no_jruby
  Scenario: Compress a gzipped MAF file
    Given test files:
    | mm8_chr7_tiny.maf.gz |
    When I run `maf_bgzip mm8_chr7_tiny.maf.gz`
    Then it should pass with:
    """
    """
    And a file named "mm8_chr7_tiny.maf.bgz" should exist
    
  @no_jruby
  Scenario: Compress and index a gzipped MAF file
    Given test files:
    | mm8_chr7_tiny.maf.gz |
    When I run `maf_bgzip -i mm8_chr7_tiny.maf.gz`
    Then it should pass with:
    """
    """
    And a file named "mm8_chr7_tiny.maf.bgz" should exist
    And a file named "mm8_chr7_tiny.kct" should exist
    
  @no_jruby
  Scenario: Compress multiple MAF files
    Given test files:
    | mm8_chr7_tiny.maf |
    | mm8.chrM.maf      |
    When I run `maf_bgzip mm8_chr7_tiny.maf mm8.chrM.maf`
    Then it should pass with:
    """
    """
    And a file named "mm8_chr7_tiny.maf.bgz" should exist
    And a file named "mm8.chrM.maf.bgz" should exist
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bio-maf-1.0.0-java features/bgzf.feature
bio-maf-1.0.0 features/bgzf.feature