Displaying 2 results from an estimated 2 matches for "chrdata".
Did you mean:
chidata
2011 Aug 10
2
Loops for repetitive task
Hello,
I have an R script that I use as a template to perform a task for multiple
files (in this case, multiple chromosomes).
What I would like to do is to utilize a simple loop to parse through each
chromosome number so that I don't have to type the same code over and over
again in the R console.
I've tried using:
for(i in 1:22){
etc..
}
and replacing each chromosome number with
2011 Oct 28
0
Help with increasing the speed of script
I actually have two questions regarding the same script:
#################################################
data <- vector('list', 24)
splc <- vector('list',24)
df.summ <- vector('list',24)
for (i in 1:length(chrData))
{
data[[i]] <- read.table(file=paste('chr',i,'.nonCG.covered.out',sep=''),
header=F)
colnames(chrData[[i]])<-c("chr","start","end","tot","methy")
splc[[i]]<-split(data[[i]], paste(data[[i]]$chr, data[[i]]$s...