bpp-phyl3 3.0.0
IoPairedSiteLikelihoods.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 BPP_PHYL_LEGACY_IO_IOPAIREDSITELIKELIHOODS_H
6#define BPP_PHYL_LEGACY_IO_IOPAIREDSITELIKELIHOODS_H
7
8
9// From the STL:
10#include <vector>
11#include <string>
12#include <sstream>
13
14// From Bio++
15#include <Bpp/Io/IoFormat.h>
16#include "../Likelihood/PairedSiteLikelihoods.h"
17
18namespace bpp
19{
25class IOPairedSiteLikelihoods : public virtual IOFormat
26{};
27
28
35{
36public:
42 static PairedSiteLikelihoods readPairedSiteLikelihoods(std::istream& is);
43
49 static PairedSiteLikelihoods readPairedSiteLikelihoods(const std::string& path);
50
58 static void writePairedSiteLikelihoods(const PairedSiteLikelihoods& psl, std::ostream& os, const std::string& delim = "\t");
59
67 static void writePairedSiteLikelihoods(const PairedSiteLikelihoods& psl, const std::string& path, const std::string& delim = "\t");
68};
69
70
77{
78public:
83 static std::vector<double> readPairedSiteLikelihoods(std::istream& is);
84
89 static std::vector<double> readPairedSiteLikelihoods(const std::string& path);
90};
91} // namespace bpp
92#endif // BPP_PHYL_LEGACY_IO_IOPAIREDSITELIKELIHOODS_H
Base class for I/O on paired-site likelihoods.
This class provides input for the Phyml paired-site likelihoods format.
static std::vector< double > readPairedSiteLikelihoods(std::istream &is)
Read paired-site likelihoods from a Phyml-formatted stream.
This class provides I/O for the Tree-Puzzle/RAxML (phylip-like) paired-site likelihoods format.
static void writePairedSiteLikelihoods(const PairedSiteLikelihoods &psl, std::ostream &os, const std::string &delim="\t")
Write paired-site likelihoods to a stream.
static PairedSiteLikelihoods readPairedSiteLikelihoods(std::istream &is)
Read paired-site likelihoods from a Treepuzzle/RAxML-formatted stream.
A container for paired-site likelihoods (likelihoods over the same sites for different models,...
Defines the basic types of data flow nodes.