From 231f02471eafe5e0750d6954cc6cfd66c211ae1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= Date: Mon, 2 Sep 2019 17:18:52 +0200 Subject: [PATCH] Load data: Add data loader for H5AD format --- .../single_cell/tests/data/data_dense.h5ad | Bin 0 -> 11060 bytes .../single_cell/tests/data/data_sparse.h5ad | Bin 0 -> 19560 bytes .../single_cell/tests/test_load_data.py | 20 +++++- .../single_cell/tests/test_owloaddata.py | 41 ++++++++++++- .../single_cell/widgets/load_data.py | 58 +++++++++++++++++- setup.py | 1 + 6 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 orangecontrib/single_cell/tests/data/data_dense.h5ad create mode 100644 orangecontrib/single_cell/tests/data/data_sparse.h5ad diff --git a/orangecontrib/single_cell/tests/data/data_dense.h5ad b/orangecontrib/single_cell/tests/data/data_dense.h5ad new file mode 100644 index 0000000000000000000000000000000000000000..96db6ba6fab32067826806adce1e8305c601e242 GIT binary patch literal 11060 zcmeHNOLJ6J5bj9=Mid1^5PUHBKzt`5JY0EGJQtQw%7P6AL8mlTF{F}cfg4%kj-TMd zg$oz{1ePxON7~=%{?7EdIWt3*T9(B<)Sd4B`a6B^>D!mwJ~KaEI(K3BuEVvOZQj+-&z~1%GCrkGlernw7>9T# zpNtG#I=^%UE4}8+J?`=kuQNBZ|MsoT1bx4}k>q!4X0uM`IAMb9$<9>2_JInuGxw$} z(te+R$YtA}*2)KSZ~ursTNr&gI4cK#OuEPpnN9wwDGNC3Ps(&p9cesz%Be~0a~LtN zuYY@8QDOGzP0n*xZfz`Y+`X~6^1}f9y`v^MKDpj4^swF^J#SNg@r;<&uJ`TFqg4d+ z#^;c7S}s}MG%D8nck+fS8a}V>>)$$RSNve?^^0E5KRHJIeQiHC6VBO)-1}rZ2N;j! z9l?t;N5zR8=moD)K#zz;UA<`#qa>bWW>F7w9NwDNpl0Ut89uP4tT$>+uMk`pn|iF0ZVBZqR^ zbv45{?f8sKJjYN+#HhFV(WVX=`Qu{7IazN^V~jYToQP!|^LUU58>6u!bJdKxnu!xJ z=uMM6=>v8==!qC~jy4{B>v3h-$Ir2x^NDDz4IqPIY}0z@OBU{iqTRup_tfau@0#YF$3;LU=m0KhUP z?t+5%moA>Y{3#5+fG6FYKxO{pBtTAsa{i3jY`HRi+Hl_@$@At<8P3)#^G_Pi7AoV5 zhO^@>&%?DMzaKqV%iy2{~HD z7v%LSJ}+-n@j3CW0^PB(k@Bp?^_JTOuElk%hHG)XUBk7wj@NK4u6Js<7T3EqT#L)M zQp@Yq;(EWv*W&u1hHG(s=s2IJvxC*u{?)tdgT7VpMR{((R{J|nkvr!2k3J{;7Uwq< zkq+($nbmzhDH&-07N_qEzv^|tJlO9HZhX1CHTe4W#>!yR9o!$|{vP?0r2Y0J|1d^o jxDhmIV(0HN&}E>@z=#ZBdz0@w_{$t^?4d>*d#-;0@Q`G2 literal 0 HcmV?d00001 diff --git a/orangecontrib/single_cell/tests/data/data_sparse.h5ad b/orangecontrib/single_cell/tests/data/data_sparse.h5ad new file mode 100644 index 0000000000000000000000000000000000000000..db3ea00bd0bb17718a2981cb601cb6c034bfc9dc GIT binary patch literal 19560 zcmeHPOK%)S5U%y&u!Mxz5c1-Y&D-Q@JI(`%$69$=AxbRp0S-~JNjBJ$lUQDZ5;%|x zk~tvdgg9~lDM#*HIOLEU*Bm+UKcK$p`eu82dv{rg6xr#vdV8w6y1MF{@@!A_%zig@ z`t16(+tvz7r6MoLPJXU>R9 zQa@W8CVvjPBkCbPwa*6vQ)ecp;pwO5?ufOIEzXS0`|n(9W~?vki&^`{ZAUXsM>(KJ zTav*-{0>?Cj=bmwKC$t=;9l%eT%gIugzT<4&=>U zc{SjhyYgDVH+MA_U7`KvuDl-b&0X1KeBynsal26+pODQ_{?U9rSCk*mb{qp~x~AD3NG{+R5J@<(Nl@fq(K z&Kg{MV|)#+eKEcU*GP=7!SzmzuferH#@FCF5aVlb9gOicxDLhm8eE5Cd=0K6#^?Xp zsmA<#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