Skip to content

Commit

Permalink
evaluate all columns in gTrack y.field when concatenating
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafailov committed Mar 14, 2024
1 parent 4aa01d0 commit 2f82def
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/gTrack.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ setValidity('gTrack', function(object)
else T)))
problems = c(problems, 'Some nonempty trackdata edges $to and $from fields are out of bounds (ie exceed the length of the data field of the corresponding gTrack item')

if (!is.null(formatting(object)$y.field) && !is.na(formatting(object)$y.field))
# browser()
if (!is.null(formatting(object)$y.field) && !all(is.na(formatting(object)$y.field)))
{
nix = !is.na(object$y.field) & sapply(dat(object), inherits, 'GRanges')
if (any(nix))
Expand Down

0 comments on commit 2f82def

Please sign in to comment.