Need Help?

Search our documentation and community forum

Terra is a cloud-native platform for biomedical researchers to access data, run analysis tools, and collaborate.
Terra powers important scientific projects like FireCloud, AnVIL, and BioData Catalyst. Learn more.

googleCloudStorageR auth on Terra RStudio

Comments

8 comments

  • Avatar
    Jason Cerrato

    Hey Dan,

    Thanks for writing in. Am I correct in my understanding that you are spinning up an RStudio cloud environment in a workspace, and you are having trouble accessing your workspace's bucket from that cloud environment using the googleCloudStorageR package? 

    Give me a bit of time to look into this package. I'll get back to you as soon as I can.

    Kind regards,

    Jason

    0
    Comment actions Permalink
  • Avatar
    Dan Rozelle

    That is the gist of it. Thanks for your help.

    I'm also not tied to that package in particular, just trying to understand easiest way to fetch workspace bucket data from within R

    0
    Comment actions Permalink
  • Avatar
    Jason Cerrato

    Hey Dan Rozelle

    Can you provide us with a few more details for what you are looking to ultimately do with the workspace bucket? Are you planning to access files from the bucket, copy data to the bucket, or something else?

    Kind regards,

    Jason

    0
    Comment actions Permalink
  • Avatar
    Dan Rozelle

    Sure. Our group is testing out Terra as a tool to organize and enable scalable bioinformatics analysis. Workspace bucket storage will contain various input data (some pipeline output, other cleaned public data) for these analyses (e.g. count matrices, VCF files). Ideally we'd open R-Studio, pull down input data from the bucket, perform analysis on that instance and put back outputs from the analysis. Most of what we do is interactive analysis scripts.

    0
    Comment actions Permalink
  • Avatar
    Jason Cerrato

    Thanks for that context. I'll do some digging to find our best solutions for your needs. I'll get back to you as soon as I can!

    0
    Comment actions Permalink
  • Avatar
    Jason Cerrato

    Hi Dan,

    You may be interested in using the AnVIL R package, which allows you to interact with workspace buckets in a streamlined sort of way. You can see an example of how to use AnVIL in RStudio by viewing this video here: https://youtu.be/JAcCtTkkvJw?t=125

    The avdata() and avbucket() functions of the AnVIL package may be of interest to you.

    Here is the documentation for the package.

    Let me know if this would work for your purposes, or if there's anything missing in its functionality that googleCloudStorageR would be able to provide you.

    Kind regards,

    Jason

    0
    Comment actions Permalink
  • Avatar
    Dan Rozelle

    Thank you for the suggestions Jason, AnVIL does looks like it does provide most of the functionality we are looking for. Thanks for all your help!

    0
    Comment actions Permalink
  • Avatar
    Jason Cerrato

    Hey Dan,

    Glad to hear! If we can help with anything else, please let us know.

    Kind regards,

    Jason

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk