Displaying 2 results from an estimated 2 matches for "num_expressed_genes".
2012 Nov 06
1
sample from list
...tion(x) runif(1, min=10, max=50))))
I want to create another list which consists of each individuals expressed genes - essentially a subset of the total genes the individuals have in the "Genes" list, by sampling from the Genes list for each individual, the number of genes (values)in the Num_Expressed_Genes vector. i.e. if Num_Expressed_Genes = 3 then sample 3 values from the element in the Genes list. I can't quite figure it out though. So far I have the following:
#Defines The number of expressed genes for each individual in my data frame.
Num_Expressed_Genes <- round(as.numeric(lapply(1:nro...
2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
...ant to create another list which consists of each individuals
> > expressed genes - essentially a subset of the total genes the
> > individuals have in the "Genes" list, by sampling from the Genes
> > list for each individual, the number of genes (values)in the
> > Num_Expressed_Genes vector. i.e. if Num_Expressed_Genes = 3 then
> > sample 3 values from the element in the Genes list. I can't quite
> > figure it out though. So far I have the following:
> >
> > #Defines The number of expressed genes for each individual in my data frame.
> > Num_Ex...