12 #ifndef __SEQUENCE_COALESCENT_FRAGMENTS_RESCALING_HPP__ 13 #define __SEQUENCE_COALESCENT_FRAGMENTS_RESCALING_HPP__ 23 int sample_length(
const std::vector< std::pair<int,int> > & fragments );
24 int total_length(
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));
32 const std::vector< std::pair<int,int> > & fragments );
34 const int & current_nsam,
35 const std::vector<double> & genetic_map,
36 std::vector<double> * reclens);
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.
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...
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 ¤t_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...