Skip to content

Instantly share code, notes, and snippets.

@samwalrus
Last active December 19, 2022 20:40
Show Gist options
  • Save samwalrus/7abd0da407e9d7df885bf296010e3e76 to your computer and use it in GitHub Desktop.
Save samwalrus/7abd0da407e9d7df885bf296010e3e76 to your computer and use it in GitHub Desktop.
name: test-schema
id: http://example.org/test-schema
default_prefix: http://example.org/test-schema/
prefixes:
linkml: https://w3id.org/linkml/
imports:
- linkml:types
classes:
Metadata:
attributes:
filename:
range: string
file_size:
range: integer
last_write_time:
range: integer
first_1000_bytes:
range: string
index_creation_time:
range: integer
Variant:
attributes:
chromosome:
range: string
position:
range: integer
rsid:
range: string
number_of_alleles:
range: integer
allele1:
range: string
allele2:
range: string
file_start_position:
range: integer
size_in_bytes:
range: integer
### Running: linkml-sqldb load -s myschema.yaml --db data_chr21.bgen.bgi -o data_chr21.yaml --target-class Variant
### Creates a data_chr21.yaml file with only one record.
### data_chr21.bgen.bgi has been modified to have a variant id col
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment