iblatlas.tests.test_genomics

Classes

TestLoadAgea

TestMerfish

TestMerfishDenoiseVolume

TestMerfishLoadVolume

class TestLoadAgea(methodName='runTest')[source]

Bases: TestCase

test_load()[source]

Tests the mechanics of the load function by faking a 3 experiments gene expression dataset Here we just want to make sure the function returns the right dataframes and volumes, and that the atlas reads the right label and image volumes

test_load_atlas()[source]

load_atlas() should build the same atlas as load(), from just image.npy/label.npy.

class TestMerfish(methodName='runTest')[source]

Bases: TestCase

test_rgba()[source]
class TestMerfishDenoiseVolume(methodName='runTest')[source]

Bases: TestCase

test_denoise_volume()[source]

NaN-fill is restricted to in-brain voxels, and in-brain voxels sum to 1 afterwards.

test_denoise_volume_no_smoothing_no_drop()[source]

With sigma=0, n_drop_non_neuronal=0 and no NaNs, this is just a per-voxel renormalize.

class TestMerfishLoadVolume(methodName='runTest')[source]

Bases: TestCase

test_load_volume()[source]
test_load_volume_bad_args()[source]