Skip to content

Instantly share code, notes, and snippets.

View bibbers93's full-sized avatar

Lloyd bibbers93

  • Edinburgh
View GitHub Profile
@bibbers93
bibbers93 / DNA to RNA (T>U)
Created January 12, 2018 11:17
DNA to RNA, T>U
#dna to RNA
t <- "sequence given"
t1 <- strsplit(t, split = "") [[1]]
u <- character(length=0)
for(i in 1:length(t1)){
if(t1[i]=="A"){
u[i] <- c("A")
}
if(t1[i]=="T"){
u[i] <- c("U")