MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / genomic_schema

Function genomic_schema

nodedb/tests/array_codec_roundtrip.rs:20–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18use nodedb_types::{OPEN_UPPER, Surrogate};
19
20fn genomic_schema() -> nodedb_array::ArraySchema {
21 ArraySchemaBuilder::new("genome")
22 .dim(DimSpec::new(
23 "chrom",
24 DimType::Int64,
25 Domain::new(DomainBound::Int64(0), DomainBound::Int64(24)),
26 ))
27 .dim(DimSpec::new(
28 "pos",
29 DimType::Int64,
30 Domain::new(DomainBound::Int64(0), DomainBound::Int64(300_000_000)),
31 ))
32 .attr(AttrSpec::new("qual", AttrType::Float64, true))
33 .tile_extents(vec![1, 1_000_000])
34 .build()
35 .unwrap()
36}
37
38fn simple_schema() -> nodedb_array::ArraySchema {
39 ArraySchemaBuilder::new("s")

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45

Tested by

no test coverage detected