Displaying 3 results from an estimated 3 matches for "no_of_effector".
Did you mean:
no_of_effectors
2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
...s and operated on, before being stored again in the dataframes.
Below is how I've created my dataframe and stored my effector genes. In this model, effector genes are numerical values between 1 and 10000.
Path_Number <- 0500
inds <- data.frame(ID=formatC(0001:Path_Number,width=4,flag=0),No_of_Effectors="",No_Expressed_Effectors="")
inds$No_of_Effectors <- round(as.numeric(lapply(1:nrow(inds),function(x) runif(1, min=1, max=550))))
Effectors <- lapply(1:nrow(inds),function(x) sample(1:10000,inds$No_of_Effectors,replace=TRUE))
inds <- data.frame(inds,Effectors=as.chara...
2012 Oct 28
6
Having some Trouble Data Structures
Hi All,
I'm trying to run a simulation of host-pathogen evolution based around individuals.
What I need to have is a dataframe or table of some description - describing all the individuals of a pathogen population (so far I've implemented this as a matrix):
ID No_of_Effectors Effectors (Sequences)
[1,] 0001 3 ## 3 Random Numbers ##
There will be many such rows for many individuals. They have something called effectors, the number of which is randomly generated, so say you get 3 in the No_of_Effectors column. Then I...
2012 Nov 16
1
Code works, but not as function.
Hi,
I have some values in a list format generated by the following:
Path_Number <- 0010
ID.Path <- formatC(0001:Path_Number, width=4, flag=0) # Make vector of ID's.
No_of_Effectors <- sample(1:550, length(ID.Path), replace=TRUE) # Define Number of Effectors each individual gets.
Effectors <- split(sample(1:10000, sum(No_of_Effectors), replace=TRUE), rep(ID.Path, No_of_Effectors)) # Generate effectors and dish them out.
Effectors
And I've written a chunk which is d...