Sha256: c12f5d471eb0303d2a96399db2406778da1734aba01c327bc8ca4115af899298

Contents?: true

Size: 692 Bytes

Versions: 5

Compression:

Stored size: 692 Bytes

Contents

module Bio
  class DB
    module SAM
      module Library
        #IMPORTANT NOTE: Windows library is missing in this distribution

        # Return the path with the file name of the library for the specific operating system
        def filename
          #TODO refactor this piece of code in all the files
          lib_os = case RUBY_PLATFORM
          when /linux/
            'so.1'
          when /darwin/
            '1.dylib'
          when /windows/
            'dll'  
          end

          File.join(File.expand_path(File.dirname(__FILE__)),'external',"libbam.#{lib_os}")
        end #filename
        module_function :filename
      end #Library
    end #Sam
  end #DB
end #Bio

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bio-samtools-0.2.4 lib/bio/db/sam/library.rb
bio-samtools-0.2.3 lib/bio/db/sam/library.rb
bio-samtools-0.2.2 lib/bio/db/sam/library.rb
bio-samtools-0.2.1 lib/bio/db/sam/library.rb
bio-samtools-0.2.0 lib/bio/db/sam/library.rb