Skip to content

Commit

Permalink
Match row names to list element names.
Browse files Browse the repository at this point in the history
Strangely, when I wrote this function, the list element names were numbers,
in the order of the combination of the factors…
  • Loading branch information
charles-plessy committed Jul 18, 2023
1 parent 27ba79b commit faa5f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Paraclu.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ setMethod("paraclu", "CTSS",
, BPPARAM = CAGEr_Multicore(useMulticore, nrCores))
# Stich the results back as a GRanges object
table <- expand.grid(seqnames = levels(f[[1]]), strand = levels(f[[2]]))
rownames(table) <- as.character(rownames(table))
rownames(table) <- paste(table$seqnames, table$strand, sep='.')
clusters <- sapply(names(result.list), \(name)
GRanges( seqnames = table[name, "seqnames"]
, ranges = result.list[[name]]
Expand Down

0 comments on commit faa5f44

Please sign in to comment.