|
7 | 7 |
|
8 | 8 | using namespace Rcpp;
|
9 | 9 |
|
10 |
| -#ifdef RCPP_USE_GLOBAL_ROSTREAM |
11 |
| -Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
12 |
| -Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
13 |
| -#endif |
14 |
| - |
15 | 10 | // CCT_cpp
|
16 | 11 | double CCT_cpp(arma::vec& pval);
|
17 | 12 | RcppExport SEXP _SAIGE_CCT_cpp(SEXP pvalSEXP) {
|
@@ -181,6 +176,34 @@ BEGIN_RCPP
|
181 | 176 | return R_NilValue;
|
182 | 177 | END_RCPP
|
183 | 178 | }
|
| 179 | +// Unified_getOneMarker |
| 180 | +bool Unified_getOneMarker(std::string& t_genoType, uint64_t& t_gIndex_prev, uint64_t& t_gIndex, std::string& t_ref, std::string& t_alt, std::string& t_marker, uint32_t& t_pd, std::string& t_chr, double& t_altFreq, double& t_altCounts, double& t_missingRate, double& t_imputeInfo, bool& t_isOutputIndexForMissing, std::vector<uint>& t_indexForMissing, bool& t_isOnlyOutputNonZero, std::vector<uint>& t_indexForNonZero, arma::vec& t_GVec, bool t_isImputation); |
| 181 | +RcppExport SEXP _SAIGE_Unified_getOneMarker(SEXP t_genoTypeSEXP, SEXP t_gIndex_prevSEXP, SEXP t_gIndexSEXP, SEXP t_refSEXP, SEXP t_altSEXP, SEXP t_markerSEXP, SEXP t_pdSEXP, SEXP t_chrSEXP, SEXP t_altFreqSEXP, SEXP t_altCountsSEXP, SEXP t_missingRateSEXP, SEXP t_imputeInfoSEXP, SEXP t_isOutputIndexForMissingSEXP, SEXP t_indexForMissingSEXP, SEXP t_isOnlyOutputNonZeroSEXP, SEXP t_indexForNonZeroSEXP, SEXP t_GVecSEXP, SEXP t_isImputationSEXP) { |
| 182 | +BEGIN_RCPP |
| 183 | + Rcpp::RObject rcpp_result_gen; |
| 184 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 185 | + Rcpp::traits::input_parameter< std::string& >::type t_genoType(t_genoTypeSEXP); |
| 186 | + Rcpp::traits::input_parameter< uint64_t& >::type t_gIndex_prev(t_gIndex_prevSEXP); |
| 187 | + Rcpp::traits::input_parameter< uint64_t& >::type t_gIndex(t_gIndexSEXP); |
| 188 | + Rcpp::traits::input_parameter< std::string& >::type t_ref(t_refSEXP); |
| 189 | + Rcpp::traits::input_parameter< std::string& >::type t_alt(t_altSEXP); |
| 190 | + Rcpp::traits::input_parameter< std::string& >::type t_marker(t_markerSEXP); |
| 191 | + Rcpp::traits::input_parameter< uint32_t& >::type t_pd(t_pdSEXP); |
| 192 | + Rcpp::traits::input_parameter< std::string& >::type t_chr(t_chrSEXP); |
| 193 | + Rcpp::traits::input_parameter< double& >::type t_altFreq(t_altFreqSEXP); |
| 194 | + Rcpp::traits::input_parameter< double& >::type t_altCounts(t_altCountsSEXP); |
| 195 | + Rcpp::traits::input_parameter< double& >::type t_missingRate(t_missingRateSEXP); |
| 196 | + Rcpp::traits::input_parameter< double& >::type t_imputeInfo(t_imputeInfoSEXP); |
| 197 | + Rcpp::traits::input_parameter< bool& >::type t_isOutputIndexForMissing(t_isOutputIndexForMissingSEXP); |
| 198 | + Rcpp::traits::input_parameter< std::vector<uint>& >::type t_indexForMissing(t_indexForMissingSEXP); |
| 199 | + Rcpp::traits::input_parameter< bool& >::type t_isOnlyOutputNonZero(t_isOnlyOutputNonZeroSEXP); |
| 200 | + Rcpp::traits::input_parameter< std::vector<uint>& >::type t_indexForNonZero(t_indexForNonZeroSEXP); |
| 201 | + Rcpp::traits::input_parameter< arma::vec& >::type t_GVec(t_GVecSEXP); |
| 202 | + Rcpp::traits::input_parameter< bool >::type t_isImputation(t_isImputationSEXP); |
| 203 | + rcpp_result_gen = Rcpp::wrap(Unified_getOneMarker(t_genoType, t_gIndex_prev, t_gIndex, t_ref, t_alt, t_marker, t_pd, t_chr, t_altFreq, t_altCounts, t_missingRate, t_imputeInfo, t_isOutputIndexForMissing, t_indexForMissing, t_isOnlyOutputNonZero, t_indexForNonZero, t_GVec, t_isImputation)); |
| 204 | + return rcpp_result_gen; |
| 205 | +END_RCPP |
| 206 | +} |
184 | 207 | // processMale_XnonPAR
|
185 | 208 | void processMale_XnonPAR(arma::vec& t_GVec, uint32_t& t_pd, arma::umat& t_XPARregion);
|
186 | 209 | RcppExport SEXP _SAIGE_processMale_XnonPAR(SEXP t_GVecSEXP, SEXP t_pdSEXP, SEXP t_XPARregionSEXP) {
|
@@ -2242,6 +2265,7 @@ static const R_CallMethodDef CallEntries[] = {
|
2242 | 2265 | {"_SAIGE_setMarker_GlobalVarsInCPP", (DL_FUNC) &_SAIGE_setMarker_GlobalVarsInCPP, 2},
|
2243 | 2266 | {"_SAIGE_setRegion_GlobalVarsInCPP", (DL_FUNC) &_SAIGE_setRegion_GlobalVarsInCPP, 4},
|
2244 | 2267 | {"_SAIGE_mainMarkerInCPP", (DL_FUNC) &_SAIGE_mainMarkerInCPP, 7},
|
| 2268 | + {"_SAIGE_Unified_getOneMarker", (DL_FUNC) &_SAIGE_Unified_getOneMarker, 18}, |
2245 | 2269 | {"_SAIGE_processMale_XnonPAR", (DL_FUNC) &_SAIGE_processMale_XnonPAR, 3},
|
2246 | 2270 | {"_SAIGE_Unified_getSampleSizeinGeno", (DL_FUNC) &_SAIGE_Unified_getSampleSizeinGeno, 1},
|
2247 | 2271 | {"_SAIGE_Unified_getSampleSizeinAnalysis", (DL_FUNC) &_SAIGE_Unified_getSampleSizeinAnalysis, 1},
|
|
0 commit comments