49899ef69309d2a0ab6ad785f455eb53a8443a06,scanpy/exs/builtin.py,,moignard15_raw,#,265

Before Change


    ddata["xroot"] = ddata["X"][ddata["iroot"]] 
    // annotate rows of X with Moignard et al. (2015) experimental cell groups
    groups_names = ["HF", "NP", "PS", "4SG", "4SFG"]
    groups = [] // a list with n entries (one for each sample)
    for name in cellnames:
        for groupname in groups_names:
            if name.startswith(groupname):
                groups.append(groupname)
    // groups are categorical annotation for rows of X
    ddata["rowcat"] = {"groups": groups}
    // add additional metadata for the groups, we want them to be ordered
    // and we want custom colors for each group
    ddata["groups_names"] = groups_names    

After Change


    adata["groups_names"] = groups_names = ["HF", "NP", "PS", "4SG", "4SFG"]
    adata["groups_colors"] = ["//D7A83E", "/ǝAAE5D", "/릉ABC", "//AF353A", "/�"]
    // get name for each cell
    adata.smp["groups"] = [
        next(gname for gname in groups_names if sname.startswith(gname))
        for sname in adata.smp_names]
    return adata

def moignard15_dpt(ddpt):
    // switch on annotation by uncommenting the following
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: theislab/scanpy
Commit Name: 49899ef69309d2a0ab6ad785f455eb53a8443a06
Time: 2017-02-08
Author: f.alex.wolf@gmx.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw


Project Name: theislab/scanpy
Commit Name: 315859c5586116434ea3b7ce97512a5e2a1030e2
Time: 2017-02-06
Author: flying-sheep@web.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw


Project Name: ANSSI-FR/SecuML
Commit Name: 39efccc696a1c20745a52cc50935cdc24f92230d
Time: 2019-05-09
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/classif/classifiers/__init__.py
Class Name: Classifier
Method Name: _predict_streaming