-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add specific datatypes for Cytoscape and Kepler.gl #20117
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
Conversation
lib/galaxy/datatypes/tabular.py
Outdated
class GeoCSV(CSV): | ||
""" | ||
CSV format compatible with Kepler.gl, expected to contain latitude and longitude fields. | ||
https://docs.kepler.gl/docs/keplergl-schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link does not work for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced the link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a real spec somewhere? I'm not sure we need a sniffer here. I guess at least for the start we can just add a subclass of csv that is called geocsv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the link, but if you prefer I can remove the sniffer and just introduce it as sub class without sniffer instead.
class CytoscapeJson(Json): | ||
""" | ||
Cytoscape JSON format for network visualization, typically containing 'nodes' and 'edges' in a JSON object. | ||
https://js.cytoscape.org/#notation/elements-json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add this link also to the datatypes_conf file as description
and description_url
e54fce5
to
5637849
Compare
5637849
to
b94475c
Compare
This PR adds two new datatype definitions: cytoscapejson and keplercsv, which are subtypes of json and csv, respectively. These formats are consumed by Cytoscape and Kepler.gl. Introducing specific datatypes improves user guidance and prevents the list of selectable datatypes from being cluttered with incompatible formats.
While only tangentially related to this PR, I believe there is a broader need for a systematic, large-scale evaluation of all datatypes and sniffers in an all-against-all fashion. Such an analysis would improve the robustness and accuracy of datatype detection across the platform.
How to test the changes?
(Select all options that apply)
License