A library for working with phylogenetic and population genetic data.
v0.32.0
function/genome_locus_set.hpp
Go to the documentation of this file.
1
#ifndef GENESIS_POPULATION_FUNCTION_GENOME_LOCUS_SET_H_
2
#define GENESIS_POPULATION_FUNCTION_GENOME_LOCUS_SET_H_
3
4
/*
5
Genesis - A toolkit for working with phylogenetic data.
6
Copyright (C) 2014-2024 Lucas Czech
7
8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
Contact:
22
Lucas Czech <lucas.czech@sund.ku.dk>
23
University of Copenhagen, Globe Institute, Section for GeoGenetics
24
Oster Voldgade 5-7, 1350 Copenhagen K, Denmark
25
*/
26
34
#include "
genesis/population/genome_locus_set.hpp
"
35
#include "
genesis/sequence/sequence_dict.hpp
"
36
#include "
genesis/utils/io/input_source.hpp
"
37
#include "
genesis/utils/io/input_stream.hpp
"
38
39
#include <string>
40
#include <utility>
41
#include <vector>
42
43
namespace
genesis
{
44
namespace
population {
45
46
// =================================================================================================
47
// Conversion
48
// =================================================================================================
49
50
genesis::sequence::SequenceDict
reference_locus_set_to_dict
( GenomeLocusSet
const
& set );
51
52
// =================================================================================================
53
// Mask Fasta Reading
54
// =================================================================================================
55
85
GenomeLocusSet
read_mask_fasta
(
86
std::shared_ptr< utils::BaseInputSource > source,
87
size_t
mask_min = 0,
88
bool
invert =
false
89
);
90
91
}
// namespace population
92
}
// namespace genesis
93
94
#endif // include guard
genesis::population::read_mask_fasta
GenomeLocusSet read_mask_fasta(std::shared_ptr< utils::BaseInputSource > source, size_t mask_min, bool invert)
Read an input source as a mask fasta file, and return its content as a GenomeLocusSet.
Definition:
function/genome_locus_set.cpp:69
genesis::sequence::SequenceDict
Store dictionary/index data on sequence files, such as coming from .fai or .dict files.
Definition:
sequence_dict.hpp:63
input_source.hpp
input_stream.hpp
sequence_dict.hpp
genesis
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Definition:
placement/formats/edge_color.cpp:42
genome_locus_set.hpp
genesis::population::reference_locus_set_to_dict
genesis::sequence::SequenceDict reference_locus_set_to_dict(GenomeLocusSet const &set)
Definition:
function/genome_locus_set.cpp:50
lib
genesis
population
function
genome_locus_set.hpp
Generated on Mon Aug 5 2024 16:57:52 for genesis by
1.8.17