search for: ind_effectors

Displaying 1 result from an estimated 1 matches for "ind_effectors".

2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
...e "Effectors" cell. My example attempt (for the first row/individual in my dataset) is below: (step by step, I didn't put this in a loop until I know it works for 1 row) Extract the values (effector genes) for the first individual, from the Effectors Cell in the dataframe, to "Ind_Effectors" object. Ind_Effectors <- strsplit(as.character(inds[1,4]),",") Randomly dictate how many values (effectors) will be sampled n<-round(runif(1, min=10, max=50)) Sample n values (effector genes) from "Ind_Effectors", not replacing Expressed_Genes <- sample(Ind_Effe...