No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

readme.md 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. > Author : Zhihui Li
  2. >
  3. > E-mail:[18210700119@fudan.edu.cn](mailto:18210700119@fudan.edu.cn)
  4. >
  5. > Last Updates: 28/02/2020
  6. ## 简介
  7. HISAT+StringTie+Ballgown转录组分析流程主要根据2016年发表在Nature Protocols上的一篇名为Transcript-level expression analysis of RNA-seq experiments with HISAT, StringTie and Ballgown的文章撰写的,主要用到以下三个软件:[HISAT] (http://ccb.jhu.edu/software/hisat/index.shtml)利用大量FM索引,以覆盖整个基因组,能够将RNA-Seq的读取与基因组进行快速比对,相较于STAR、Tophat,该软件比对速度快,占用内存少;
  8. [StringTie](http://ccb.jhu.edu/software/stringtie/)能够应用流神经网络算法和可选的de novo组装进行转录本组装并预计表达水平。与Cufflinks等程序相比,StringTie实现了更完整、更准确的基因重建,并更好地预测了表达水平;[Ballgown] (https://github.com/alyssafrazee/ballgown)是R语言中基因差异表达分析的工具,能利用RNA-Seq实验的数据(StringTie, RSEM, Cufflinks)的结果预测基因、转录本的差异表达。`rnaseq`是用于 [Choppy-pipe](http://choppy.3steps.cn/) 系统使用的 APP。本APP能生成表达谱所需的Ballgown文件夹。
  9. 此版本较[rna-seq之前版本](http://choppy.3steps.cn/lizhihui/rna-seq.git)更新较多,故新建版本。较之前版本主要更新内容如下:
  10. 1.添加了生物信息学软件fastp作为数据预处理的工具,fastp可以快速的去掉接头,且速度较快,同时可以进行简单的质控分析
  11. 2.hisat软件会输出unmap的序列文件
  12. 3.samtools软件会输出ins_size的信息
  13. ## 快速安装及使用
  14. #### Requirements
  15. - Python 3
  16. - [choppy](http://choppy.3steps.cn/)
  17. - Ali-Cloud
  18. 在终端中输入以下命令即可快速安装本APP。
  19. ```bash
  20. 1.安装
  21. $ source activate choppy-py3
  22. $ choppy install lizhihui/rnaseq_fastp
  23. $ choppy apps
  24. 2.使用
  25. $ choppy samples rnaseq_fastp-latest --out Projectname_rnaseq_date_people.csv
  26. $ choppy batch rnaseq_fastp-latest Projectname_rnaseq_date_people.csv --project-name Projectname_rnaseq_date_people
  27. ```
  28. ## 使用方法
  29. ### 任务的准备
  30. 按照上述步骤安装成功之后,可以通过下面简单的命令即可使用APP:
  31. ```bash
  32. # Generate samples file
  33. $ choppy samples rna-seq-latest --out Projectname_rnaseq_date_people.csv
  34. ```
  35. `Projectname_fastqc_date_people.csv` 包含以下几个需要填写的参数:
  36. - 文件中必须包含的列为:
  37. - sample_id:样本名称,该名称将自动作为生成结果文件的前缀名
  38. - read1:原始FASTQ文件所在的OSS路径(仅R1)
  39. - read2:原始FASTQ文件所在的OSS路径(仅R2)
  40. - adapter_sequence:R1端需要去除的接头,根据实验室常使用的接头,不填则默认为AGATCGGAAGAGCACACGTCTGAACTCCAGTCA
  41. - adapter_sequence_r2:R2端需要去除的接头,根据实验室常使用的接头,不填则默认为AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT
  42. ```bash
  43. read1,read2,sample_id,adapter_sequence,adapter_sequence_r2
  44. # read1 双端测序数据的R1端在阿里云上的路径信息
  45. # read2 双端测序数据的R2端在阿里云上的路径信息
  46. # sample_id 每个样本任务的识别码。注意:同一个samples文件中,不同样本的ID应该不同
  47. # adapter_sequence R1端需要去除的接头,以"AGATC"的形式填写,可以不填,不填则为默认参数
  48. # adapter_sequence_r2 R2端需要去除的接头,以"AGATC"的形式填写,可以不填,不填则为默认参数
  49. ```
  50. ### 任务提交
  51. 在配置好`samples.csv` 文件后,使用以下命令可以提交计算任务:
  52. ```bash
  53. $ choppy batch rnaseq_fastp-latest Projectname_rnaseq_date_people.csv --project-name Projectname_rnaseq_date_people
  54. ```
  55. 提交成功后,即可在工作目录下找到生成的目录名为Projectname_rnaseq_date_people,里面包含了本次提交任务的所有样本信息。
  56. ### 任务输出
  57. 任务成功结束后,便可以在阿里云相应的OSS端生成相应的结果文件。包括数据产生的中间结果bam文件以及下游分析所需要的表达谱文件。
  58. ## APP流程概述
  59. ### 流程示意图
  60. ![image-20190828105109404](https://tva1.sinaimg.cn/large/00831rSTgy1gccdjk3sxvj30py0hwwqo.jpg)
  61. ​ 我们利用 HiSat2将高质量序列比对到人的参考基因组上,然后利用 Qualimap进行对比对质量评估。最后我们利用StringTie进行转录本重构和定量。使用Ballgown进行基因表达水平质量评估。
  62. ## 输出文件说明
  63. 运行APP后,
  64. 每个sample对应一个文件夹,内部结构如下:
  65. - call-fastp
  66. - <sample_id>.html 简单质控报告
  67. - <sample_id>.json
  68. - <sample_id>_R1.fastq.gz 去接头后R1端接头后的原始数据
  69. - <sample_id>_R2.fastq.gz 去接头后R2端接头后的原始数据
  70. - call-hisat2
  71. - <sample_id>.sam
  72. - <sample_id>_un.fq.1.gz R1端序列文件没有与人类基因组比对上的序列文件
  73. - <sample_id>_un.fq.2.gz R1端序列文件没有与人类基因组比对上的序列文件
  74. - call-samtools
  75. - <sample_id>.sorted.bam 用来存储reads到参考序列二进制格式的比对信息,可以用来进行比对质量分析(使用[qualimap APP](http://choppy.3steps.cn/huangyechao/qualimap)分析)
  76. - <sample_id>.sorted.bam.bai
  77. - <sample_id>.ins_size 分析ins_size的文件便于后续分析
  78. - call-stringtie
  79. - <sample_id>.cov.ref.gtf
  80. - ballgown 下载后可以用R进行转录组下游分析
  81. - <sample_id>.gene.abundance.txt 下载后可以用R进行转录组下游分析
  82. ## 软件版本及参数
  83. ### 软件版本
  84. 1. fastp:0.19.6
  85. 2. hisat2 :v2.1
  86. 3. samtools:v1.3.1
  87. 4. stringtie:v1.3.4
  88. ###使用参数
  89. 1. fastp.cluster: OnDemand bcs.a2.large img-ubuntu-vpc
  90. 2. hisat2.cluster: OnDemand bcs.a2.3xlarge img-ubuntu-vpc
  91. 3. samtools.cluster: OnDemand bcs.a2.large img-ubuntu-vpc
  92. 4. stringtie.cluster: OnDemand bcs.a2.large img-ubuntu-vpc
  93. 5. gtf:Homo_sapiens.GRCh38.93.gtf (oss://pgx-reference-data/reference/annotation/Homo_sapiens.GRCh38.93.gtf)
  94. 6. Index:hg38 (oss://pgx-reference-data/reference/hisat2/grch38_snp_tran/)
  95. ## 参考文献
  96. [1]Pertea M , Kim D , Pertea G M , et al. Transcript-level expression analysis of RNA-seq experiments with HISAT, StringTie and Ballgown[J]. Nature Protocols, 2016, 11(9):1650-1667.
  97. [2]Shifu Chen, Yanqing Zhou, Yaru Chen, Jia Gu; fastp: an ultra-fast all-in-one FASTQ preprocessor, Bioinformatics, Volume 34, Issue 17, 1 September 2018, Pages i884–i890, https://doi.org/10.1093/bioinformatics/bty560