bpp-popgen3  3.0.0
DarwinVarSingle.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef _DARWIN_VAR_SINGLE_H_
6 #define _DARWIN_VAR_SINGLE_H_
7 
8 #include <Bpp/Exceptions.h>
9 #include <Bpp/Io/FileTools.h>
10 #include <Bpp/Text/TextTools.h>
12 
13 // From local Pop
14 #include "../AbstractODataSet.h"
15 
16 namespace bpp
17 {
24  public virtual AbstractODataSet
25 {
26 private:
27  size_t missingData_;
28 
29 public:
30  // Constructor and destructor
31  DarwinVarSingle(size_t missingData = 999);
33 
34 public:
39  void write(std::ostream& os, const DataSet& data_set) const;
40  void write(const std::string& path, const DataSet& data_set, bool overwrite) const;
49  virtual const std::string getFormatName() const
50  {
51  return "Darwin .var single data";
52  }
53  virtual const std::string getFormatDescription() const
54  {
55  return "Darwin .var file store data for each marker in each individual (1 variable per allele).";
56  }
60 };
61 } // end of namespace bpp;
62 
63 #endif // _DARWIN_VAR_SINGLE_H_
Partial implementation of the DataSet Output interface.
The Darwin .don output format for popgenlib.
void write(std::ostream &os, const DataSet &data_set) const
Write a DataSet on ostream.
virtual const std::string getFormatDescription() const
DarwinVarSingle(size_t missingData=999)
virtual const std::string getFormatName() const
The DataSet class.
Definition: DataSet.h:37