Chopper
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
input_functor.hpp
Go to the documentation of this file.
1// ---------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/chopper/blob/main/LICENSE.md
6// ---------------------------------------------------------------------------------------------------
7
8#pragma once
9
10#include <cinttypes>
11#include <cstddef>
12#include <string>
13#include <vector>
14
15#include <seqan3/io/sequence_file/all.hpp>
16
17#include <hibf/config.hpp>
18
19namespace chopper
20{
21
23{
24 struct dna4_traits : public seqan3::sequence_file_input_default_traits_dna
25 {
26 using sequence_alphabet = seqan3::dna4;
27 };
28
30 seqan3::sequence_file_input<dna4_traits,
31 seqan3::fields<seqan3::field::seq>,
32 seqan3::type_list<seqan3::format_fasta, seqan3::format_fastq>>;
33
34 std::vector<std::vector<std::string>> filenames;
35
37
38 uint8_t kmer_size{21};
39
40 uint8_t window_size{21};
41
42 void operator()(size_t const num, seqan::hibf::insert_iterator it);
43};
44
45} // namespace chopper
Definition: adjust_seed.hpp:18
Definition: input_functor.hpp:25
seqan3::dna4 sequence_alphabet
Definition: input_functor.hpp:26
Definition: input_functor.hpp:23
seqan3::sequence_file_input< dna4_traits, seqan3::fields< seqan3::field::seq >, seqan3::type_list< seqan3::format_fasta, seqan3::format_fastq > > sequence_file_type
Definition: input_functor.hpp:32
std::vector< std::vector< std::string > > filenames
Definition: input_functor.hpp:34
void operator()(size_t const num, seqan::hibf::insert_iterator it)
Definition: input_functor.cpp:26
uint8_t window_size
Definition: input_functor.hpp:40
uint8_t kmer_size
Definition: input_functor.hpp:38
bool input_are_precomputed_files
Definition: input_functor.hpp:36