Good day, According to the documentation, I wouldn't think that substr or strsplit would work on a BStringSet, but substr does.
> IDs A BStringSet instance of length 5 width seq [1] 61 D00626:168:C9CWMANXX:1:1105:1816:1998 1:N:0:TCCGGAGA+ATAGAGGC [2] 61 D00626:168:C9CWMANXX:1:1105:2113:1989 1:N:0:TCCGGAGA+ATAGAGGC [3] 61 D00626:168:C9CWMANXX:1:1105:2703:1986 1:N:0:TCCGGAGA+ATAGAGGC [4] 61 D00626:168:C9CWMANXX:1:1105:3255:1979 1:N:0:TCCGGAGA+ATAGAGGC [5] 61 D00626:168:C9CWMANXX:1:1105:4525:1995 1:N:0:TCCGGAGA+ATAGAGGC > substr(IDs, 1, 37) [1] "D00626:168:C9CWMANXX:1:1105:1816:1998" [2] "D00626:168:C9CWMANXX:1:1105:2113:1989" [3] "D00626:168:C9CWMANXX:1:1105:2703:1986" [4] "D00626:168:C9CWMANXX:1:1105:3255:1979" [5] "D00626:168:C9CWMANXX:1:1105:4525:1995" > strsplit(IDs, ' ') Error in strsplit(IDs, " ") : non-character argument I think that both of these functions shouldn't work or both should work, to be consistent. -------------------------------------- Dario Strbenac University of Sydney Camperdown NSW 2050 Australia _______________________________________________ Bioc-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel