mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 07:46:22 +02:00
[datasets] added singlecell dataset
This commit is contained in:
parent
675d498794
commit
a717c03866
3 changed files with 22 additions and 410 deletions
|
|
@ -717,7 +717,19 @@ def hapmap3(data_set='hapmap3'):
|
|||
inandf=inandf,
|
||||
populations=populations)
|
||||
return hapmap
|
||||
|
||||
|
||||
def singlecell(data_set='singlecell'):
|
||||
if not data_available(data_set):
|
||||
download_data(data_set)
|
||||
dirpath = os.path.join(data_path, data_set)
|
||||
data = np.loadtxt(os.path.join(dirpath, 'singlecell.csv'), delimiter=",", dtype=str)
|
||||
genes = data[0, 1:]
|
||||
labels = data[1:, 0]
|
||||
Y = np.array(data[1:, 1:], dtype=float)
|
||||
return data_details_return({'Y': Y, 'info' : "qPCR Singlecell experiment in Mouse, measuring 48 gene expressions in 1-64 cell states. The labels have been created as in Guo et al. [2010]",
|
||||
'genes':genes, 'labels':labels,
|
||||
}, data_set)
|
||||
|
||||
def swiss_roll_1000():
|
||||
return swiss_roll(num_samples=1000)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue