Statquest筆記3—DEseq2 (No.60)

Tow main problems in library normalization

Problem1 Adjusting for differences in library sizes

Problem1

Problem2 Adjusting for differences in library composition

Problem2

We’ll start with a small dataset to illustrate how DESeq2 scales the different samples.
The goal is to calculate a scaling for each sample. The scaling factor has to take read depth and library coposition into account.

Step 1 Take the log of all values

Step1

Step 2 Average Each Row

Step2

One thing cool about the average of log values is that this average is not easily swayed by outliers. Averages calculated with logs are called “Geometric Averages”.

Step 3 Filter out Genes with Infinity

In general, this step filters out genes with zero read counts in one or more samples.
In theory, this helps focus the scaling factors on the house keeping genes

Step4

Step 5 Calculate the median of the ratios for each sample

Step5

Step 6 Convert the medians to “normal numbers” to get the final scaling factors for each sample

The median values are exponents for e.

Step 7 Divide the original read counts by the scaling factors

Step7

Summary of DESeq2’s Library Size Scaling Factor

Logs eliminate all genes that are only transcribed in one sample type (liver vs. spleen). They also help smooth over outlier read counts (via the Geometric Mean).
The median further downplays genes that soak up a lot of the reads, putting more emphasis on moderately expressed genes.

?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市它碎,隨后出現(xiàn)的幾起案子函荣,更是在濱河造成了極大的恐慌显押,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,039評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件傻挂,死亡現(xiàn)場離奇詭異乘碑,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)金拒,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,426評論 3 395
  • 文/潘曉璐 我一進(jìn)店門兽肤,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人绪抛,你說我怎么就攤上這事资铡。” “怎么了幢码?”我有些...
    開封第一講書人閱讀 165,417評論 0 356
  • 文/不壞的土叔 我叫張陵笤休,是天一觀的道長。 經(jīng)常有香客問我蛤育,道長宛官,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,868評論 1 295
  • 正文 為了忘掉前任瓦糕,我火速辦了婚禮,結(jié)果婚禮上腋么,老公的妹妹穿的比我還像新娘咕娄。我一直安慰自己,他們只是感情好珊擂,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,892評論 6 392
  • 文/花漫 我一把揭開白布圣勒。 她就那樣靜靜地躺著,像睡著了一般摧扇。 火紅的嫁衣襯著肌膚如雪圣贸。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,692評論 1 305
  • 那天扛稽,我揣著相機(jī)與錄音吁峻,去河邊找鬼。 笑死在张,一個(gè)胖子當(dāng)著我的面吹牛用含,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播帮匾,決...
    沈念sama閱讀 40,416評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼啄骇,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了瘟斜?” 一聲冷哼從身側(cè)響起缸夹,我...
    開封第一講書人閱讀 39,326評論 0 276
  • 序言:老撾萬榮一對情侶失蹤痪寻,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后虽惭,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體槽华,經(jīng)...
    沈念sama閱讀 45,782評論 1 316
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,957評論 3 337
  • 正文 我和宋清朗相戀三年趟妥,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了猫态。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,102評論 1 350
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡披摄,死狀恐怖亲雪,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情疚膊,我是刑警寧澤义辕,帶...
    沈念sama閱讀 35,790評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站寓盗,受9級特大地震影響灌砖,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜傀蚌,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,442評論 3 331
  • 文/蒙蒙 一基显、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧善炫,春花似錦撩幽、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,996評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至艺谆,卻和暖如春榨惰,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背静汤。 一陣腳步聲響...
    開封第一講書人閱讀 33,113評論 1 272
  • 我被黑心中介騙來泰國打工琅催, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人撒妈。 一個(gè)月前我還...
    沈念sama閱讀 48,332評論 3 373
  • 正文 我出身青樓恢暖,卻偏偏與公主長得像,于是被迫代替她去往敵國和親狰右。 傳聞我的和親對象是個(gè)殘疾皇子杰捂,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,044評論 2 355