So I output a matrix from DiffBind as my input into DESeq2, with the chromosome positions being removed from the count matrix, just leaving the first column key as a reference followed by the counts in all the replicates in the matrix:
dds<-DESeqDataSetFromMatrix(countData = countData, colData = colData, design = ~ sex + treatment)
Following this I ran DESeq2 and have output the results as follows:
write.csv(as.data.frame(results), file="results.csv")
Now this of course is a limited list by LFC and adjusted p-val so I was wondering how I can remap this list to the original matrix output from DiffBind so I can recover the chromosome positions since this contains only the key.
Thanks!
I guess another way to look at is how to from the following results recover the associated countData?