mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
bcf2pro_file.h
1 /* An bcf */
2 
3 #ifndef _BCF_FILE_H_
4 #define _BCF_FILE_H_
5 
6 #include <iostream>
7 #include <cfloat>
8 #include <iomanip>
9 #include <vector>
10 
11 #include "typedef.h"
12 #include "datatypes.h"
13 #include "raw.h"
14 #include "stream_tools.h"
15 
16 #include "map_file.h"
17 #include "locus.h"
18 #include "bcf2pro.h"
19 
21 
24 class Bcf2pro_file : public Indexed_file <Locus> {
26 
27  void read_text(Locus &);
28  void read_text_profile(Locus &locus){Indexed_file<Locus>::read_text(locus);};
29 
30  bool profile_;
31 
32  int columns_, offset_;
33 
35  using Indexed_file<Locus>::out_; //(const std::ios_base::openmode &);
36  using Indexed_file<Locus>::in_; //(const std::ios_base::openmode &);
37 
38  using Base_file::open_;
40 public:
41  Bcf2pro_file(){profile_=false;};
42  Bcf2pro_file(bool call){profile_=call;};
43  void set_mpileup(const int &, const int &);
44 /* Mpileup_file(){
45  open_=false;
46  table_open_=false;
47  read_=false;
48  write_=false;
49  delim_column_='\t';
50  binary_=false;
51  filename_="";
52  concatenated_=false;
53  indexed_=false;
54  }; //!< default constructor*/
58 
66 
68  Locus read_header(void);
69 };
70 
71 #endif
Definition: map_file.h:287
T read_header(void)
Reads a file header.
Definition: map_file.h:763
Locus read_header(void)
Reads a file header.
Definition: bcf2pro_file.cc:27
bool profile_
Read file in text mode. DONE.
Definition: bcf2pro_file.h:28
Locus read_header_profile(void)
< Writes a file header.
Definition: bcf2pro_file.h:67
Because of the god awful mess that are vcf header lines.
Definition: bcf2pro_file.h:24
void read_text(Locus &)
Read file in text mode. DONE.
Definition: bcf2pro_file.cc:3
void read_text(T &)
Read file in text mode. DONE.
Definition: map_file.h:515
bool table_open_
indicates whether the header has been read successfully
Definition: map_file.h:68
bool open_
indicates whether the iostream opened succesfully
Definition: map_file.h:60
Definition: locus.h:14