search for: splittingallele

Displaying 1 result from an estimated 1 matches for "splittingallele".

2012 Jan 12
0
data manipulation
...separate column V4 by "/". This was a bit trickier, seeing as some rows are longer than others, but I managed to do it with this code. Probably a really lousy way to do it, but it worked. (Don't pay too much attention to the column numbers, my original file has more columns) splittingAllele <- function(y) { #####Splitting Column 4 in Variant and Normal Allele r <- strsplit(y$V4, "/") d <- NULL d <- as.list(d) for (x in 1:length(r)) { d <- rbind(d, r[[x]][length(r[[x]])]) } d <- as.chara...