Skip to content

Download_CHOC_dataset

Willy Wong edited this page Apr 22, 2024 · 3 revisions

The dataset consists of 951 tissue section scans taken from 167 H&E-stained whole slides from 18 pediatric inflammatory bowel disease patients.

https://www.choc.org/

Sample PHP code to download the entire CHOC dataset

<?php


$idArray = [55431,55432,55433,55434,55435,55436,55437,55438,55439,55440,55441,55442,
    55443,55444,55445,55446,55447,55448,55449,55450,55451,55452,55453,55454,55455,55456,
    55457,55458,55459,55460,55461,55462,55463,55464,55465,55466,55467,55468,55469,55470,
    55471,55472,55473,55474,55475,55476,55477,55478,55479,55480,55481,55482,55483,55484,
    55485,55486,55487,55488,55489,55490,55491,55492,55493,55494,55495,55496,55497,55498,
    55499,55500,55501,55502,55503,55504,55505,55506,55507,55508,55509,55510,55511,55512,
    55513,55514,55515,55516,55517,55518,55519,55520,55521,55522,55523,55524,55525,55526,
    55527,55528,55529,55530,55531,55532,55533,55534,55535,55536,55537,55538,55539,55540,
    55541,55542,55543,55544,55545,55546,55547,55548,55549,55550,55551,55552,55553,55554,
    55555,55556,55557,55558,55559,55560,55561,55562,55563,55564,55565,55566,55567,55568,
    55569,55570,55571,55572,55573,55574,55575,55576,55577,55643,55644,55645,55646,55647,
    55648,55649,55650,55651,55652,55653,55654,55655,55656,55657,55658,55659,55660,55661,
    55662,55663,55664,55665,55666,55667,55668,55669,55670,55671,55672,55673,55674,55675,
    55676,55677,55678,55679,55680,55681,55682,55683,55684,55685,55686,55687,55688,55689,
    55690,55691,55692,55693,55694,55695,55696,55697,55698,55699,55700,55701,55702,55703,
    55704,55705,55706,55707,55708,55711,55712,55713,55714,55715,55716,55717,55718,55719,
    55720,55721,55722,55723,55724,55725,55726,55727,55728,55729,55730,55731,55732,55733,
    55734,55735,55736,55737,55738,55739,55740,55741,55742,55743,55744,55745,55746,55747,
    55748,55749,55750,55751,55752,55753,55754,55755,55756,55757,55758,55759,55760,55761,
    55762,55763,55764,55782,55783,55784,55785,55786,55788,55789,55790,55791,55792,55793,
    55794,55795,55796,55797,55798,55799,55800,55801,55802,55803,55804,55805,55806,55807,
    55808,55809,55810,55811,55812,55813,55814,55815,55816,55817,55818,55819,55820,55821,
    55822,55823,55824,55825,55826,55827,55828,55829,55830,55831,55832,55833,55834,55835,
    55836,55837,55838,55839,55840,55841,55842,55843,55844,55845,55846,55847,55848,55849,
    55850,55851,55852,55853,55854,55855,55856,55857,55858,55859,55860,55861,55862,55863,
    55864,55865,55866,55867,55868,55869,55870,55871,55872,55873,55874,55875,55876,55877,
    55878,55879,55880,55881,55882,55883,55884,55885,55886,55887,55888,55889,55890,55891,
    55892,55893,55894,55895,55896,55897,55898,55899,55900,55901,55902,55903,55904,55905,
    55906,55907,55908,55909,55910,55911,55912,55913,55914,55915,55916,55917,55918,55919,
    55920,55921,55922,55923,55924,55925,55926,55927,55928,55929,55930,55931,55932,55933,
    55934,55935,55936,55937,55938,55939,55940,55941,55942,55943,55944,55945,55946,55947,
    55948,55949,55950,55951,55952,55953,55954,55955,55956,55957,55958,55959,55960,55961,
    55962,55963,55964,55965,55966,55967,55968,55969,55970,55971,55972,55973,55974,55975,
    55976,55977,55978,55979,55980,55981,55982,55983,55984,55985,55986,55987,55988,55989,
    55990,55991,55992,55993,55994,55995,55996,55997,55998,55999,56000,56001,56002,56003,
    56004,56005,56006,56007,56008,56009,56010,56011,56012,56013,56014,56015,56016,56017,
    56018,56019,56020,56021,56022,56023,56024,56025,56026,56027,56028,56029,56030,56031,
    56032,56033,56034,56035,56036,56037,56038,56039,56040,56041,56042,56043,56044,56045,
    56046,56047,56048,56049,56050,56051,56052,56053,56054,56055,56056,56057,56058,56059,
    56060,56061,56062,56063,56064,56065,56066,56067,56068,56069,56070,56071,56072,56073,
    56074,56075,56076,56077,56078,56079,56080,56081,56082,56083,56084,56085,56086,56088,
    56089,56090,56091,56092,56093,56094,56095,56096,56097,56098,56099,56100,56101,56102,
    56103,56104,56105,56106,56107,56108,56109,56110,56111,56112,56113,56114,56115,56116,
    56117,56118,56119,56120,56121,56122,56123,56124,56125,56126,56127,56128,56129,56130,
    56131,56132,56133,56134,56135,56136,56137,56138,56139,56140,56141,56142,56143,56144,
    56145,56146,56147,56148,56149,56150,56151,56152,56153,56154,56155,56156,56157,56158,
    56159,56160,56161,56162,56163,56164,56165,56166,56167,56168,56169,56170,56171,56172,
    56173,56174,56175,56176,56177,56178,56179,56180,56181,56182,56183,56184,56185,56186,
    56187,56188,56189,56190,56191,56192,56193,56194,56195,56196,56197,56198,56199,56200,
    56201,56202,56203,56204,56205,56206,56207,56208,56209,56210,56211,56212,56213,56214,
    56215,56216,56217,56218,56219,56220,56221,56222,56223,56224,56225,56226,56227,56228,
    56229,56230,56231,56232,56233,56234,56235,56236,56237,56238,56239,56240,56241,56242,
    56243,56244,56245,56246,56247,56248,56249,56250,56251,56252,56253,56254,56255,56256,
    56257,56258,56259,56260,56261,56262,56263,56264,56265,56266,56267,56268,56269,56270,
    56271,56272,56273,56274,56275,56276,56277,56278,56279,56280,56281,56282,56283,56284,
    56285,56286,56287,56288,56289,56290,56291,56292,56293,56294,56295,56296,56297,56298,
    56299,56300,56301,56302,56303,56304,56305,56306,56307,56308,56309,56310,56311,56312,
    56313,56314,56315,56316,56317,56318,56319,56320,56321,56322,56323,56324,56325,56326,
    56327,56328,56329,56330,56331,56332,56333,56334,56335,56336,56337,56338,56339,56340,
    56341,56342,56343,56344,56345,56346,56347,56348,56349,56350,56351,56352,56353,56354,
    56355,56356,56357,56358,56359,56360,56361,56362,56363,56364,56365,56366,56367,56368,
    56369,56370,56371,56372,56373,56374,56375,56376,56377,56378,56379,56380,56381,56382,
    56383,56384,56385,56386,56387,56388,56389,56390,56391,56392,56393,56394,56395,56396,
    56397,56398,56399,56400,56401,56402,56403,56404,56405,56406,56407,56408,56409,56410,
    56411,56412,56413,56414,56415,56416,56417,56418,56419,56420,56421,56422,56423,56424,
    56425,56426,56427,56428,56429,56430,56431,56432,56433,56434,56435,56436,56437,56438,
    56439,56440,56441,56442,56443,56444,56445,56446,56447,56448,56449,56450,56451,56452,
    56453,56454,56455,56456,56457,56458,56459,56460,56461,56462,56463,56464,56470,57184,
    57185];

foreach($idArray as $numeric_id)
{
    $url = "https://cildata.crbs.ucsd.edu/media/images/".$numeric_id."/".$numeric_id.".zip";
    echo "\nDownloading ".$numeric_id.".zip";
    file_put_contents($numeric_id.".zip", fopen($url, 'r'));    
}


Clone this wiki locally