Тёмный

Microarray normalization, fitting and annotation using R! 

Marcos Morgan
Подписаться 84
Просмотров 98
50% 1

In this video, I explain the basics of analyzing Affymetrix microarray datasets using R markdown and the limma package.
The example is for a single-channel Affy microarray chip to analyze gene expression differences between two conditions.
Here is the link to the annotation data: www.thermofisher.com/us/en/ho...
Here is the script:
title: "Arrays data"
library(tidyverse)
library(limma)
library(oligo)
pd = read.AnnotatedDataFrame("pdata.txt")
affyData = read.celfiles(rownames(pData(pd)))
eset = rma(affyData, target="core")
expres_eset = exprs(eset)
Type = as.factor(pd$type)
design = model.matrix(~0+Type)
colnames(design) = levels(Type)
fit = lmFit(expres_eset, design)
contrast.matrix = makeContrasts(contrasts = "exp-ctl", levels=design)
fit2 = eBayes(contrasts.fit(fit, contrast.matrix))
allstats = topTable(fit2, number=nrow(expres_eset))
annotation = read.table("MoGene-2_0-st-v1.na36.mm10.transcript.csv",
sep=",", header=TRUE,
row.names=1,as.is=TRUE)
simple = annotation %% filter(Status == "protein_coding")
filtered = expres_eset[as.character(simple$probeset_id),]
fit = lmFit(filtered, design)
fit2 = eBayes(contrasts.fit(fit, contrast.matrix))
allstats = topTable(fit2, number=nrow(filtered))
allstats = allstats %% mutate(probeset_id = as.integer(rownames(allstats)))
ids = simple %% select(probeset_id, GeneName, GeneDesc, Status)
allstats = allstats %% left_join(ids) %%
relocate(probeset_id, GeneName, GeneDesc, Status)
filtered = as.data.frame(filtered) %%
mutate(probeset_id = rownames(filtered)) %%
relocate(probeset_id)

Наука

Опубликовано:

 

22 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@ShaimaaGamalGahin
@ShaimaaGamalGahin 10 дней назад
can you do a survival analysis with microarray data tutorial?
@MorganMarcos
@MorganMarcos 10 дней назад
Hi, Shaimaa. Thanks for the suggestion. Unfortunately, I am not very familiar with survival analysis.
Далее
Clean your data with R.   R programming for beginners.
27:31
Советы на всё лето 4
00:23
Просмотров 353 тыс.
🔴Ютуб закрывают... Пока?
00:39
Просмотров 1,2 млн
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Learn R in 39 minutes
38:56
Просмотров 624 тыс.
Water powered timers hidden in public restrooms
13:12
Просмотров 651 тыс.
All Learning Algorithms Explained in 14 Minutes
14:10
Просмотров 206 тыс.
How I'd Learn Data Analytics in 2024 | 3 Month Plan
11:42
How to analyze GEO data in R?
19:26
Просмотров 22 тыс.