无法写入.XStringsViews输出

无法写入.XStringsViews输出,r,string,dna-sequence,R,String,Dna Sequence,对于以下程序: library(Biostrings) library(IRanges) #added this when I saw it mentioned in docs s1 <- "DNA here" #insert desired sequence between quotes matchPattern("ATG", s1) # Find all ATGs in the sequence s1 我想看到所有的输出,而不仅仅是头部和尾部。我不知道怎么写 我已经试过了 match

对于以下程序:

library(Biostrings)
library(IRanges) #added this when I saw it mentioned in docs
s1 <- "DNA here" #insert desired sequence between quotes
matchPattern("ATG", s1) # Find all ATGs in the sequence s1
我想看到所有的输出,而不仅仅是头部和尾部。我不知道怎么写

我已经试过了

matches <- matchPattern("ATG", s1)
“matches”变量出现在我的全局环境中,但它只显示初始数字,因此不是一个好的选择,除非我能找到一种方法来显示所有这些

write.xstringview代码在Biostrings文档中,但我无法让它工作。欢迎任何关于如何查看或编写整个输出的想法。遗憾的是,我看到的一个页面在write.XStringViews命令旁边有
,因此这可能不可能,但如果有人知道如何删除输出的头部和尾部限制的话

matches <- matchPattern("ATG", s1)
Error: could not find function "write.XStringViews"