Skip to content

Commit 0caf8ef

Browse files
bschilderclaude
andcommitted
Auto-detect Windows and fall back to data.table sorting (fixes echolocatoR#134, #146)
sort_coordinates_bash uses Unix grep/sort which are unavailable on Windows. Now defaults to sort_coordinates="data.table" when .Platform$OS.type == "windows". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 975cee1 commit 0caf8ef

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

R/convert.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ convert <- function(target_path,
4848
end_col = start_col,
4949
comment_char = NULL,
5050
format = NULL,
51-
convert_methods = list(sort_coordinates="bash",
52-
run_bgzip="Rsamtools",
53-
index="Rsamtools"),
51+
convert_methods = list(
52+
sort_coordinates = if(.Platform$OS.type == "windows")
53+
"data.table" else "bash",
54+
run_bgzip = "Rsamtools",
55+
index = "Rsamtools"),
5456
conda_env = "echoR_mini",
5557
force_new = TRUE,
5658
verbose = TRUE) {

0 commit comments

Comments
 (0)