24 #include <Sequence/Coalescent/Mutation.hpp> 30 const unsigned & segsites,
31 const unsigned & nsam,
47 fprintf(fp,
"segsites: %u\npositions: ",segsites);
48 for(
unsigned i=0;i<segsites;++i)
50 fprintf(fp,
"%f ",gametes.first[i]);
53 for(
unsigned i=0;i<nsam;++i)
55 for(
unsigned j=0;j<segsites;++j)
57 fprintf(fp,
"%c",gametes.second[i][j]);
64 fprintf(fp,
"segsites: 0\n");
The namespace in which this library resides.
std::pair< std::vector< double >, std::vector< std::string > > gamete_storage_type
an object to store simulated gametes An object of this type will tend to exist in the calling environ...
void output_gametes(FILE *fp, const unsigned &segsites, const unsigned &nsam, const gamete_storage_type &gametes)
Write an object of type gamete_storage type to a C-style file stream This function is used when you n...