MeMe——motif 分析

peakf=./peak.narrowPeak
genomef=./GRCh38.primary_assembly.genome.fa

sort -k8,8nr ${peakf} | head -n 500 | awk -v OFS="\t" '{print $1,$2+$10,$2+$10+1}' >summit.bed #按照peak強(qiáng)度排序统捶,進(jìn)選取前500個的summit坐標(biāo)

awk -v OFS="\t" '{print $1,$2-50,$3+50}' summit.bed | awk '$2>=0' >summit.l50.r50.bed #根據(jù)summit坐標(biāo),前后50bp链蕊,生成新的坐標(biāo)。

#bedtools getfasta -fi ${genomef} -bed summit.l50.r50.bed >summit.l50.r50.fa #提取序列

download motif database 下載motif的database

wget http://meme-suite.org/meme-software/Databases/motifs/motif_databases.12.19.tgz
tar -xzf motif_databases.12.19.tgz

運行MEME-CHIP

image.png
#meme-chip -o summit.l50.r50.meme-chip -db ./motif_databases/JASPAR/JASPAR2018_CORE_vertebrates_non-redundant.meme -seed 10 -ccut 0 summit.l50.r50.fa

-o summit.l50.r50.meme-chip: Specifies the name of the output directory that will contain the results of the MEME-ChIP analysis.

-db ./motif_databases/JASPAR/JASPAR2018_CORE_vertebrates_non-redundant.meme: Specifies the motif database to use for the analysis. In this case, it's the JASPAR 2018 CORE vertebrates non-redundant database.
-seed 10: Sets the random seed for the analysis to 10. This can be useful for reproducibility of the analysis.

-ccut 0: Specifies the E-value cutoff for the discovered motifs. A lower value means more stringent filtering of the motifs, but may result in fewer significant motifs.

summit.l50.r50.fa: Specifies the input sequence file in FASTA format, which in this case is summit.l50.r50.fa. This file contains the sequences of the ChIP-seq peaks.

The output of the MEME-ChIP analysis will be stored in the summit.l50.r50.meme-chip directory.

尋找同源的已知motif

tomtom -m 0 -oc summit.l50.r50.meme-chip.motif0.tomtom -min-overlap 5 -bfile ./summit.l50.r50.meme-chip/background ./summit.l50.r50.meme-chip/combined.meme motif_databases/HUMAN/HOCOMOCOv11_core_HUMAN_mono_meme_format.meme

tomtom·: The command to run the TOMTOM tool.
-m 0: used to specify the query motifs to use in the analysis. If you have a specific motif ID that you want to use as the query, you can specify it using this option.

-oc summit.l50.r50.meme-chip.motif0.tomtom: Specifies the name of the output file to be generated, which will contain the TOMTOM results.
-min-overlap 5: Specifies the minimum number of overlapping positions required between the query and target motifs in order for a match to be considered.
-bfile ./summit.l50.r50.meme-chip/background: Specifies the file containing the background model frequencies to be used for the comparison.
./summit.l50.r50.meme-chip/combined.meme: Specifies the file containing the motifs to be compared against the given database.
motif_databases/HUMAN/HOCOMOCOv11_core_HUMAN_mono_meme_format.mem: Specifies the location of the motif database to be used for comparison. In this case, the HOCOMOCOv11 database for human is being used.

image.png

尋找motif在染色體上的位置篷牌。

bedtools getfasta -fi ${genomef} -bed $peakf > peak.fa

fimo --parse-genomic-coord --oc summit.l50.r50.meme-chip.motif0.fimo --bgfile summit.l50.r50.meme-chip/background --motif 0 ./summit.l50.r50.meme-chip/combined.meme peak.fa

This command runs FIMO, a tool that searches for occurrences of known motifs in DNA sequences.
Here is what each option in the command does:

--parse-genomic-coord: This option instructs FIMO to parse the genomic coordinates in the FASTA file.
--oc summit.l50.r50.meme-chip.motif0.fimo: This option sets the output directory and prefix for the FIMO output files.
--bgfile summit.l50.r50.meme-chip/background: This option specifies the background model file for the motif search. This file contains the nucleotide frequencies of the genome background and is used to calculate the significance threshold for motif matches.
--motif` 0: This option specifies which motif to search for. In this case, the motif is specified by its index, which is 0.
./summit.l50.r50.meme-chip/combined.meme: This is the input motif file. It contains one or more motifs in the MEME format.
peak.fa: This is the input sequence file. It contains the sequences to search for motif matches.

參考:基因課------表觀基因組學(xué)之 ChIP-seq 數(shù)據(jù)分析

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子跨琳,更是在濱河造成了極大的恐慌,老刑警劉巖桐罕,帶你破解...
    沈念sama閱讀 216,372評論 6 498
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件脉让,死亡現(xiàn)場離奇詭異郑什,居然都是意外死亡刁赦,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,368評論 3 392
  • 文/潘曉璐 我一進(jìn)店門抑诸,熙熙樓的掌柜王于貴愁眉苦臉地迎上來薪伏,“玉大人滚澜,你說我怎么就攤上這事〖藁常” “怎么了设捐?”我有些...
    開封第一講書人閱讀 162,415評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長塘淑。 經(jīng)常有香客問我萝招,道長,這世上最難降的妖魔是什么存捺? 我笑而不...
    開封第一講書人閱讀 58,157評論 1 292
  • 正文 為了忘掉前任槐沼,我火速辦了婚禮,結(jié)果婚禮上捌治,老公的妹妹穿的比我還像新娘岗钩。我一直安慰自己,他們只是感情好肖油,可當(dāng)我...
    茶點故事閱讀 67,171評論 6 388
  • 文/花漫 我一把揭開白布凹嘲。 她就那樣靜靜地躺著,像睡著了一般构韵。 火紅的嫁衣襯著肌膚如雪周蹭。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,125評論 1 297
  • 那天疲恢,我揣著相機(jī)與錄音凶朗,去河邊找鬼。 笑死显拳,一個胖子當(dāng)著我的面吹牛棚愤,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 40,028評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼宛畦,長吁一口氣:“原來是場噩夢啊……” “哼瘸洛!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起次和,我...
    開封第一講書人閱讀 38,887評論 0 274
  • 序言:老撾萬榮一對情侶失蹤反肋,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后踏施,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體石蔗,經(jīng)...
    沈念sama閱讀 45,310評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,533評論 2 332
  • 正文 我和宋清朗相戀三年畅形,在試婚紗的時候發(fā)現(xiàn)自己被綠了养距。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 39,690評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡日熬,死狀恐怖棍厌,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情竖席,我是刑警寧澤定铜,帶...
    沈念sama閱讀 35,411評論 5 343
  • 正文 年R本政府宣布,位于F島的核電站怕敬,受9級特大地震影響揣炕,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜丁恭,卻給世界環(huán)境...
    茶點故事閱讀 41,004評論 3 325
  • 文/蒙蒙 一牲览、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧庸毫,春花似錦利花、人聲如沸蔫慧。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽侮繁。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間品抽,已是汗流浹背腔稀。 一陣腳步聲響...
    開封第一講書人閱讀 32,812評論 1 268
  • 我被黑心中介騙來泰國打工炕淮, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留币叹,地道東北人嚼鹉。 一個月前我還...
    沈念sama閱讀 47,693評論 2 368
  • 正文 我出身青樓赐稽,卻偏偏與公主長得像寓落,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,577評論 2 353

推薦閱讀更多精彩內(nèi)容