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

import file for multiple selections #86

Closed
tiagofilipe12 opened this issue Nov 17, 2017 · 2 comments
Closed

import file for multiple selections #86

tiagofilipe12 opened this issue Nov 17, 2017 · 2 comments
Assignees

Comments

@tiagofilipe12
Copy link
Owner

csv file could be used to make multiple selections, on taxa filters, antibiotic resistance, plasmid families and table view mode.

@tiagofilipe12
Copy link
Owner Author

This is somewhat related with #125

@tiagofilipe12
Copy link
Owner Author

This is now possible through the API available in projects import. So technically anyone can create a json file like the one generated by pATLAS:

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

false instances can be replaced by an array of any strings that produce the parsing. So for instance, if someone wants to add Escherichia coli to through project file import would need something like:

{
  "taxa": ["Escherichia coli"],
  "resistance": false,
  "plasmidfinder": false,
  "virulence": false,
  "intersection": false,
  "union": false,
  "mapping": false,
  "mashscreen": false,
  "assembly": false,
  "consensus": false
}

Maybe this can be improved in the future, however this would require that users are fully aware of the queries they can make and no odd entries are given. For instance, if someone does "E. coli" instead of "Escherichia coli" that would be a wrong query to pATLAS.
Also the API available through projects should be more explicitly declared in pATLAS gitbook.

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

1 participant