Sha256: 3c8c969dbf9d79e48cb9445fc1b583de278fcd3ef4da702fcbb1cc0ee9fe65ba
Contents?: true
Size: 963 Bytes
Versions: 1
Compression:
Stored size: 963 Bytes
Contents
module NGSCI # A simple read class # # @!attribute [r] start # @!attribute [r] stop # @!attribute [r] length # @!attribute [r] strand class Read attr_reader :start, :stop, :length, :strand def initialize(start,stop,strand: nil) =begin DEPRECATED chromosome variable unless chr.is_a?(String) raise NGSCIError.new "Invalid chromosome argument:\n" "chr:#{chr}\tstart:#{start}\tstop:#{stop}\tstrand:#{strand}" end =end unless start.is_a?(Integer) && stop.is_a?(Integer) && stop > start raise NGSCIError.new "Invalid coordinate arguments:\n" "chr:#{chr}\tstart:#{start}\tstop:#{stop}\tstrand:#{strand}" end if strand && !%w(+ -).include?(strand) raise NGSCIError.new "Invalid strand argument:\n" "chr:#{chr}\tstart:#{start}\tstop:#{stop}\tstrand:#{strand}" end @start=start @stop=stop @length=stop-start @strand=strand end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ngs-ci-0.0.2.b | lib/NGSCI/read.rb |