室间质评
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 11KB

il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
il y a 5 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. #中华家系1号标准物质室间质评报告系统分析流程
  2. > Author: Run Luyao
  3. >
  4. > E-mail:18110700050@fudan.edu.cn
  5. >
  6. > Git: http://choppy.3steps.cn/renluyao/Quality_control.git
  7. >
  8. > Last Updates: 30/8/2019
  9. ## 安装指南
  10. ```
  11. # 激活choppy环境
  12. source activate choppy
  13. # 安装app
  14. choppy install renluyao/Quality_control
  15. ```
  16. ## App概述——中华家系1号标准物质介绍
  17. 建立高通量全基因组测序的生物计量和质量控制关键技术体系,是保障测序数据跨技术平台、跨实验室可比较、相关研究结果可重复、数据可共享的重要关键共性技术。建立国家基因组标准物质和基准数据集,突破基因组学的生物计量技术,是将测序技术转化成临床应用的重要环节与必经之路,目前国际上尚属空白。中国计量科学研究院与复旦大学、复旦大学泰州健康科学研究院共同研制了人源中华家系1号基因组标准物质(**Quartet,一套4个样本,编号分别为LCL5,LCL6,LCL7,LCL8,其中LCL5和LCL6为同卵双胞胎女儿,LCL7为父亲,LCL8为母亲**),以及相应的全基因组测序序列基准数据集(“量值”),为衡量基因序列检测准确与否提供一把“标尺”,成为保障基因测序数据可靠性的国家基准。人源中华家系1号基因组标准物质来源于泰州队列同卵双生双胞胎家庭,从遗传结构上体现了我国南北交界的人群结构特征,同时家系的设计也为“量值”的确定提供了遗传学依据。
  18. 中华家系1号DNA标准物质的标称值包括高置信单核苷酸变异信息、高置信短插入缺失变异信息和77.9-78.1%的高置信参考基因组区。该系列标准物质可以用于评估基因组测序的性能,包括全基因组测序、全外显子测序、靶向测序,如基因捕获测序;还可用于评估测序过程和数据分析过程中对SNV和InDel检出的真阳性、假阳性、真阴性和假阴性水平,为基因组测序技术平台、实验室、相关产品的质量控制与性能验证提供标准物质和标准数据。
  19. 该Quality_control APP用于全基因组测序(whole-genome sequencing,WGS)数据的质量评估,包括原始数据质控、比对数据质控和突变检出数据质控。
  20. ## 流程与参数
  21. ![](./pictures/workflow.png)
  22. ###1. 原始数据质量控制
  23. #### [Fastqc](<https://www.bioinformatics.babraham.ac.uk/projects/fastqc/>)
  24. FastQC是一个常用的测序原始数据的质控软件,主要包括12个模块,具体请参考[Fastqc模块详情](<https://www.bioinformatics.babraham.ac.uk/projects/fastqc/Help/3%20Analysis%20Modules/>)。
  25. ```bash
  26. fastqc -t <threads> -o <output_directory> <fastq_file>
  27. ```
  28. #### [Fastq Screen](<https://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/>)
  29. Fastq Screen是检测测序原始数据中是否引⼊入其他物种,或是接头引物等污染,⽐比如,如果测序样本
  30. 是⼈人类,我们期望99%以上的reads匹配到⼈人类基因组,10%左右的reads匹配到与⼈人类基因组同源性
  31. 较⾼高的⼩小⿏鼠上。如果有过多的reads匹配到Ecoli或者Yeast,要考虑是否在培养细胞的时候细胞系被污
  32. 染,或者建库时⽂文库被污染。
  33. ````bash
  34. fastq_screen --aligner <aligner> --conf <config_file> --top <number_of_reads> --threads <threads> <fastq_file>
  35. ````
  36. `--conf` conifg 文件主要输入了多个物种的fasta文件地址,可根据自己自己的需求下载其他物种的fasta文件加入分析
  37. `--top`一般不需要对整个fastq文件进行检索,取前100000行
  38. ###2. 比对后数据质量控制
  39. #### [Qualimap](<http://qualimap.bioinfo.cipf.es/>)
  40. Qualimap是一个比对指控软件,包含Picard的MarkDuplicates的结果和sentieon中metrics的质控结果。
  41. ```bash
  42. qualimap bamqc -bam <bam_file> -outformat PDF:HTML -nt <threads> -outdir <output_directory> --java-mem-size=32G
  43. ```
  44. ###3. 突变检出数据质量控制
  45. #### [Hap.py](<https://github.com/Illumina/hap.py>)
  46. hap.py是将被检测vcf结果与benchmarking对比,计算precision和recall的软件,它考虑了vcf中[突变表示形式的多样性](<https://genome.sph.umich.edu/wiki/Variant_Normalization>),进行了归一化。
  47. ```bash
  48. hap.py <truth_vcf> <query_vcf> -f <bed_file> --threads <threads> -o <output_filename>
  49. ```
  50. #### [Jaccard index](<https://en.wikipedia.org/wiki/Jaccard_index>)
  51. Jaccard index是两个集合的交集除以两个集合的并集。这个计算用的是rtg-tools的vcfeval,它将两个vcf中的突变表示格式进行了统一,即两个看似不同的SNV或者INDEL实际上是指同一个突变,这种情况经常发生在重复区域。
  52. ```bash
  53. rtg vcfeval -b <one_vcf> -c <another_vcf> -o <output_directory> -t <sdf_file>
  54. ```
  55. `-t` sdf文件是rtg-tools专用的注释文件,由fasta文件转换来
  56. #### [VCF statistics](<https://github.com/RealTimeGenomics/rtg-tools>)
  57. 该计算用的是rtg-tools的vcfstats,对vcf中的SNV和INDEL的数目进行了统计。
  58. ```bash
  59. rtg vcfstats <vcf_file>
  60. ```
  61. ## App输入变量与输入文件
  62. 在安装了APP之后,输入一下命令得到需要准备的文件
  63. ```bash
  64. choppy samples Quality_control-latest --output qcsamples
  65. ```
  66. qcsamples文件
  67. ```bash
  68. inputJIpiarsFile,inputSamplesFile,sample_id
  69. oss://pgx-result/renluyao/inputJIpiarsFileExample.tsv,oss://pgx-result/renluyao/inputSamplesFileExamples.tsv,1
  70. ```
  71. **inputJIpiarsFile**是计算Jaccard index的输入文件,按以下格式进行准备
  72. ```bash
  73. #vcf1 #vcf2 #vcf1_vcf2
  74. oss://choppy-cromwell-result/test-choppy/wgs_quartettest_renluyao_0827/72f269f2-91b7-4fbe-bde7-99b2e1e3091c/call-Haplotyper/Fudan_DNA_LCL7_hc.vcf oss://choppy-cromwell-result/test-choppy/wgs_quartettest_renluyao_0827/7a72d0e6-302d-43ca-b6b0-daeaa0236d06/call-Haplotyper/Fudan_DNA_LCL5_hc.vcf LCL7_LCL5
  75. ```
  76. `vcf1`和` vcf2`是两个需要计算一致性的vcf文件的oss地址
  77. `vcf1_vcf2`是两个vcf文件名字的简单缩写,用于之后的数据分析
  78. **inputSamplesFile**是其他质控task的输入文件,按以下格式进行准备
  79. ```bash
  80. #fastq_read1 #fastq_read2 #bam #bai #vcf #sample_mark
  81. oss://chinese-quartet/quartet-test-data/fastqfiles/Fudan_DNA_LCL5_R1.fastq.gz oss://chinese-quartet/quartet-test-data/fastqfiles/Fudan_DNA_LCL5_R2.fastq.gz oss://choppy-cromwell-result/test-choppy/wgs_quartettest_renluyao_0827/7a72d0e6-302d-43ca-b6b0-daeaa0236d06/call-Dedup/Fudan_DNA_LCL5.sorted.deduped.bam oss://choppy-cromwell-result/test-choppy/wgs_quartettest_renluyao_0827/7a72d0e6-302d-43ca-b6b0-daeaa0236d06/call-Dedup/Fudan_DNA_LCL5.sorted.deduped.bam.bai oss://choppy-cromwell-result/test-choppy/wgs_quartettest_renluyao_0827/7a72d0e6-302d-43ca-b6b0-daeaa0236d06/call-Haplotyper/Fudan_DNA_LCL5_hc.vcf LCL5
  82. ```
  83. `fastq_read1`和`fastq_read2`是两个fastq文件的oss地址
  84. `bam`是bam文件的oss地址
  85. `bai`是bam文件的索引文件的oss地址
  86. `vcf`是vcf文件的地址
  87. `sample_mark`是标识测序数据的样本,可填写LCL5、LCL6、LCL7和LCL8
  88. **sample_id**是choppy app内置的识别标志,写1即可
  89. ## App输出文件
  90. ## 结果展示与解读
  91. GSEA结果解读示例:
  92. > ### 1. Enrichment score(ES)
  93. >
  94. > ES是GSEA最初的结果,反应全部杂交data排序后,在此序列top或bottom富集的程度。
  95. > ES原理:扫描排序序列,当出现一个功能集中的gene时,增加ES值,反之减少ES值,所以ES是个动态值。最终ES的确定是讲杂交数据排序序列所在位置定义为0,ES值定义为距离排序序列的最大偏差.
  96. > - ES为正,表示某一功能gene集富集在排序序列前方
  97. > - ES为负,表示某一功能gene集富集在排序序列后方。
  98. > 图中的最高点为此通路的ES值,中间表示杂交数据的排序序列。竖线表示此通路中出现的芯片数据集中的gene。
  99. >
  100. > ### 2. NES
  101. >
  102. > 由于ES是根据分析的数据集中的gene是否在一个功能gene set中出现来计算的,但各个功能gene set中包含的gene数目不同,且不同功能gene set与data之间的相关性也不同,因此,比较data set在不同功能gene set中的富集程度要对ES进行标准化处理,也就是NES
  103. > NES=某一功能gene set的ES/数据集所有随机组合得到的ES平均值
  104. > NES是主要的统计量。
  105. >
  106. > ### 3. FDR
  107. >
  108. > NES确定后,判断其中可能包含的错误阳性发现率。FDR=25%意味着对此NES的确定,4次可能错 1次。GSEA结果中,高亮显示FDR<25%的富集set。因为从这些功能gene中最可能产生有意义的假设,促进进一步研究。大多数情况下,选FDR<25%是合适的,但是,假如分析的芯片data set较少,选择的是探针随机组合而不是表型组合,若p不严格,那么应该选FDR<5%。一般而言,NES绝对值越大,FDR值就越小,说明富集程度高,结果可靠。
  109. >
  110. > ### 4. 名义p值 nominal p-value
  111. >
  112. > 描述的是针对某一功能gene子集得到的富集得分的统计显著性,显然,p越小,富集性越好。
  113. >
  114. > **以上4个参数中,只有FDR进行了功能gene子集大小和多重假设检验矫正,而p值没有,因此,如果结果中有一个高度富集的功能gene子集,而其有很小的名义p-value和大的FDR意味着富集并不显著。**
  115. >
  116. > 我的一个具体结果解读:
  117. >
  118. > > 92/681 gene sets are upregulated in PH
  119. > > 0 gene sets are significantly enriched at FDR<25%
  120. > > 1 gene sets are significantly enriched at n p-value <1%
  121. > > 1 gene sets are significantly enriched at n p-value <5%
  122. >
  123. > 在选择的BP中,有681个gene sets,92个PH中上调,其中75%的正确率支持0条子集上调,1个BP的gene表达上调名义p值<0.01。总体结果并不理想。
  124. >
  125. > ### 5. 备注
  126. >
  127. > #### GSEA富集结果太少说明:
  128. >
  129. > 无gene set被富集。可能是因为分析的样本太少,关注的生物信息太微弱,或正在分析的功能集不能很好代表你所关心的生物过程,但仍然可以看下top ranked gene sets,这些信息可能会为你的假说提供微弱的证据。当然也可以尝试考虑分析其他gene sets,或增加samples
  130. >
  131. > #### GSEA富集结果太多说明:
  132. >
  133. > 太多的功能子集被富集了。可能是因为很多的gene sets代表同一生物信号,这可以在gene sets中查看leading edge sbusets来查看。或者也可以查看具体区别进行加工,比如samples来自不同labs,操作者不一样等。
  134. ## CHANGELOG
  135. **Version 1.0 - Auguest 30, 2019**
  136. - 完成PGx常规质控流程的choppy APP
  137. ## FAQ
  138. **1. RNAseq和甲基化的质控流程?**
  139. 可查询multiqc支持的质控模块 <https://multiqc.info/docs/#multiqc-modules>
  140. RNAseq和甲基化的质控流程待完善
  141. **2. 如果样本没有技术重复,该APP中的inputJIpiarsFile是怎么输入的?**
  142. 在Version 1.0中暂时还没有考虑没有技术重复的问题,可输入姐妹、父母、父女、母女的配对,计算同卵双胞胎、亲属关系和陌生人之间基因突变位点的一致性。