Rtracklayer creating large temp files when importing BigWigs
1
0
Entering edit mode
@dborgesrmit-9232
Last seen 9.1 years ago
United States

Hey,

So when I import BigWig files using a URL I get large temporary files named by the URL and called "SparseData" as so:

 

input$query_range="chr5 1293401 1296392"
split_query = strsplit(input$query_range,split="[\t ]")[[1]]
temp_grange = GRanges(seqnames=Rle(split_query[1]),
                      ranges=IRanges(start=as.integer(split_query[2]),
                                     end=as.integer(split_query[3]),
                                     name=split_query[1]), seqinfo=seqinfo(Hsapiens))
query_grange_flank = temp_grange
test_bw = BigWigFile("http://egg.wustl.edu/d/hg19/GSM935646_1.bigWig")
b = import(test_bw, selection = BigWigSelection(query_grange_flank), which = query_grange_flank)

I'm assuming rtracklayer is creating a temporary container for the bigWig data it pulls offline.

I'm wondering, is there any way to remove these temporary files after fetching the data?

--Thank you

 

rtracklayer BigWig • 1.4k views
ADD COMMENT
0
Entering edit mode
@michael-lawrence-3846
Last seen 3.0 years ago
United States

This cache is implemented by the Jim Kent library underlying the BigWig support. In devel (1.31.2, forthcoming), I added a cleanupBigWigCache() that should cleanup files older than "maxDays" (which can be a fraction of a day).

ADD COMMENT
0
Entering edit mode

Awesome! Looking forward to snagging it then.

ADD REPLY

Login before adding your answer.

Traffic: 629 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