Files
cellxgene/client/__tests__/util/annoMatrix/n_genes.json
T
Bruce Martin 1269e188be Redux refactor (#1571)
* refactor categorical controls state

* lint

* fix race condition in tests

* fix typo

* add missing update on subset

* remove obsolete code

* update jest and puppeteer major version; update all minors

* update when label changes

* remove lint from tests; increase timeouts in e2e tests

* initial refactoring to new async annomatrix

* refine error handling

* fix bad merge

* add continuous legend

* lint

* fix memoization in color table creators

* partial implementation of user defined annotations

* add new annotations action creator file

* first pass at user annotations

* additional user annotation bug fixes

* user annotation auto-save

* unit test cleanup

* lint

* refactor into multiple files

* cleanup

* add column GC

* fix several bugs in user annotations

* remove debug code

* no anonymous functions

* undo redo cleanup

* file cleanup

* scatterplot

* performance

* cleanup

* remove old code

* render in parallel with load

* fix race condition

* simply graph rendering

* render throttle DRY

* fix category label order

* fix typo in e2e test setup

* re-fix the e2e test setup

* be more tolerant of races

* anno matrix unit tests

* temp disable reembedding

* pilot port continuous histo to react-async

* name change

* lint

* fix repaint bug

* typo fix

* update snap to match new ids

* world/universe name cleanup

* move annoMatrix to src dir

* use private underscore naming convention

* fix corner case in all selected

* name cleanup

* add layout control

* init edge case

* lint

* port scatterplot

* fix label indexing bug and improve tests

* port category to react-async

* fix user annotation labelling while subset

* select all of prev layout on layout switch

* fix race with crossfilter update

* prettier lint

* fix misleading comment

* fix url composition in loader

* first pass at crossfilter tests

* lint

* lint

* fix typo

* improved error handling for network errors

* fix memoization bug

* add memo

* refactor for performnce

* add missing single-value handling in select exact parser

* small bugs discovered by tests

* lint

* additional crossfilter unit tests

* remove extraneous comment

* add support for automatic category determination

* lint

* fix render bug in category

* take advantage of schema categories guarantee

* lint

* do not clear history when resetting

* enhanced annomatrix gc

* lint

* finish renaming to follow conventions; fix clone race bug

* lint

* add priority based loading to improve initial data load UX

* crossfilter cache perf

* perf tuning

* remove timers

* documentation

* PR review changes

* PR review changes

* more PR review edits

* improve clarity of comment

* more PR review fixes

* port centroidLabels to use react-async

* remove dead code

* pr review updates

* oops, remove logging
2020-07-14 13:53:33 -07:00

2641 lines
19 KiB
JSON

[
781,
1352,
1131,
960,
522,
782,
783,
790,
533,
550,
1116,
751,
866,
1059,
458,
335,
1424,
1014,
1446,
446,
1020,
417,
878,
789,
510,
824,
1545,
996,
937,
1368,
428,
406,
1020,
786,
1019,
750,
822,
982,
876,
930,
838,
1014,
732,
877,
782,
787,
791,
880,
801,
1215,
343,
1460,
1250,
756,
836,
824,
827,
1238,
1243,
1652,
843,
825,
656,
776,
766,
1465,
790,
871,
803,
965,
800,
876,
690,
988,
906,
741,
620,
867,
916,
969,
803,
732,
555,
790,
862,
900,
674,
397,
663,
563,
786,
859,
568,
412,
1043,
1206,
702,
1263,
929,
1079,
938,
316,
900,
919,
862,
903,
390,
1717,
819,
1877,
660,
791,
478,
769,
481,
819,
866,
600,
1185,
650,
775,
699,
642,
857,
832,
388,
710,
341,
894,
935,
604,
1008,
985,
679,
603,
864,
1031,
887,
603,
610,
1119,
669,
794,
963,
756,
637,
1032,
776,
860,
825,
852,
745,
858,
925,
1228,
806,
715,
668,
779,
1197,
888,
1273,
873,
847,
781,
959,
805,
554,
604,
785,
978,
910,
936,
997,
961,
1314,
799,
1112,
677,
775,
1298,
657,
626,
1313,
467,
936,
977,
780,
1311,
432,
579,
850,
736,
800,
892,
860,
720,
822,
681,
954,
889,
1265,
919,
799,
833,
496,
1476,
848,
869,
1059,
490,
897,
832,
864,
419,
856,
907,
791,
756,
771,
957,
1190,
680,
524,
908,
506,
851,
775,
793,
748,
951,
643,
1277,
828,
480,
969,
1112,
648,
805,
1223,
1023,
669,
489,
390,
350,
1113,
837,
1547,
840,
581,
748,
1861,
735,
488,
1016,
585,
797,
769,
490,
1307,
895,
686,
602,
772,
704,
892,
1169,
1375,
1189,
892,
2455,
355,
1856,
1317,
703,
825,
736,
1997,
892,
1034,
545,
1188,
659,
1056,
819,
979,
632,
598,
690,
310,
803,
743,
560,
1073,
844,
882,
841,
815,
771,
976,
986,
820,
957,
640,
1012,
927,
794,
753,
791,
366,
539,
752,
769,
650,
947,
771,
824,
744,
837,
723,
640,
923,
1174,
1597,
699,
618,
1418,
820,
1047,
981,
866,
527,
762,
717,
860,
603,
828,
476,
1071,
775,
614,
913,
836,
669,
942,
792,
871,
1046,
859,
793,
822,
751,
435,
1142,
781,
718,
471,
1750,
892,
841,
1156,
1031,
912,
873,
824,
1233,
1312,
575,
605,
717,
1019,
1215,
928,
1780,
657,
718,
646,
808,
1120,
750,
390,
1100,
456,
755,
1118,
571,
867,
728,
916,
491,
960,
625,
1090,
772,
968,
480,
810,
725,
1016,
1011,
1075,
808,
672,
950,
862,
766,
963,
507,
570,
678,
768,
1037,
885,
1426,
1496,
587,
879,
924,
783,
696,
1057,
783,
867,
919,
1251,
1023,
727,
645,
1217,
929,
792,
994,
1025,
946,
600,
881,
975,
1609,
758,
772,
682,
998,
979,
1045,
706,
808,
855,
819,
1147,
742,
914,
969,
704,
1398,
581,
809,
921,
805,
542,
888,
519,
1092,
762,
698,
752,
771,
899,
1101,
760,
881,
1124,
809,
445,
1703,
789,
641,
819,
890,
767,
806,
1323,
942,
807,
981,
888,
726,
1190,
826,
661,
713,
816,
822,
806,
864,
464,
664,
931,
860,
674,
803,
464,
788,
1068,
781,
843,
779,
873,
707,
492,
669,
982,
749,
789,
780,
561,
655,
432,
801,
945,
770,
503,
766,
776,
970,
989,
654,
762,
882,
1236,
1499,
626,
1380,
1170,
491,
833,
924,
581,
842,
596,
811,
542,
1572,
758,
854,
274,
1413,
872,
559,
907,
951,
1175,
946,
905,
737,
604,
843,
606,
1079,
668,
785,
726,
978,
941,
994,
655,
1013,
987,
591,
1041,
625,
582,
814,
570,
775,
822,
715,
738,
956,
1178,
743,
1861,
841,
944,
783,
643,
924,
936,
431,
490,
532,
524,
620,
749,
1334,
834,
790,
702,
892,
693,
784,
944,
471,
839,
529,
729,
1084,
802,
886,
815,
856,
746,
1318,
545,
696,
872,
1154,
467,
725,
1027,
479,
728,
926,
1282,
907,
833,
1024,
838,
900,
737,
367,
459,
1030,
1279,
756,
662,
1323,
1003,
359,
770,
813,
634,
924,
1184,
901,
816,
1421,
771,
706,
953,
348,
716,
870,
715,
550,
689,
947,
1157,
690,
383,
374,
882,
697,
246,
833,
1006,
1181,
974,
856,
978,
1551,
965,
907,
565,
417,
907,
927,
966,
658,
727,
743,
381,
385,
905,
645,
1167,
936,
724,
618,
1038,
853,
808,
1403,
762,
741,
687,
932,
1096,
601,
652,
895,
682,
1553,
604,
823,
803,
646,
917,
942,
850,
795,
771,
949,
516,
664,
1001,
637,
619,
907,
961,
812,
793,
1043,
1343,
1326,
981,
675,
937,
631,
1026,
1135,
499,
948,
801,
848,
741,
604,
864,
1076,
1106,
1111,
624,
1008,
908,
815,
346,
1062,
803,
749,
779,
1027,
1032,
1040,
654,
631,
755,
854,
850,
798,
864,
1078,
690,
864,
1523,
838,
966,
389,
1654,
808,
885,
1665,
920,
855,
807,
859,
1276,
987,
1079,
678,
626,
831,
829,
1009,
547,
893,
722,
656,
415,
773,
1262,
1218,
365,
661,
805,
1409,
1094,
779,
898,
830,
1242,
864,
576,
901,
1274,
852,
1006,
719,
763,
683,
957,
831,
724,
354,
763,
910,
749,
626,
870,
795,
1078,
736,
835,
402,
1203,
699,
755,
697,
1229,
637,
666,
846,
1036,
1027,
831,
999,
942,
891,
1007,
712,
990,
725,
745,
921,
333,
1042,
895,
873,
1612,
724,
929,
601,
862,
908,
658,
775,
724,
753,
741,
690,
379,
608,
927,
777,
969,
827,
709,
385,
690,
769,
554,
892,
761,
367,
731,
1103,
944,
832,
675,
652,
418,
727,
745,
872,
1336,
863,
934,
844,
721,
432,
782,
1006,
834,
840,
840,
819,
699,
489,
665,
576,
1291,
1102,
826,
880,
738,
904,
686,
874,
887,
873,
560,
766,
710,
1135,
1054,
805,
724,
973,
1201,
575,
838,
865,
546,
811,
884,
886,
791,
1026,
2000,
644,
763,
969,
800,
359,
624,
993,
800,
1167,
833,
1871,
616,
822,
647,
1000,
618,
734,
618,
1938,
861,
945,
1032,
723,
984,
994,
771,
738,
1583,
1113,
614,
1146,
615,
848,
983,
677,
972,
791,
827,
804,
395,
843,
493,
741,
941,
1659,
742,
1517,
559,
937,
740,
781,
819,
813,
578,
1022,
1191,
824,
1146,
757,
638,
830,
713,
609,
1271,
680,
769,
1119,
731,
804,
781,
916,
735,
835,
1257,
472,
879,
851,
1023,
661,
1008,
748,
845,
393,
675,
843,
876,
939,
932,
760,
735,
1561,
752,
940,
705,
405,
690,
1071,
544,
927,
817,
388,
560,
1322,
640,
886,
1075,
689,
524,
606,
802,
868,
939,
753,
770,
1105,
841,
786,
445,
703,
593,
875,
901,
927,
798,
1221,
415,
1381,
949,
1322,
1169,
745,
727,
799,
490,
767,
943,
808,
926,
664,
569,
843,
727,
1222,
457,
1515,
1138,
1174,
525,
878,
525,
999,
778,
772,
819,
1015,
939,
856,
715,
793,
837,
1193,
764,
834,
677,
625,
420,
837,
874,
679,
811,
546,
787,
587,
821,
669,
813,
780,
649,
924,
1322,
701,
792,
817,
667,
804,
593,
740,
1243,
859,
685,
596,
1193,
859,
775,
947,
689,
907,
734,
621,
336,
922,
802,
812,
941,
943,
868,
947,
767,
701,
692,
423,
775,
500,
1100,
812,
728,
616,
928,
835,
454,
812,
769,
1058,
914,
628,
649,
452,
754,
1327,
776,
670,
1017,
599,
431,
967,
1077,
2033,
731,
533,
926,
725,
559,
870,
964,
1341,
1981,
1103,
326,
428,
808,
821,
554,
596,
680,
1034,
849,
566,
879,
1091,
823,
447,
1688,
868,
1254,
942,
462,
1055,
852,
738,
804,
775,
726,
993,
1462,
1007,
798,
1036,
786,
948,
743,
761,
838,
1040,
859,
867,
1188,
846,
687,
672,
629,
725,
660,
809,
469,
600,
812,
856,
397,
786,
895,
882,
449,
890,
823,
1051,
823,
1055,
741,
999,
1241,
790,
878,
778,
1066,
815,
465,
1079,
743,
1098,
807,
1120,
1025,
805,
676,
828,
763,
997,
852,
866,
1118,
508,
928,
958,
932,
892,
905,
494,
710,
1068,
795,
787,
951,
720,
842,
890,
1355,
1005,
872,
1185,
912,
869,
894,
997,
770,
554,
806,
1426,
1012,
452,
896,
426,
239,
829,
895,
787,
1139,
925,
1015,
1360,
1097,
650,
853,
549,
1052,
307,
1152,
907,
1628,
731,
897,
1749,
762,
712,
1195,
851,
864,
968,
845,
331,
840,
734,
948,
842,
1543,
661,
981,
912,
912,
1063,
683,
823,
996,
695,
1483,
927,
574,
1052,
571,
1028,
1263,
671,
958,
747,
866,
896,
489,
643,
923,
820,
1466,
550,
1112,
1006,
1448,
727,
899,
998,
563,
870,
903,
516,
754,
879,
588,
740,
798,
798,
653,
902,
990,
724,
953,
891,
1437,
653,
714,
956,
877,
1012,
824,
1077,
740,
692,
1063,
771,
808,
1389,
1264,
952,
816,
795,
795,
760,
886,
349,
868,
842,
819,
626,
418,
903,
838,
723,
436,
1112,
724,
1299,
719,
843,
1090,
696,
885,
627,
809,
423,
729,
853,
855,
608,
627,
823,
1063,
575,
743,
1528,
681,
544,
422,
731,
920,
761,
884,
982,
784,
496,
573,
521,
663,
794,
975,
856,
978,
590,
905,
695,
816,
976,
816,
753,
791,
858,
813,
841,
1085,
1692,
716,
955,
1467,
741,
296,
738,
1573,
1119,
918,
283,
703,
842,
1253,
676,
1636,
1273,
380,
799,
1491,
878,
939,
725,
1365,
818,
719,
1343,
905,
837,
803,
990,
1084,
976,
1630,
795,
1408,
771,
650,
779,
648,
817,
1127,
882,
954,
830,
732,
783,
756,
708,
976,
718,
887,
809,
795,
662,
912,
1550,
1509,
1021,
1751,
776,
910,
714,
530,
846,
631,
1152,
1118,
755,
573,
1176,
267,
918,
1132,
849,
938,
1140,
909,
840,
806,
904,
788,
778,
715,
869,
714,
883,
767,
858,
788,
553,
634,
1230,
1131,
849,
811,
827,
1753,
713,
484,
783,
722,
596,
514,
372,
925,
747,
840,
673,
955,
796,
719,
718,
857,
578,
1063,
594,
997,
1268,
341,
388,
753,
834,
593,
1189,
911,
738,
476,
816,
641,
746,
635,
953,
801,
326,
849,
499,
865,
1420,
487,
876,
797,
981,
756,
850,
1097,
998,
829,
1159,
955,
1061,
696,
786,
743,
1211,
893,
491,
744,
1447,
767,
1050,
853,
1118,
1428,
555,
612,
854,
789,
889,
784,
712,
1323,
921,
682,
794,
846,
1012,
839,
807,
587,
881,
781,
1010,
1182,
1149,
812,
607,
1155,
714,
642,
1088,
1291,
1196,
325,
804,
370,
359,
855,
1165,
836,
923,
863,
1284,
1011,
889,
984,
512,
939,
883,
697,
1211,
362,
969,
1135,
1239,
580,
1103,
975,
825,
1170,
921,
640,
1180,
378,
982,
916,
1122,
792,
619,
750,
913,
775,
661,
766,
768,
675,
944,
940,
761,
727,
767,
873,
1043,
850,
995,
680,
595,
700,
753,
736,
891,
685,
780,
986,
989,
830,
810,
685,
784,
642,
742,
961,
906,
829,
621,
822,
717,
1210,
800,
1963,
749,
757,
570,
831,
721,
336,
802,
1001,
886,
631,
759,
631,
550,
984,
767,
835,
777,
639,
860,
1413,
747,
779,
540,
367,
1629,
1380,
689,
1001,
809,
337,
1103,
796,
966,
782,
1018,
642,
967,
436,
826,
779,
1000,
601,
796,
945,
1679,
1123,
596,
995,
720,
588,
759,
452,
780,
836,
515,
846,
392,
283,
710,
1158,
796,
895,
585,
559,
859,
879,
858,
842,
643,
1308,
595,
1181,
909,
710,
821,
817,
841,
1197,
640,
1425,
947,
900,
852,
460,
1100,
824,
780,
932,
542,
1137,
1225,
997,
572,
780,
765,
906,
793,
753,
772,
854,
936,
1048,
819,
645,
619,
314,
726,
737,
1162,
1081,
868,
1032,
913,
476,
490,
799,
1201,
997,
898,
212,
1586,
427,
947,
937,
724,
380,
715,
739,
931,
973,
773,
1497,
906,
798,
953,
471,
821,
806,
714,
828,
727,
773,
976,
856,
727,
761,
1084,
1557,
693,
559,
627,
795,
750,
838,
803,
453,
734,
607,
1029,
805,
669,
505,
858,
832,
1019,
585,
1225,
1287,
903,
752,
2020,
774,
666,
843,
857,
887,
1082,
656,
674,
911,
734,
910,
672,
802,
539,
699,
941,
828,
800,
642,
733,
607,
992,
379,
562,
847,
787,
1461,
732,
941,
785,
696,
795,
809,
828,
651,
882,
972,
1323,
679,
774,
784,
766,
520,
671,
796,
644,
1549,
756,
723,
788,
643,
856,
825,
730,
831,
653,
429,
641,
637,
812,
1527,
859,
972,
744,
869,
508,
624,
923,
976,
801,
1014,
1429,
586,
692,
704,
1176,
806,
883,
1249,
765,
743,
907,
666,
669,
364,
794,
959,
766,
937,
1398,
942,
1469,
905,
812,
572,
1378,
1058,
1215,
697,
531,
676,
1819,
503,
801,
943,
874,
813,
694,
494,
660,
1467,
976,
833,
689,
921,
625,
1428,
817,
909,
956,
765,
1207,
829,
1648,
554,
1500,
953,
647,
537,
786,
814,
761,
862,
838,
1102,
1392,
1042,
372,
971,
1364,
1137,
847,
935,
710,
1070,
914,
855,
759,
654,
981,
1193,
397,
1123,
616,
747,
876,
949,
965,
789,
752,
717,
1198,
952,
625,
784,
914,
659,
913,
863,
959,
1637,
796,
1508,
906,
714,
1195,
867,
819,
375,
656,
1047,
745,
866,
1186,
1669,
539,
942,
839,
927,
796,
734,
831,
967,
620,
814,
605,
1391,
655,
1512,
625,
719,
547,
864,
902,
853,
1143,
990,
858,
604,
1291,
701,
859,
768,
1621,
715,
594,
783,
1608,
927,
740,
805,
705,
491,
514,
768,
880,
993,
356,
748,
993,
801,
843,
1194,
794,
606,
810,
882,
682,
1126,
792,
829,
1657,
786,
610,
664,
790,
852,
678,
589,
930,
690,
840,
647,
622,
427,
856,
522,
1262,
722,
641,
997,
983,
1099,
607,
704,
947,
886,
1062,
659,
995,
492,
754,
676,
837,
532,
598,
1274,
921,
700,
828,
828,
543,
815,
709,
842,
1200,
1126,
1327,
849,
1160,
707,
675,
709,
990,
270,
445,
892,
1040,
832,
815,
437,
1401,
1341,
480,
1517,
704,
622,
823,
731,
781,
849,
1209,
472,
838,
643,
1101,
879,
895,
408,
832,
845,
928,
920,
1269,
652,
1463,
840,
706,
956,
1219,
612,
970,
789,
382,
533,
627,
388,
655,
1103,
782,
1231,
617,
589,
758,
882,
909,
661,
558,
947,
491,
1386,
1481,
823,
1064,
681,
652,
363,
824,
933,
611,
886,
806,
531,
864,
648,
1142,
736,
955,
826,
725,
1174,
841,
1006,
1418,
955,
829,
1038,
632,
750,
846,
1033,
859,
890,
893,
1030,
913,
1385,
750,
416,
703,
522,
856,
914,
742,
381,
1079,
671,
1101,
858,
663,
581,
845,
881,
823,
835,
1290,
598,
1130,
793,
838,
765,
768,
815,
810,
912,
818,
790,
665,
703,
875,
657,
1567,
688,
749,
1076,
782,
543,
1100,
841,
809,
789,
1263,
758,
368,
1022,
730,
1101,
478,
488,
618,
940,
771,
784,
847,
1303,
821,
1111,
752,
1128,
958,
742,
782,
824,
751,
872,
939,
606,
698,
705,
963,
607,
621,
1650,
1093,
545,
670,
617,
723,
1194,
1019,
1291,
758,
855,
1549,
743,
1372,
802,
337,
1121,
1028,
1524,
645,
847,
866,
941,
751,
583,
796,
793,
975,
936,
524,
659,
607,
1433,
562,
696,
927,
517,
719,
599,
639,
977,
1019,
816,
672,
1903,
1162,
964,
936,
947,
989,
790,
902,
982,
673,
856,
629,
692,
843,
940,
795,
780,
821,
471,
702,
631,
1557,
868,
901,
798,
1020,
885,
881,
719,
1043,
1238,
565,
776,
696,
725,
365,
811,
1212,
1178,
1132,
661,
831,
786,
471,
835,
564,
929,
958,
706,
388,
842,
965,
1088,
511,
794,
900,
865,
789,
504,
701,
817,
796,
972,
906,
871,
922,
724,
628,
1479,
533,
1101,
1913,
855,
1266,
884,
817,
619,
591,
685,
887,
1336,
656,
1227,
980,
817,
582,
1370,
460,
638,
471,
650,
414,
907,
1147,
732,
992,
801,
822,
529,
737,
806,
816,
889,
1305,
588,
657,
1154,
713,
326,
1129,
1603,
879,
1156,
642,
285,
825,
823,
719,
1253,
971,
853,
916,
1053,
515,
1017,
953,
832,
645,
667,
1326,
547,
636,
1783,
1211,
788,
807,
1104,
884,
848,
788,
1013,
1003,
916,
818,
828,
882,
959,
395,
368,
787,
929,
1379,
711,
733,
752,
464,
626,
735,
946,
876,
647,
536,
954,
486,
712,
786,
438,
807,
1016,
551,
841,
929,
757,
971,
708,
567,
881,
801,
873,
805,
1359,
866,
945,
1068,
819,
815,
1058,
845,
881,
1051,
1179,
718,
657,
882,
709,
754,
735,
603,
944,
1794,
712,
721,
1097,
813,
788,
917,
656,
1104,
1268,
1239,
862,
739,
858,
1066,
752,
615,
721,
571,
861,
933,
807,
1082,
820,
887,
850,
1567,
803,
1156,
721,
692,
700,
458,
637,
873,
1544,
1155,
1227,
622,
454,
724
]