43176311b4adfa0e30752b6a72b242bae4bf18cd,scanpy/tools/dpt.py,,dpt,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,14

Before Change


    // detect branchings and partition the data into segments
    dpt.branchings_segments()
    // vector of length n_groups
    adata.add["dpt_groups_order"] = [str(n) for n in dpt.segs_names_unique]
    // for itips, tips in enumerate(dpt.segs_tips):
    //     // if tips[0] == -1: adata.add["dpt_groups_order"][itips] = "?"
    //     if dpt.segs_undecided[itips]: adata.add["dpt_groups_order"][itips] += "?"

After Change


    // vector of length n_samples of groupnames
    adata.smp["dpt_groups"] = pd.Categorical(
        values=dpt.segs_names.astype("U"),
        categories=natsorted(np.array(dpt.segs_names_unique).astype("U")))
    // the ordering according to segments and pseudotime
    ordering_id = np.zeros(adata.n_smps, dtype=int)
    for count, idx in enumerate(dpt.indices): ordering_id[idx] = count
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


Project Name: theislab/scanpy
Commit Name: b5cf5b5a239bfeb3668c9ecb872683e149f7fab8
Time: 2018-05-18
Author: f.alex.wolf@gmx.de
File Name: scanpy/tools/louvain.py
Class Name:
Method Name: louvain


Project Name: calico/basenji
Commit Name: 09b8381f7dd52c67fdd629825ff319271167d8c5
Time: 2019-07-11
Author: drk@calicolabs.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model


Project Name: calico/basenji
Commit Name: 71106ac70146d89b3e3e0774a5c27a98212e1405
Time: 2019-07-11
Author: geoff.fudenberg@gmail.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model