biostrings report "XStringSet object is too big to be unlisted" error
0
0
Entering edit mode
zwfanwz678 • 0
@zwfanwz678-13332
Last seen 4.9 years ago

hello everone,

I using Biostrings::readDNAStringSet to cut some sequence from hg19.fa, but an error occurs when I run the program(as follows).

seq <- Biostrings::readDNAStringSet("hg19.fa")
genome <- GenomeInfoDb::Seqinfo(genome = NA_character_)
gr_a <- BiocGenerics::unstrand(rtracklayer::import("file.bed", genome = genome))
a <- seq[gr_a]

gr_a is a GRanges object, when run a <- seq[gr_a], R report

"Error in .Call2("XStringSet_unlist", x, PACKAGE = "Biostrings") : 
  XStringSet object is too big to be unlisted (would result in an XString
  object of length 2^31 or more)"

I try these codes several times, but sometimes the code runs very well, sometimes it report the error above.

what's wrong with these code?

thanks!

Biostrings • 1.0k views
ADD COMMENT

Login before adding your answer.

Traffic: 999 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6