filter_options.h
Go to the documentation of this file.
114 INTEROP_RANGE_CHECK(m_naming_method, constants::TileNamingMethodCount, model::invalid_filter_option,
118 INTEROP_THROW(model::invalid_filter_option, "Invalid tile naming method: does not match RunInfo.xml: "
145 INTEROP_THROW(model::invalid_filter_option, "Base to filter is invalid: " << to_string(m_base));
662 const channel_t channel_beg = !supports_channel(metric_type) || supports_all_channels(plot_type) ?
678 const id_t cycle_beg = !supports_cycle(metric_type, plot_type) || supports_all_cycles(plot_type) ?
714 bool supports_section(const constants::plot_types /*plot_type*/, const model::run::info& info)const
807 bool supports_cycle(const constants::metric_type metric_type, const constants::plot_types plot_type)const
828 bool supports_read(const constants::metric_type metric_type, const constants::plot_types plot_type)const
838 bool supports_surface(const constants::metric_type metric_type, const model::run::info& info)const
id_t read() const
Definition: filter_options.h:553
bool supports_all_bases(const constants::plot_types plot_type) const
Definition: filter_options.h:761
Definition: enums.h:301
Definition: indirect_range_iterator.h:170
bool supports_section(const constants::plot_types, const model::run::info &info) const
Definition: filter_options.h:714
::uint32_t uint_t
Definition: base_metric.h:144
Definition: indirect_range_iterator.h:15
Definition: filter_options.h:28
bool supports_swath(const constants::plot_types) const
Definition: filter_options.h:724
bool valid_tile(const Metric &metric) const
Definition: filter_options.h:190
bool is_specific_read() const
Definition: filter_options.h:323
Definition: enum_description.h:15
bool valid_read(const id_t read) const
Definition: filter_options.h:359
Definition: info.h:35
bool supports_all_lanes(const constants::plot_types plot_type) const
Definition: filter_options.h:742
#define INTEROP_RANGE_CHECK(VALUE, RANGE, EXCEPTION, MESSAGE)
Definition: exception.h:31
void surface(const id_t s)
Definition: filter_options.h:483
Definition: filter_options.h:45
std::string cycle_description() const
Definition: filter_options.h:580
bool all_cycles() const
Definition: filter_options.h:273
std::string base_description() const
Definition: filter_options.h:608
void dna_base(const dna_base_t base)
Definition: filter_options.h:456
tile_naming_method_t naming_method() const
Definition: flowcell_layout.h:150
void validate(const constants::metric_type type, const run::info &run_info, const bool check_ignored=false) const INTEROP_THROW_SPEC((model
Definition: filter_options.h:108
std::string to_string(const std::vector< T > &values)
Definition: imaging_table_regression_test.cpp:32
bool supports_cycle(const constants::metric_type metric_type, const constants::plot_types plot_type) const
Definition: filter_options.h:807
uint_t total_number_of_sections() const
Definition: flowcell_layout.h:139
Definition: enums.h:301
bool all_swaths() const
Definition: filter_options.h:297
Definition: indirect_range_iterator.h:62
uint_t swath_count() const
Definition: flowcell_layout.h:109
bool supports_lane(const constants::plot_types plot_type) const
Definition: filter_options.h:751
filter_options(const constants::tile_naming_method naming_method, const id_t lane=ALL_IDS, const channel_t channel=ALL_CHANNELS, const dna_base_t base=static_cast< dna_base_t >(ALL_BASES), const id_t surface=ALL_IDS, const id_t read=ALL_IDS, const id_t cycle=ALL_IDS, const id_t tile_number=ALL_IDS, const id_t swath=ALL_IDS, const id_t section=ALL_IDS, const size_t subsample=0)
Definition: filter_options.h:65
void section(const id_t s)
Definition: filter_options.h:499
Definition: filter_options.h:43
channel_t channel() const
Definition: filter_options.h:535
bool supports_surface(const constants::metric_type metric_type, const model::run::info &info) const
Definition: filter_options.h:838
void subsample(const size_t count)
Definition: filter_options.h:431
friend std::ostream & operator<<(std::ostream &out, const filter_options &options)
Definition: filter_options.h:872
Definition: enums.h:341
Definition: enums.h:341
id_t cycle() const
Definition: filter_options.h:562
bool valid_tile_number(const id_t tile_number) const
Definition: filter_options.h:377
bool all_bases() const
Definition: filter_options.h:255
Definition: enums.h:341
Definition: enums.h:341
id_t lane() const
Definition: filter_options.h:527
Definition: plot_exceptions.h:26
Definition: enums.h:296
bool all_channels(const constants::metric_type type) const
Definition: filter_options.h:228
bool valid_tile_cycle(const Metric &metric) const
Definition: filter_options.h:205
bool all_bases(const constants::metric_type type) const
Definition: filter_options.h:247
size_t subsample() const
Definition: filter_options.h:848
bool is_specific_surface() const
Definition: filter_options.h:332
bool valid_base(const dna_base_t base) const
Definition: filter_options.h:413
bool valid_read(const Metric &metric) const
Definition: filter_options.h:217
void swath(const id_t s)
Definition: filter_options.h:491
bool valid_swath(const id_t swath) const
Definition: filter_options.h:386
bool supports_tile(const constants::plot_types) const
Definition: filter_options.h:733
bool all_reads() const
Definition: filter_options.h:264
uint_t surface_count() const
Definition: flowcell_layout.h:82
bool all_channels() const
Definition: filter_options.h:237
Definition: enums.h:296
bool supports_all_reads(const constants::plot_types plot_type) const
Definition: filter_options.h:818
bool is_read_metric(const constants::metric_type type)
Definition: metric_type_ext.h:135
const read_vector_t & reads() const
Definition: info.h:235
Definition: type_traits.h:131
Definition: enums.h:296
bool supports_all_channels(const constants::plot_types plot_type) const
Definition: filter_options.h:779
util::chain_range_iterator option_iterator(const model::run::info &info, const constants::metric_type metric_type, const constants::plot_types plot_type, const bool keep_state=false)
Definition: filter_options.h:653
const flowcell_layout & flowcell() const
Definition: info.h:214
Definition: filter_options.h:47
bool supports_all_cycles(const constants::plot_types plot_type) const
Definition: filter_options.h:797
void tile_number(const id_t s)
Definition: filter_options.h:507
bool valid_lane(const id_t lane) const
Definition: filter_options.h:341
dna_base_t dna_base() const
Definition: filter_options.h:544
bool all_lanes() const
Definition: filter_options.h:281
std::string surface_description() const
Definition: filter_options.h:618
bool all_sections() const
Definition: filter_options.h:305
bool is_channel_metric(const constants::metric_type type)
Definition: metric_type_ext.h:125
void channel(const channel_t channel)
Definition: filter_options.h:447
std::string channel_description(const std::vector< std::string > &channels) const
Definition: filter_options.h:598
void cycle(const id_t c)
Definition: filter_options.h:474
std::string lane_description() const
Definition: filter_options.h:589
bool valid_section(const id_t section) const
Definition: filter_options.h:395
bool valid_surface(const id_t surface) const
Definition: filter_options.h:350
Definition: enums.h:286
bool is_cycle_metric(const constants::metric_type type)
Definition: metric_type_ext.h:145
bool supports_base(const constants::metric_type metric_type) const
Definition: filter_options.h:770
model::metric_base::base_metric::uint_t id_t
Definition: filter_options.h:36
::int16_t channel_t
Definition: filter_options.h:34
void read(const id_t r)
Definition: filter_options.h:465
bool supports_channel(const constants::metric_type metric_type) const
Definition: filter_options.h:788
bool all_tile_numbers() const
Definition: filter_options.h:289
Definition: enums.h:341
constants::dna_bases dna_base_t
Definition: filter_options.h:32
constants::tile_naming_method naming_method() const
Definition: filter_options.h:636
bool valid_channel(const channel_t channel) const
Definition: filter_options.h:404
void lane(const id_t l)
Definition: filter_options.h:516
bool is_base_metric(const constants::metric_type type)
Definition: metric_type_ext.h:115
uint_t tile_count() const
Definition: flowcell_layout.h:116
uint_t lane_count() const
Definition: flowcell_layout.h:75
bool supports_read(const constants::metric_type metric_type, const constants::plot_types plot_type) const
Definition: filter_options.h:828
Destination lexical_cast(const Source &src)
Definition: lexical_cast.h:264
bool valid_cycle(const id_t cycle) const
Definition: filter_options.h:368
void tile_naming_method(const constants::tile_naming_method naming_method)
Definition: filter_options.h:439
const str_vector_t & channels() const
Definition: info.h:221
bool is_specific_read(const constants::metric_type type) const
Definition: filter_options.h:314
id_t surface() const
Definition: filter_options.h:571
Definition: enums.h:341
std::string read_description() const
Definition: filter_options.h:628