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

add export / import project #125

Closed
1 of 2 tasks
tiagofilipe12 opened this issue Mar 9, 2018 · 2 comments
Closed
1 of 2 tasks

add export / import project #125

tiagofilipe12 opened this issue Mar 9, 2018 · 2 comments
Assignees

Comments

@tiagofilipe12
Copy link
Owner

tiagofilipe12 commented Mar 9, 2018

  • For now, I will add a button that allows to export a json file to save the current tree visualization, which will NOT re-use Re_run button to display the required visualization, but instead use specific functions for each one of the views imported through projects

  • Then it will be nice to link this with the INNUENDO platform in which a similar JSON post could be made to some url and trigger these events to show the required dataset.

@tiagofilipe12
Copy link
Owner Author

tiagofilipe12 commented Apr 12, 2018

Now projects can be imported to pATLAS through this API. So the platform can use a similar object in the future. The projects object follows a certain structure:

let typeOfProject = {
  "taxa": false,
  "resistance": false,
  "plasmidfinder": false,
  "virulence": false,
  "intersection": false,
  "union": false,
  "mapping": false,
  "mashscreen": false,
  "assembly": false,
  "consensus": false
}

By default everything is set to false but appending to mashscreen for instance can then trigger the importProject function (available in ./patlas/db_manager/db_app/static/js/projects/importProjects.js) like this:

importProject(typeOfProject, "mashscreen")

So, the idea would be to make something like the above function after receiving a post from elsewhere.

@tiagofilipe12 tiagofilipe12 mentioned this issue Apr 13, 2018
@tiagofilipe12
Copy link
Owner Author

tiagofilipe12 commented Apr 13, 2018

Closing issue but the INNUENDO platform can use the above mentioned structure and function in the future - ping @bfrgoncalves

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

No branches or pull requests

3 participants