Changed use of Dataset.get_matrix() to Dataset.asarray() and removed it.

This commit is contained in:
2006-05-05 14:43:53 +00:00
parent 97f56f66ac
commit 0db25f1dd7
4 changed files with 4 additions and 8 deletions

View File

@@ -203,7 +203,7 @@ class PCAFunction(workflow.Function):
dim_2, dim_1 = data.get_dim_names()
silent_eval = rpy.with_mode(rpy.NO_CONVERSION, rpy.r)
rpy.with_mode(rpy.NO_CONVERSION, rpy.r.assign)("m", data.get_matrix())
rpy.with_mode(rpy.NO_CONVERSION, rpy.r.assign)("m", data.asarray())
silent_eval("t = prcomp(t(m))")
# we make a unique name for component dimension

View File

@@ -236,7 +236,7 @@ class PCAFunction(workflow.Function):
silent_eval = rpy.with_mode(rpy.NO_CONVERSION, rpy.r)
rpy.with_mode(rpy.NO_CONVERSION, rpy.r.assign)("m", data.get_matrix())
rpy.with_mode(rpy.NO_CONVERSION, rpy.r.assign)("m", data.asarray())
silent_eval("t = prcomp(t(m))")
T_ids = map(str, range(1, rpy.r("dim(t$x)")[1]+1))