Question: Process multiples files
3.7 years ago by
Lila M • 820
Lila M • 820 wrote:
Hi everyone, I'm new using R and I have a doubt, I have this code for make peak annotation from a bed file (narrowPeak)
peak <- readPeakFile("file", header=F) peakpeakAnno <- annotatePeak(peak, tssRegion=c(-3000, 3000), TxDb=txdb, annoDb="org.Hs.eg.db") write.table(peakAnno,"new_name", sep="\t", col.names=T, row.names = F)
The code works, but I would like to know how I can create a loop that processes more than one bed file.
ADD COMMENT • link •