Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danymukesha committed May 20, 2024
1 parent b01b6e5 commit 154c087
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Imports:
sessioninfo,
BiocStyle
Depends:
R (>= 4.3.3)
R (>= 4.3)
Suggests:
knitr,
rmarkdown,
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ importFrom(Rcpp,sourceCpp)
importFrom(SummarizedExperiment,SummarizedExperiment)
importFrom(animation,saveGIF)
importFrom(biocViews,getBiocViews)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggtitle)
importFrom(ggplot2,labs)
importFrom(graphics,boxplot)
importFrom(graphics,hist)
importFrom(graphics,par)
Expand Down
2 changes: 1 addition & 1 deletion R/BioGA-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## usethis namespace: start
#' @importFrom biocViews getBiocViews
#' @importFrom ggplot2 ggtitle ggplot
#' @importFrom ggplot2 ggtitle ggplot geom_line labs
#' @importFrom sessioninfo session_info
#' @importFrom SummarizedExperiment SummarizedExperiment
#' @importFrom Rcpp evalCpp sourceCpp
Expand Down
2 changes: 1 addition & 1 deletion src/initialize_population.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace Rcpp;
// Generate random population using genomic data
for (int i = 0; i < population_size; ++i) {
for (int j = 0; j < num_genes; ++j) {
int sample_index = std::rand() % num_samples;
int sample_index = R::unif_rand() / num_samples;
population(i, j) = genomic_data(j, sample_index);
}
}
Expand Down

0 comments on commit 154c087

Please sign in to comment.