BioGenies/tidysq

Cannot use dplyr::group_by with sq objects

ErdaradunGaztea opened this issue · 0 comments

Due to how sq objects are stored as lists of raw vectors, dplyr::group_by throws "Unsupported type raw" while trying to do something like:

library(dplyr)
library(tidysq)
# has to create a tibble first, from read_fasta or find_motifs for example
sq_dna <- sq(c("CGGCATCGT", "CTAGGCTCCG"), "dna_bsc")
find_motifs(sq_dna, "TCN") %>%
  group_by(found)