thanks arta for the contribution ... but this not what I want actually
• 0 views
•
link
Hello Guy, I have deseq2 table with differentially expressed genes. I would like to extract the log2FC as well as raw counts for 5 genes That are flanking my gene of interest to use them for heatmap .. can anyone help?
dds <- DESeq(dds)
res <- results(dds)
res is the data frame where you can find log2FC in second column res[,2] and rownames are genes.
dds <- DESeqDataSetFromMatrix(countData = cts,
colData = coldata,
design = ~ condition)
The counts are stored in countData.
thanks arta for the contribution ... but this not what I want actually
Log in to answer this question.
Sure.
closestfeaturegrepforlog2FCfrom DESeq2 resultsor
grepforlog2FCfrom DESeq2 resultsthanks much venu ... but there is no shortcut to do this task?
If you know the names of those genes then fish them out of the results object (which can be written to a file).
Thanks Genomax .. I was just thinking of direct way to fetch the names of those genes then extract the expression values .. I will do it manually ... thanks once more
Both of them takes <5 min to complete the task. I can't think of any other shortcut.