我有两个文件,我想执行一个grep,其中file1是模式。我想从file2中提取匹配file1中字符串的行。 file1中的字符串位于file2中的“Target.Gene”列中。我不知道如何使用此类型的图案使用模式的两个文件之间的grep
文件1
> head(a)
symbol
1 AGER
2 TCF21
3 CLDN5
4 CDH5
5 CA4
6 RAMP3
文件2
> head(MTI)
miRTarBase.ID miRNA Species..miRNA. Target.Gene Target.Gene..Entrez.ID. Species..Target.Gene.
1 MIRT006481 hsa-miR-181a-5p Homo sapiens DUSP6 1848 Homo sapiens
2 MIRT000002 hsa-miR-20a-5p Homo sapiens HIF1A 3091 Homo sapiens
3 MIRT000006 hsa-miR-146a-5p Homo sapiens CXCR4 7852 Homo sapiens
4 MIRT000006 hsa-miR-146a-5p Homo sapiens CXCR4 7852 Homo sapiens
5 MIRT006511 hsa-miR-200b-3p Homo sapiens RND3 390 Homo sapiens
6 MIRT006477 hsa-miR-328-3p Homo sapiens PTPRJ 5795 Homo sapiens
Experiments Support.Type References..PMID.
1 Luciferase reporter assay//Western blot Functional MTI 17382377
2 Luciferase reporter assay//Western blot//Northern blot//qRT-PCR Functional MTI 18632605
3 qRT-PCR//Luciferase reporter assay//Western blot Functional MTI 18568019
4 Microarray Functional MTI (Weak) 20375304
5 Luciferase reporter assay Functional MTI 20683643
6 qRT-PCR//Western blot Functional MTI 22564856