Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of upload to synapse within package #54

Open
JamesPino opened this issue Dec 17, 2021 · 3 comments
Open

Use of upload to synapse within package #54

JamesPino opened this issue Dec 17, 2021 · 3 comments

Comments

@JamesPino
Copy link
Collaborator

In the function bagOfGenesEnrichment::plotTopGenesHeatmap, there is an argument for uploading to synapse. Should that be in the package? Will users be uploading their results to synapse or is that just for us. If just for us, I suggest we refactor that snippet out and create a separate function that we can call (export_results_to_synapse or something).

@sgosline
Copy link
Owner

it is just for us, perhaps we can pass in an argument in the markdowns?

@JamesPino
Copy link
Collaborator Author

JamesPino commented Jan 21, 2022

Maybe just write a function that is separate?

mpnstXenoModeling::plotTopGenesHeatmap(
    drug.res,
    dds,
    pmap,
   figname,
    patients = c(goodsamps$Sample, badsamps$Sample),
    adjpval = 0.01,
  )

upload_to_synapse(fig_name,  parentID = 'syn25323411')

or the pipe %>%. Not sure if plots return an object that can be piped or not? Then the plot functions will be only for plotting, where anyone that wants to use/extend won't have to figure out synapse. Unless one of the goals is to encourage users to create synapse projects for their papers as well? If so, i'd probably still separate but document the steps so people can follow. I like the idea of people using synapse for the repo outputs. If that were the case, I think having a "download_project_files" for the project would be helpful too, that basically creates a visualization of r.md -> create synID, or r.md uses synID. This is off topic though.

@sgosline
Copy link
Owner

Sure, maybe we can prune everything out and put it in the synapseUtils.R file - this file is basically a mini synapseR that i've been porting around from project to project...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants