Skip to content

Commit

Permalink
Update bin_size arg options
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed2uiz authored Feb 7, 2023
1 parent 069eded commit 2e3e46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/interoperability.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' See SAW pipeline for additional information about the gef file.
#' @export
gefToGiotto = function(gef_file, bin_size = 'bin100', verbose = TRUE){
gefToGiotto = function(gef_file, bin_size = '100', verbose = TRUE){

# data.table vars
genes = NULL
Expand All @@ -27,7 +27,7 @@ gefToGiotto = function(gef_file, bin_size = 'bin100', verbose = TRUE){
if(!file.exists(gef_file)) stop('File path to .gef file does not exist')

# check if proper bin_size is selected. These are determined in SAW pipeline.
bin_size_options = c('bin1', 'bin10', 'bin20', 'bin50', 'bin100', 'bin200')
bin_size_options = c('1', '10', '20', '50', '100', '200')
if(!(bin_size %in% bin_size_options)) stop('Please select valid bin size,
see details for choices.')

Expand Down

0 comments on commit 2e3e46f

Please sign in to comment.