hi,

i have a correlation matrix of genes but i am going to remove alphabet from rows and columns to prepare my file for matlb i did like below

    > mycounts <- read.table("tmatnorm_rld500.txt", header = T, sep = "\t", row.names=1)
    > head(mycounts[,1:3])
              AT1G01060 AT1G01170 AT1G01180
    AT1G01060 1.0000000 0.3193360 0.6272994
    AT1G01170 0.3193360 1.0000000 0.3178880
    AT1G01180 0.6272994 0.3178880 1.0000000
    AT1G01260 0.2658624 0.3588030 0.2542234
    AT1G01380 0.6178751 0.1561297 0.7052692
    AT1G01490 0.5990499 0.6129301 0.6424225
    > rownames(mycounts) <- NULL
    > head(mycounts[,1:3])
         AT1G01060 AT1G01170 AT1G01180
    [1,] 1.0000000 0.3193360 0.6272994
    [2,] 0.3193360 1.0000000 0.3178880
    [3,] 0.6272994 0.3178880 1.0000000
    [4,] 0.2658624 0.3588030 0.2542234
    [5,] 0.6178751 0.1561297 0.7052692
    [6,] 0.5990499 0.6129301 0.6424225
    > colnames(mycounts) <- NULL
    >
    > head(mycounts[,1:3])
              [,1]      [,2]      [,3]
    [1,] 1.0000000 0.3193360 0.6272994
    [2,] 0.3193360 1.0000000 0.3178880
    [3,] 0.6272994 0.3178880 1.0000000
    [4,] 0.2658624 0.3588030 0.2542234
    [5,] 0.6178751 0.1561297 0.7052692
    [6,] 0.5990499 0.6129301 0.6424225
    
    > write.table(mycounts, file = "correlation.txt", dec = ".", sep = "\t", quote = FALSE, row.names=F)
    > mycounts <- read.table("correlation.txt", header = T, sep = "\t")
    > head(mycounts[,1:3])
             V1        V2        V3 <---this line
    1 1.0000000 0.3193360 0.6272994
    2 0.3193360 1.0000000 0.3178880
    3 0.6272994 0.3178880 1.0000000
    4 0.2658624 0.3588030 0.2542234
    5 0.6178751 0.1561297 0.7052692
    6 0.5990499 0.6129301 0.6424225

but as you consider, i have something in colnames?? then how I can get rid of alphabet and only have the similarity values please?

thank you
    write.table(m,file="outfile,txt",sep="\t", col.names = F, row.names = F)
