Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstaab committed Jul 31, 2015
1 parent aa0e1e7 commit a80e64c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: coala
Version: 0.1.0.9001
Date: 2015-07-17
Version: 0.1.1.9000
Date: 2015-07-31
License: MIT + file LICENSE
Title: A Framework for Coalescent Simulation
Authors@R: c(
Expand Down
3 changes: 2 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
coala 0.1.1.9000
----------------

* Add MCMF summary statistic ().
* Add MCMF summary statistic (#94).



coala 0.1.1
Expand Down
8 changes: 4 additions & 4 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ calc_jsfs <- function(seg_sites, pop1, pop2) {
.Call('coala_calc_jsfs', PACKAGE = 'coala', seg_sites, pop1, pop2)
}

calc_nucleotide_div <- function(seg_sites, individuals) {
.Call('coala_calc_nucleotide_div', PACKAGE = 'coala', seg_sites, individuals)
}

calc_mcmf <- function(seg_sites, individuals, has_trios = TRUE) {
.Call('coala_calc_mcmf', PACKAGE = 'coala', seg_sites, individuals, has_trios)
}

calc_nucleotide_div <- function(seg_sites, individuals) {
.Call('coala_calc_nucleotide_div', PACKAGE = 'coala', seg_sites, individuals)
}

unphase_segsites <- function(seg_sites, ploidy, samples_per_ind) {
.Call('coala_unphase_segsites', PACKAGE = 'coala', seg_sites, ploidy, samples_per_ind)
}
Expand Down
22 changes: 11 additions & 11 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,28 @@ BEGIN_RCPP
return __result;
END_RCPP
}
// calc_nucleotide_div
NumericVector calc_nucleotide_div(List seg_sites, const NumericVector individuals);
RcppExport SEXP coala_calc_nucleotide_div(SEXP seg_sitesSEXP, SEXP individualsSEXP) {
// calc_mcmf
NumericVector calc_mcmf(const List seg_sites, const NumericVector individuals, const bool has_trios);
RcppExport SEXP coala_calc_mcmf(SEXP seg_sitesSEXP, SEXP individualsSEXP, SEXP has_triosSEXP) {
BEGIN_RCPP
Rcpp::RObject __result;
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< List >::type seg_sites(seg_sitesSEXP);
Rcpp::traits::input_parameter< const List >::type seg_sites(seg_sitesSEXP);
Rcpp::traits::input_parameter< const NumericVector >::type individuals(individualsSEXP);
__result = Rcpp::wrap(calc_nucleotide_div(seg_sites, individuals));
Rcpp::traits::input_parameter< const bool >::type has_trios(has_triosSEXP);
__result = Rcpp::wrap(calc_mcmf(seg_sites, individuals, has_trios));
return __result;
END_RCPP
}
// calc_mcmf
NumericVector calc_mcmf(const List seg_sites, const NumericVector individuals, const bool has_trios);
RcppExport SEXP coala_calc_mcmf(SEXP seg_sitesSEXP, SEXP individualsSEXP, SEXP has_triosSEXP) {
// calc_nucleotide_div
NumericVector calc_nucleotide_div(List seg_sites, const NumericVector individuals);
RcppExport SEXP coala_calc_nucleotide_div(SEXP seg_sitesSEXP, SEXP individualsSEXP) {
BEGIN_RCPP
Rcpp::RObject __result;
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< const List >::type seg_sites(seg_sitesSEXP);
Rcpp::traits::input_parameter< List >::type seg_sites(seg_sitesSEXP);
Rcpp::traits::input_parameter< const NumericVector >::type individuals(individualsSEXP);
Rcpp::traits::input_parameter< const bool >::type has_trios(has_triosSEXP);
__result = Rcpp::wrap(calc_mcmf(seg_sites, individuals, has_trios));
__result = Rcpp::wrap(calc_nucleotide_div(seg_sites, individuals));
return __result;
END_RCPP
}
Expand Down
2 changes: 1 addition & 1 deletion src/stat_omegaprime.cpp → src/stat_mcmf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void maxsplit(const NumericMatrix ss,

std::map<unsigned int, unsigned int> m;
unsigned int key;
int max_key_value = std::pow(2, individuals.size());
unsigned int max_key_value = std::pow(2, individuals.size());

for (int snp = 0; snp < ss.ncol(); ++snp) {
if (trio_locus_vec[snp] != trio_locus) continue;
Expand Down

0 comments on commit a80e64c

Please sign in to comment.