Deleted:DESEQ- developmental stages
1
0
Entering edit mode
Demy • 0
@630e2dce
Last seen 21 months ago
Greece

Hello,

I have data from mrna sequencing and total rna sequencing of t cell developmental stages. I made a combined table with the counts for each stage and protocol and i want to do deg on them. Although I dont know how to form the LRT test.


# library(data.table)

htseq_count <- fread("quantification_merged.tsv", header=FALSE)

htseq_count <- htseq_count[1:(nrow(htseq_count)-5), ]

metadata <- fread("metadata.tsv", header=FALSE)
names(metadata) <- c("Run", "Condition", "Type")

names(htseq_count) <- c("ENSG", "GENE", metadata$Run)

countdata <- htseq_count[ ,3:(ncol(htseq_count))]
countdata <- as.data.frame(countdata)
rownames(countdata) <- htseq_count$ENSG
colnames(countdata) <- metadata$Run

metadata$Condition <- factor(metadata$Condition)
metadata$Type <- factor(metadata$Type)


library(DESeq2)
dds <- DESeqDataSetFromMatrix(countData = countdata,
                              colData = metadata,
                              design = ~ Condition + Type)

dds 

smallestGroupSize <- 3
keep <- rowSums(counts(dds) >= 10) >= smallestGroupSize
dds <- dds[keep, ]
sessionInfo( )
DESeq2 • 692 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1143 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6