ffb068553a2044f33ad9395d6e45f2f2a7375587,scanpy/datasets/__init__.py,,paul15,#,142

Before Change


    }
    cell_type.update({i: "Ery" for i in range(1, 7)})
    adata.obs["paul15_clusters"] = [
        str(i) + cell_type[i] for i in clusters.astype(int)]
    // make string annotations categorical (optional)
    sc._utils.sanitize_anndata(adata)
    // just keep the first of the two equivalent names per gene

After Change


        X = f["data.debatched"][()]
        gene_names = f["data.debatched_rownames"][()].astype(str)
        cell_names = f["data.debatched_colnames"][()].astype(str)
        clusters = f["cluster.id"][()].flatten().astype(int)
        infogenes_names = f["info.genes_strings"][()].astype(str)
    // each row has to correspond to a observation, therefore transpose
    adata = AnnData(X.transpose())
    adata.var_names = gene_names
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: theislab/scanpy
Commit Name: ffb068553a2044f33ad9395d6e45f2f2a7375587
Time: 2019-10-18
Author: flying-sheep@web.de
File Name: scanpy/datasets/__init__.py
Class Name:
Method Name: paul15


Project Name: EducationalTestingService/skll
Commit Name: ca10c185d94470054d693f19e7691523dbe3ec55
Time: 2019-03-05
Author: jbiggs@ets.org
File Name: skll/data/readers.py
Class Name: NDJReader
Method Name: _sub_read


Project Name: theislab/scanpy
Commit Name: 43176311b4adfa0e30752b6a72b242bae4bf18cd
Time: 2017-11-12
Author: f.alex.wolf@gmx.de
File Name: scanpy/tools/dpt.py
Class Name:
Method Name: dpt