Class: Bio::MAF::MaxSizeFilter
Constant Summary
Constants included from KVHelpers
KVHelpers::CHROM_BIN_PREFIX_FMT, KVHelpers::KEY_FMT, KVHelpers::KEY_SCAN_FMT, KVHelpers::VAL_FMT, KVHelpers::VAL_IDX_OFFSET_FMT, KVHelpers::VAL_N_SEQ_FMT, KVHelpers::VAL_SPECIES_FMT, KVHelpers::VAL_TEXT_SIZE_FMT
Instance Method Summary collapse
-
#initialize(n, idx) ⇒ MaxSizeFilter
constructor
A new instance of MaxSizeFilter.
- #match(entry) ⇒ Object
Methods inherited from Filter
Methods included from KVHelpers
bin_start_prefix, extract_index_offset, extract_n_sequences, extract_species_vec, extract_text_size, unpack_key
Constructor Details
#initialize(n, idx) ⇒ MaxSizeFilter
Returns a new instance of MaxSizeFilter.
908 909 910 |
# File 'lib/bio/maf/index.rb', line 908 def initialize(n, idx) @n = n end |
Instance Method Details
#match(entry) ⇒ Object
911 912 913 |
# File 'lib/bio/maf/index.rb', line 911 def match(entry) extract_text_size(entry) <= @n end |