Generate manifest file for a given container
Hi — what I'm interested in is more for auditing purposes then necessarily for "sync"ing. What I would like is to generate a manifest for my Synapse container (project, folder, whatever) that tells me the paths and annotations for all files and sub-folders as they exist in Synapse. I don't want to download anything to get this information, as it should have nothing to do with my local filesystem.
This functionality might be better suited for generateManifest, but as far as I can tell that method requires a list of entity IDs and won't walk/crawl the directory structure for you like syncFromSynapse does.
Here's an example that sort of illustrates what I have in mind. I created this several months ago for a TCGA working group project using a custom Python script:
*note: could probably be better executed.
After talking to about this, EntityBundle would have the information that he needs. So a function that walk the hierarchy and gather EntityBundle for entities under the container would be a possible solution. Notes that not all fields in an EntityBundle would fits nicely in a tsv format. We should have a `default mask` with all the things that fits in a tsv format, and allow users to get the result as list of EntityBundles instead of `tsv`.
Looks super useful, +1 would love to know more about the uses of this.
Thank you for sharing the google sheet, . They are very informative. And I have more questions about them.
Notes to self about entity path:
Entity Bundle Services provide entity path: http://hud.rel.rest.doc.sagebase.org.s3-website-us-east-1.amazonaws.com/#org.sagebionetworks.repo.web.controller.EntityBundleController
Getting path for each entity: http://hud.rel.rest.doc.sagebase.org.s3-website-us-east-1.amazonaws.com/GET/entity/id/path.html