fabianegli / singlecell_proteomics

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Why shuffle the anndata data in cell 26? #4

Open fabianegli opened 1 year ago

fabianegli commented 1 year ago

I don't understand why the data is shuffled in cell 26.

for adata in full_data.values():
    np.random.shuffle(adata.X)

joined = anndata.concat(full_data.values()) # performs inner join
dataset_names = np.concatenate([[name] * adata.shape[0] for name, adata in full_data.items()])
print('number of shared genes:', joined.shape[1])

c = np.array(pd.DataFrame(joined.X.T).corr())