Mercurial > repos > davidvanzessen > shm_csr
view change_o/define_clones.r @ 89:3c9d4d976c47 draft
"planemo upload commit 8b702d0cf8f2355307eb8f95989f3d2488b2c963"
author | rhpvorderman |
---|---|
date | Fri, 05 Nov 2021 13:41:03 +0000 |
parents | c33d93683a09 |
children |
line wrap: on
line source
args <- commandArgs(trailingOnly = TRUE) input=args[1] output=args[2] change.o = read.table(input, header=T, sep="\t", quote="", stringsAsFactors=F) freq = data.frame(table(change.o$CLONE)) freq2 = data.frame(table(freq$Freq)) freq2$final = as.numeric(freq2$Freq) * as.numeric(as.character(freq2$Var1)) names(freq2) = c("Clone size", "Nr of clones", "Nr of sequences") write.table(x=freq2, file=output, sep="\t",quote=F,row.names=F,col.names=T)