Closed mtmorgan closed 7 years ago
"tx_id" is needed to convert GRanges to GRangesList using split, line 340 in extractors.R, trying to drop "tx_id" after GRangesList is generated, but haven't found a way yet.
One way is to make a copy of the vector and update the GRanges before splitting, e.g., at https://github.com/Bioconductor/Organism.dplyr/blob/master/R/extractors.R#L342 (get the link by clicking on the line number in github)
grp <- mcols(table)[[f]]
mcols(table)[[f]] <- NULL
split(table, grp)
Or to drop after the fact
gr <- unlist(grl)
mcols(grl)[[f]] <- NULL
relist(gr, grl)
E.g., in test-src_organims-class.R, "mouse" test