สรุปขั้นตอน RNA-Seq DE workflow
หมายเหตุ: แบบฝึกหัดนี้อาจใช้เวลาโหลดนานกว่าปกติเล็กน้อย
มาลองรัน DESeq2 workflow โดยใช้ชุดข้อมูลเต็มรูปแบบที่มีทั้งตัวอย่าง wildtype และ smoc2 overexpression รวมอยู่ด้วย เราได้โหลดไลบรารี DESeq2 และ dplyr พร้อมทั้งอ่านไฟล์ metadata ชื่อ all_metadata และไฟล์ raw counts ชื่อ all_rawcounts ไว้ให้แล้ว

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
RNA-Seq ด้วย Bioconductor ใน R
คำแนะนำการฝึกหัด
- ตรวจสอบว่าลำดับของตัวอย่างใน
all_rawcountsและall_metadataตรงกัน โดยใช้ฟังก์ชันrownames(),colnames(),all()และ operator%in% - สร้าง DESeq2 object โดยใช้ design ที่เหมาะสม เพื่อทดสอบผลของ
conditionขณะที่ควบคุมตัวแปรgenotype - สร้าง DESeq2 object โดยใช้ design ที่เหมาะสม ควบคุม
genotypeและconditionแยกกัน แต่ทดสอบ interaction termgenotype:condition
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Check that all of the samples are in the same order in the metadata and count data
all(___(___) %in% ___(___))
# DESeq object to test for the effect of fibrosis regardless of genotype
dds_all <- DESeqDataSetFromMatrix(countData = ___,
colData = ___,
design = ___)
# DESeq object to test for the effect of genotype on the effect of fibrosis
dds_complex <- DESeqDataSetFromMatrix(countData = ___,
___,
___)