Closed Lucyyang1991 closed 4 years ago
Sorry for the delay in response, and thanks for your feedback and use of annotatr.
From the example in the documentation for annotatr_cache
(?annotatr_cache
), you can manually set things in the cache like:
annotatr_cache$set("foo", 1:10)
So to alter something already in the cache you'd do something like get
, edit, and set
as in:
temp_annots = annotatr_cache$get('mm10_custom_FuncElems')
# Make any changes you want to temp_annots
annotatr_cache$set('mm10_custom_FuncElems', temp_annots)
As for deleting things in the annotatr_cache
, there is no rm()
for annotatr_cache
at the moment. It's not necessary to reference all the items in annotatr_cache
when calling build_annotations()
so if you're not too worried about the space the item takes up, you can just leave it around. If you are worried, you can set them to NULL
with annotatr_cache$set('foo', NULL)
. The annotatr_cache()
is valid per session and resets with new sessions, so that's another way to wipe it.
Hope that helps, thanks for using annotatr.
Thanks so much! That helps a lot.
Thanks for developing the package which is very useful. First, I just wondering how can I change the the annotation files in the annotatr_cache. After I import the custom annotations:
Besides that issue above, sometimes I wanna delete the files in the annotatr_cache.
So how can I fulfill things like that.
Thanks so much.