Open brianraymor opened 2 weeks ago
Most of these changes only require testing that _check_spatial_uns
allows descendants of Visium. Testing multiple relationships (descendant, sybling, parent, self) is redundant since these are all handled inside the _check_spatial_uns
function. There are some changes that require additional test:
If assay_ontology_term_id is "EFO:0022860" for Visium CytAssist Spatial Gene Expression, 11mm, the largest dimension in numpy.ndarray.shape[:2] MUST be 4000pixel
Changelog
spatial
to include descendants of Visium Spatial Gene Expression.spatial['is_single']
to include descendants of Visium Spatial Gene Expression.spatial[library_id]
to include descendants of Visium Spatial Gene Expression.spatial[library_id]['images']
to include descendants of Visium Spatial Gene Expression.spatial[library_id]['images']['fullres']
to include descendants of Visium Spatial Gene Expression.spatial[library_id]['images']['hires']
to include descendants of Visium Spatial Gene Expression. Added requirements for Visium CytAssist Spatial Gene Expression, 11mm.spatial[library_id]['scalefactors']
to include descendants of Visium Spatial Gene Expression.spatial[library_id]['scalefactors']['spot_diameter_fullres']
to include descendants of Visium Spatial Gene Expression.spatial[library_id]['scalefactors']['tissue_hires_scalef']
to include descendants of Visium Spatial Gene Expression.Design
spatial
assay_ontology_term_id
is descendant of"EFO:0010961"
for Visium Spatial Gene Expression or"EFO:0030062"
for Slide-seqV2; otherwise, this key MUST NOT be present.dict
. The requirements for the key-value pairs are documented in the following sections:Additional key-value pairs MUST NOT be present.
is_single
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression or"EFO:0030062"
for Slide-seqV2; otherwise, this key MUST NOT be present.bool
. This MUST beTrue
:assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression and the dataset represents one Space Ranger output for a single tissue sectionassay_ontology_term_id
is"EFO:0030062"
for Slide-seqV2 and the dataset represents the output for a single array on a puckFalse
.spatial[_libraryid]
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.dict
. There MUST be only onelibrary_id
.spatial[_libraryid]['images']
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.dict
spatial[_libraryid]['images']['fullres']
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.numpy.ndarray
with the following requirements:numpy.ndarray.shape
MUST be3
numpy.ndarray.dtype
MUST benumpy.uint8
numpy.ndarray.shape[2]
MUST be either3
(RGB color model for example) or4
(RGBA color model for example)spatial[_libraryid]['images']['hires']
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.tissue_hires_image.png
MUST be converted to anumpy.ndarray
with the following requirements:numpy.ndarray.shape
MUST be3
numpy.ndarray.dtype
MUST benumpy.uint8
assay_ontology_term_id
is"EFO:0022860"
for Visium CytAssist Spatial Gene Expression, 11mm, the largest dimension innumpy.ndarray.shape[:2]
MUST be4000
pixels; otherwise, the largest dimension innumpy.ndarray.shape[:2]
MUST be2000
pixels. See Space Ranger Spatial Outputsnumpy.ndarray.shape[2]
MUST be either3
(RGB color model for example) for4
(RGBA color model for example)spatial[_libraryid]['scalefactors']
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.dict
spatial[_libraryid]['scalefactors']['spot_diameter_fullres']
assay_ontology_term_id
is a descendant"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.float
. This must be the value of thespot_diameter_fullres
field fromscalefactors_json.json
. See Space Ranger Spatial Outputs.spatial[_libraryid]['scalefactors']['tissue_hires_scalef']
assay_ontology_term_id
is a descendant of"EFO:0010961"
for Visium Spatial Gene Expression anduns['spatial']['is_single']
isTrue
; otherwise, this key MUST NOT be present.float
. This must be the value of thetissue_hires_scalef
field fromscalefactors_json.json
. See Space Ranger Spatial Outputs.