libsequence  1.9.5
FragmentsRescaling.hpp
Go to the documentation of this file.
1 
12 #ifndef __SEQUENCE_COALESCENT_FRAGMENTS_RESCALING_HPP__
13 #define __SEQUENCE_COALESCENT_FRAGMENTS_RESCALING_HPP__
14 
16 #include <vector>
17 #include <utility>
18 
19 namespace Sequence
20 {
21  class SimData; //fwd declaration
22  namespace coalsim {
23  int sample_length( const std::vector< std::pair<int,int> > & fragments );
24  int total_length( const std::vector< std::pair<int,int> > & fragments );
25  void calculate_scales(const std::vector< std::pair<int,int> > & fragments,
26  std::vector< std::pair<double,double> > * sample_scale,
27  std::vector< std::pair<double,double> > * mutation_scale );
29  const std::vector< std::pair<double,double> > & sample_scale,
30  const std::vector< std::pair<double,double> > & mutation_scale )__attribute__((deprecated));
31  void rescale_arg( arg * sample_history,
32  const std::vector< std::pair<int,int> > & fragments );
33  double integrate_genetic_map( const std::vector<chromosome> & sample,
34  const int & current_nsam,
35  const std::vector<double> & genetic_map,
36  std::vector<double> * reclens);
37  }
38 }
39 #endif
void calculate_scales(const std::vector< std::pair< int, int > > &fragments, std::vector< std::pair< double, double > > *sample_scale, std::vector< std::pair< double, double > > *mutation_scale)
This is a helper function that rescales physical distance in base pairs to continuous distance on the...
int total_length(const std::vector< std::pair< int, int > > &fragments)
When simulating partially linked regions, return the total length of the region.
std::list< marginal > arg
Ancestral Recombination Graph.
Definition: SimTypes.hpp:217
The namespace in which this library resides.
declaration of types for coalescent simulation
class __attribute__((deprecated)) FST
Functor to count the number of states, excluding gaps and missing data, in a range of characters...
Definition: FST.hpp:41
void rescale_mutation_positions(Sequence::SimData *d, const std::vector< std::pair< double, double > > &sample_scale, const std::vector< std::pair< double, double > > &mutation_scale) __attribute__((deprecated))
Rescales the positions of the mutations in d from the scale given in sample_scale to that given in mu...
double integrate_genetic_map(const std::vector< chromosome > &sample, const int &current_nsam, const std::vector< double > &genetic_map, std::vector< double > *reclens)
When simulating non-uniform recombination rates, the probability of recombination at each point in th...
Data from coalescent simulations.
int sample_length(const std::vector< std::pair< int, int > > &fragments)
When simulating partially linked regions, return the total length of sample material that we are simu...
void rescale_arg(arg *sample_history, const std::vector< std::pair< int, int > > &fragments)
Rescales the beginnings of marginal trees in an ancestral recombination graph from a genetic scale to...