| ... | ... |
@@ -11,8 +11,8 @@ Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
| 11 | 11 |
#endif |
| 12 | 12 |
|
| 13 | 13 |
// read_deconvolution_cpp |
| 14 |
-void read_deconvolution_cpp(std::string reads_binning_file, int num_tissues, double min_likelihood_ratio_cutoff, std::string tissue_markers_file, std::string em_algorithm_type, std::string output_file, std::string output_type, int em_max_iterations); |
|
| 15 |
-RcppExport SEXP _cfTools_read_deconvolution_cpp(SEXP reads_binning_fileSEXP, SEXP num_tissuesSEXP, SEXP min_likelihood_ratio_cutoffSEXP, SEXP tissue_markers_fileSEXP, SEXP em_algorithm_typeSEXP, SEXP output_fileSEXP, SEXP output_typeSEXP, SEXP em_max_iterationsSEXP) {
|
|
| 14 |
+void read_deconvolution_cpp(std::string reads_binning_file, int num_tissues, double min_likelihood_ratio_cutoff, std::string tissue_markers_file, std::string em_algorithm_type, std::string output_file, std::string output_type, int em_max_iterations, int random_seed); |
|
| 15 |
+RcppExport SEXP _cfTools_read_deconvolution_cpp(SEXP reads_binning_fileSEXP, SEXP num_tissuesSEXP, SEXP min_likelihood_ratio_cutoffSEXP, SEXP tissue_markers_fileSEXP, SEXP em_algorithm_typeSEXP, SEXP output_fileSEXP, SEXP output_typeSEXP, SEXP em_max_iterationsSEXP, SEXP random_seedSEXP) {
|
|
| 16 | 16 |
BEGIN_RCPP |
| 17 | 17 |
Rcpp::RNGScope rcpp_rngScope_gen; |
| 18 | 18 |
Rcpp::traits::input_parameter< std::string >::type reads_binning_file(reads_binning_fileSEXP); |
| ... | ... |
@@ -23,13 +23,14 @@ BEGIN_RCPP |
| 23 | 23 |
Rcpp::traits::input_parameter< std::string >::type output_file(output_fileSEXP); |
| 24 | 24 |
Rcpp::traits::input_parameter< std::string >::type output_type(output_typeSEXP); |
| 25 | 25 |
Rcpp::traits::input_parameter< int >::type em_max_iterations(em_max_iterationsSEXP); |
| 26 |
- read_deconvolution_cpp(reads_binning_file, num_tissues, min_likelihood_ratio_cutoff, tissue_markers_file, em_algorithm_type, output_file, output_type, em_max_iterations); |
|
| 26 |
+ Rcpp::traits::input_parameter< int >::type random_seed(random_seedSEXP); |
|
| 27 |
+ read_deconvolution_cpp(reads_binning_file, num_tissues, min_likelihood_ratio_cutoff, tissue_markers_file, em_algorithm_type, output_file, output_type, em_max_iterations, random_seed); |
|
| 27 | 28 |
return R_NilValue; |
| 28 | 29 |
END_RCPP |
| 29 | 30 |
} |
| 30 | 31 |
|
| 31 | 32 |
static const R_CallMethodDef CallEntries[] = {
|
| 32 |
- {"_cfTools_read_deconvolution_cpp", (DL_FUNC) &_cfTools_read_deconvolution_cpp, 8},
|
|
| 33 |
+ {"_cfTools_read_deconvolution_cpp", (DL_FUNC) &_cfTools_read_deconvolution_cpp, 9},
|
|
| 33 | 34 |
{NULL, NULL, 0}
|
| 34 | 35 |
}; |
| 35 | 36 |
|
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,39 @@ |
| 1 |
+// Generated by using Rcpp::compileAttributes() -> do not edit by hand |
|
| 2 |
+// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
|
| 3 |
+ |
|
| 4 |
+#include <Rcpp.h> |
|
| 5 |
+ |
|
| 6 |
+using namespace Rcpp; |
|
| 7 |
+ |
|
| 8 |
+#ifdef RCPP_USE_GLOBAL_ROSTREAM |
|
| 9 |
+Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
|
| 10 |
+Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
|
| 11 |
+#endif |
|
| 12 |
+ |
|
| 13 |
+// read_deconvolution_cpp |
|
| 14 |
+void read_deconvolution_cpp(std::string reads_binning_file, int num_tissues, double min_likelihood_ratio_cutoff, std::string tissue_markers_file, std::string em_algorithm_type, std::string output_file, std::string output_type, int em_max_iterations); |
|
| 15 |
+RcppExport SEXP _cfTools_read_deconvolution_cpp(SEXP reads_binning_fileSEXP, SEXP num_tissuesSEXP, SEXP min_likelihood_ratio_cutoffSEXP, SEXP tissue_markers_fileSEXP, SEXP em_algorithm_typeSEXP, SEXP output_fileSEXP, SEXP output_typeSEXP, SEXP em_max_iterationsSEXP) {
|
|
| 16 |
+BEGIN_RCPP |
|
| 17 |
+ Rcpp::RNGScope rcpp_rngScope_gen; |
|
| 18 |
+ Rcpp::traits::input_parameter< std::string >::type reads_binning_file(reads_binning_fileSEXP); |
|
| 19 |
+ Rcpp::traits::input_parameter< int >::type num_tissues(num_tissuesSEXP); |
|
| 20 |
+ Rcpp::traits::input_parameter< double >::type min_likelihood_ratio_cutoff(min_likelihood_ratio_cutoffSEXP); |
|
| 21 |
+ Rcpp::traits::input_parameter< std::string >::type tissue_markers_file(tissue_markers_fileSEXP); |
|
| 22 |
+ Rcpp::traits::input_parameter< std::string >::type em_algorithm_type(em_algorithm_typeSEXP); |
|
| 23 |
+ Rcpp::traits::input_parameter< std::string >::type output_file(output_fileSEXP); |
|
| 24 |
+ Rcpp::traits::input_parameter< std::string >::type output_type(output_typeSEXP); |
|
| 25 |
+ Rcpp::traits::input_parameter< int >::type em_max_iterations(em_max_iterationsSEXP); |
|
| 26 |
+ read_deconvolution_cpp(reads_binning_file, num_tissues, min_likelihood_ratio_cutoff, tissue_markers_file, em_algorithm_type, output_file, output_type, em_max_iterations); |
|
| 27 |
+ return R_NilValue; |
|
| 28 |
+END_RCPP |
|
| 29 |
+} |
|
| 30 |
+ |
|
| 31 |
+static const R_CallMethodDef CallEntries[] = {
|
|
| 32 |
+ {"_cfTools_read_deconvolution_cpp", (DL_FUNC) &_cfTools_read_deconvolution_cpp, 8},
|
|
| 33 |
+ {NULL, NULL, 0}
|
|
| 34 |
+}; |
|
| 35 |
+ |
|
| 36 |
+RcppExport void R_init_cfTools(DllInfo *dll) {
|
|
| 37 |
+ R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
|
| 38 |
+ R_useDynamicSymbols(dll, FALSE); |
|
| 39 |
+} |