315859c5586116434ea3b7ce97512a5e2a1030e2,scanpy/exs/builtin.py,,paul15pca,#,245

Before Change


    // reduce to 50 components
    ddata["Xpca"] = sc.pca(ddata["X"])
    // adjust expression vector of root cell
    ddata["xroot"] = ddata["Xpca"][ddata["iroot"]]
    return ddata    

def toggleswitch():

After Change



def paul15pca():
    adata = paul15_raw()
    adata.X = sc.pp(adata.X, "log")
    // reduce to 50 components
    apca = AnnData(sc.pca(adata.X), adata.smp, vis=adata.vis, iroot=adata["iroot"])
    // adjust expression vector of root cell
    apca.var["xroot"] = apca.X[apca["iroot"]]
    return apca

def toggleswitch():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: paul15pca


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: paul15


Project Name: scipy/scipy
Commit Name: 471ed59cb4bf930f00b6eac1f6571bff1da35786
Time: 2013-09-26
Author: pav@iki.fi
File Name: scipy/interpolate/tests/test_interpolate.py
Class Name: TestPPoly
Method Name: test_roots_random