Skip to content

Commit

Permalink
feat: only return warning when seqinfos are not all the same
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Mar 31, 2024
1 parent e50c9bf commit b6b23e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
}) |> unique()
if (length(unique(sis)) > 1)
stop("More than 1 seqinfo inferred from the tracks.")
warning("EXPERIMENTAL: More than 1 seqinfo inferred from the tracks. Using `seqinfo` from the first track.")
si <- sis[[1]]
}
else {
Expand All @@ -32,7 +32,7 @@
n <- names(tracks)
sis <- lapply(tracks, seqinfo) |> unique()
if (length(sis) > 1)
stop("More than 1 seqinfo inferred from the tracks.")
warning("EXPERIMENTAL: More than 1 seqinfo inferred from the tracks. Using `seqinfo` from the first track.")
si <- sis[[1]]
return(tracks)
}
Expand Down

0 comments on commit b6b23e7

Please sign in to comment.