I have a set of NGS data, that barcoded from B1 to B12, each one of the codes represents one sample.
I need to apply analysis/calculation on these samples and I often find myself writing multiple lines, for example, convert multiple tables to multiple data.frames using the following:
B1.frame = as.data.frame(B1)
B2.frame = as.data.frame(B2)
B12.frame = as.data.frame(B12)
I tried to use for loop to simply the codes, but it didn't work. Is there a way to use a loop so that I don't need to write 12 lines all the time while processing files with 'B1-B12' in the filename.
This is not quite Bioconductor related and I couldn't work it out simply because I am a newbie. It would be great if someone can help, especially I need to use 96 barcodes in the future.