i try to name the dataframe coloumns with some names, but im unable to name the columns .. I tried with al conventional methods of naming like use of colnames() colnames =()
, if some one know it please help me
GC_content7 <- function(fasta_file){
library("seqinr")
x <- read.fasta(file = fasta_file)
tt<-function(x){
res<-GC(x)
val=round(res,4)
return(val)
}
f_res<-lapply(x,tt)
s=data.frame(f_res)
w=t(s)
return(w)