-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: Make BED v1 a primitive data format #583
Comments
Thank you for creating this issue! This will be a helpful update to make our grammar more genomic-specific. One quick clarification - By the length of |
Yes exactly. We can determine BEDn+m from the custom fields alone (n = total # of columns - m). Custom fields can only follow standard fields, so the order of e.g. For a TSV with 4 columns {
"type": "bed",
"url": "https://localhost:8080/data.bed",
} Interpretation is BED4 ( {
"type": "bed",
"url": "https://localhost:8080/data.bed",
"customFields": ["custom"]
} Interpretation is BED3+1 ( |
The final thing here is whether types need to be defined for the custom fields. This is similar to part of the discussion in #579, and I'd argue for a similar reason they are not necessary. |
I assume the custom fields will be either |
Motivation
BED (Browser Extensible Data) format provides a flexible way to define the data lines that are displayed in an annotation track. It has recently been formalized in the v1 specification.
Gosling currently support BED via CSV, but it is quite verbose and users can define any field names they'd like for standard BED fields:
Specifying BED12+1 in Gosling as CSV
Proposal
Add
BED
as a new data-type in Gosling.BED
is designed for this exact use case, and should be the preferred format for representing text-based genomic annotation data (over a custom CSV capturing identical information). Using BED will make specifications less verbose and more reusable. Using BED has the additional side-effect of ensuring datasets behind a Gosling visualization are more likely to be interoperable with other genomics tools.Specifying BED12+1 in Gosling as CSV
The text was updated successfully, but these errors were encountered: