Skip to content

Commit

Permalink
Ensure robustness against different structures encoding the dominant …
Browse files Browse the repository at this point in the history
…CTSS.

See #70
  • Loading branch information
Charles Plessy committed May 10, 2024
1 parent e58a6dc commit fd2fbfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/ExportMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,12 @@ function( object, what, qLow, qUp, colorByExpressionProfile, oneTrack) {


.exportToTrack_clusters <- function( object, what, qLow, qUp, colorByExpressionProfile, oneTrack) {
object$thick <- ranges(object$dominant_ctss)
# Simplify this after the format of dominant_ctss is standardised in all cluster objects.
ranges_ <- function(x) {
if (inherits(x, "GRanges")) return(IRanges(ranges(x)))
IRanges(x)
}
object$thick <- ranges_(object$dominant_ctss)
object$dominant_ctss <- NULL
names(object) <- NULL
object$name <- NA
Expand Down

0 comments on commit fd2fbfb

Please sign in to comment.