Debian Codegraph @

plink2_fasta.h

raw
1 #ifndef __PLINK2_FASTA_H__
2 #define __PLINK2_FASTA_H__
3
4 // This file is part of PLINK 2.0, copyright (C) 2005-2025 Shaun Purcell,
5 // Christopher Chang.
6 //
7 // This program is free software: you can redistribute it and/or modify it
8 // under the terms of the GNU General Public License as published by the Free
9 // Software Foundation, either version 3 of the License, or (at your option)
10 // any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but WITHOUT
13 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 // more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20
21 #include "plink2_common.h"
22
23 #ifdef __cplusplus
24 namespace plink2 {
25 #endif
26
27 FLAGSET_DEF_START()
28 kfFa0,
29 kfFaRefFrom = (1 << 0),
30 kfFaRefFromForce = (1 << 1),
31 kfFaNormalize = (1 << 2),
32 kfFaNormalizeList = (1 << 3),
33 kfFaNormalizeAdjustOverlappingDeletions = (1 << 4),
34 kfFaScrapeLengths = (1 << 5)
35 FLAGSET_DEF_END(FaFlags);
36
37 PglErr ProcessFa(const uintptr_t* variant_include, const char* const* variant_ids, const uintptr_t* allele_idx_offsets, const ChrInfo* cip, const char* fname, uint32_t max_allele_ct, uint32_t max_allele_slen, FaFlags flags, uint32_t output_missing_geno_code, uint32_t max_thread_ct, UnsortedVar* vpos_sortstatusp, uint32_t* variant_bps, const char** allele_storage, AlleleCode* allele_permute, uintptr_t* nonref_flags, uint32_t* contig_lens, char* outname, char* outname_end);
38
39 #ifdef __cplusplus
40 } // namespace plink2
41 #endif
42
43 #endif // __PLINK2_FASTA_H__