[Bioc-devel] saving and obtaining a list with BiocFileCache package

Shepherd, Lori Lori.Shepherd at RoswellPark.org
Mon Jul 3 12:57:28 CEST 2017


Hello Arman,


I would be possible to save the list as an Rdata object.  The process would be


  1.  create a new item in the cache and retrieve the path
  2.  use that path in a save( listObj,  file="path")


Then you could load the RData object in your next session and it would be available for use.



Something along the following would save:


myList = list()

bfc = BiocFileCache()

path = bfcnew(bfc, "someIdentifiers key words or name of your list", ext="RData)

save(myList, file=path)



For retrieval in next session:


# get the rid of the list


bfcquery(bfc, c("someIdentifiers key words")


# then choose what rid you want to load from the cache and use that to retrieve path - in this case BFC12:


path = bfcpath(bfc, "BFC12")

load(path)




Lori Shepherd

Bioconductor Core Team

Roswell Park Cancer Institute

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263

________________________________
From: Bioc-devel <bioc-devel-bounces at r-project.org> on behalf of Arman Sh <sh88.arman at gmail.com>
Sent: Sunday, July 2, 2017 1:54:40 PM
To: bioc-devel at r-project.org
Subject: [Bioc-devel] saving and obtaining a list with BiocFileCache package

Hi, it is possible to save a list with BiocFileCache package and then obtain the same list from it? I have read the vignette but I couldn’t figure it out. It looked like that I have saved the list to hard drive, but I’m not sure whether it is still a list or can be obtained as a list. If it is possible to do so, I would be grateful if someone would kindly provide the code, if not, I appreciate recommending an alternative package.

Best regards,
Arman


        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel


This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.
	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list