farrellja / URD

URD - Reconstruction of Branching Developmental Trajectories
GNU General Public License v3.0
117 stars 41 forks source link

Using different set of genes in calcPCA #23

Closed fereshtehizadi closed 5 years ago

fereshtehizadi commented 5 years ago

Hi,

Sorry, I would like to use a set of genes in calculating PCs rather than variable genes as default or all of genes but I am getting this error,

> 
> class(as.character(my_set))
[1] "character"
> length(as.character(my_set))
[1] 3939
>  <- calcPCA(object, mp.factor = 1.5,genes.use=as.character(my_set))
[1] "2018-10-03 21:23:11: Centering and scaling data."
Error in intI(i, n = x@Dim[1], dn[[1]], give.dn = FALSE) : 
  invalid character indexing
> 

Could you please help me in solving that?

Thank you

fereshtehizadi commented 5 years ago

Sorry, the problem was the genes was not among the rownames(object@logupx.data)