Displaying 1 result from an estimated 1 matches for "filterdgen".
Did you mean:
filtergen
2009 Mar 02
2
R-code help for filtering with for loop
...;-datax[,1:6]
filtered<-vector()
for(i in 1:(dim(filter)[1]))
{
for(j in 1:(dim(filter)[2]))
{
x=(filter[i,j])>=64
filtered[i]<-x
}
}
# summing the result of the above
sum(filtered)
which(filtered)
z<-which(filtered)
filereddata<-filter[z,]
write.table(filtereddata,file ="filterdgenes.txt",quote = TRUE, sep = "\t ",
dec = ".",row.names=T,col.names = NA, qmethod = c (escape",
"double"))
---------------------------
There is something is missing in my coding therefore the filteration is done
according to the value of the last...