|
4 | 4 |
|
5 | 5 | ## install conda, Docker and SingularityCE |
6 | 6 |
|
7 | | -To build the complex clindet analysis environment, you need install |
| 7 | +To build the complex Clindet analysis environment, you need to install Conda, Docker, and SingularityCE. |
8 | 8 |
|
9 | 9 | ## Install Clindet |
10 | | - |
11 | 10 | ### clone clindet from github |
12 | 11 |
|
13 | 12 | ```bash |
14 | | -git clone clindet.git |
| 13 | +git clone https://github.com/zyllifeworld/clindet.git |
15 | 14 | cd clindet |
16 | 15 | ``` |
17 | | -## Download and config Clindet pre-built singularity Image |
18 | | -### Download from zendo |
19 | | - |
20 | | -1. cgpindel |
21 | | -2. caveman |
22 | | -3. brass |
23 | | -4. freec |
24 | | -5. cgpwgs |
25 | | -6. ascat |
26 | | -7. arriba |
27 | | -8. lofreq |
28 | | -9. muse |
29 | | -10. gridss |
30 | | -11. hmftools |
31 | | -12. conpair |
32 | | - |
33 | | - |
34 | | -### config image path in config.yaml |
35 | | - |
36 | | - |
37 | | -## Download and config Genome refernce file (eg, human b37) |
38 | | - |
39 | | -clindet 参考GATK最佳实践的方法对测序fastq文件进行预处理。使用者可以从GATK的网站下载所需的文件,具体可参照[GATK Resource bundle](https://gatk.broadinstitute.org/hc/en-us/articles/360035890811-Resource-bundle)。包括fasta,GTF文件等。在clindet中,我们提供了人类基因组版本b37各文件的下载脚本用于自动下载,具体步骤如下: |
40 | | - |
41 | | -### 软件安装 |
42 | | - |
43 | | -* **conda 环境 gsutils安装与配置** |
44 | | - |
45 | | -```bash |
46 | | -conda env create -f env/gsutils.yaml |
47 | | -conda activate gsutils |
48 | | -``` |
49 | | - |
50 | | -* **conda 环境 clindet 安装与配置** |
51 | | - |
52 | | -```bash |
53 | | -conda env create -f env/clindet.yaml |
54 | | -conda activate clindet |
55 | | -``` |
56 | | - |
57 | | -* **下载并安装GATK** |
58 | | - |
59 | | -参照[GATK官网](https://github.com/broadinstitute/gatk)的说明进行GATK Toolkit的安装与配置,建议将该软件安装到家目录下的softwares文件夹中 |
60 | | - |
61 | | -* **下载并安装picard** |
62 | | - |
63 | | -参照[picard官网](https://broadinstitute.github.io/picard/)进行picard软件的安装与配置 |
64 | | - |
65 | | -### download B37 |
66 | | - |
67 | | -On folder clindet, make a folder to store genome fastq and other files for b37 |
68 | | - |
69 | | -```bash |
70 | | -mkdir -p reference/human/b37 |
71 | | -cd reference/human/b37 |
72 | | -``` |
73 | | - |
74 | | -using following scripts to download files |
75 | | - |
76 | | -```bash |
77 | | -gsutil -m cp -r \ |
78 | | - "gs://gcp-public-data--broad-references/hg19/v0/1000G_omni2.5.b37.vcf.gz" \ |
79 | | - "gs://gcp-public-data--broad-references/hg19/v0/1000G_omni2.5.b37.vcf.gz.tbi" \ |
80 | | - "gs://gcp-public-data--broad-references/hg19/v0/1000G_phase1.snps.high_confidence.b37.vcf.gz" \ |
81 | | - "gs://gcp-public-data--broad-references/hg19/v0/1000G_phase1.snps.high_confidence.b37.vcf.gz.tbi" \ |
82 | | - "gs://gcp-public-data--broad-references/hg19/v0/1000G_reference_panel" \ |
83 | | - "gs://gcp-public-data--broad-references/hg19/v0/Axiom_Exome_Plus.genotypes.all_populations.poly.vcf.gz" \ |
84 | | - "gs://gcp-public-data--broad-references/hg19/v0/Axiom_Exome_Plus.genotypes.all_populations.poly.vcf.gz.tbi" \ |
85 | | - "gs://gcp-public-data--broad-references/hg19/v0/ExomeContam.vcf" \ |
86 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.cdna.all.fa" \ |
87 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.cds.all.fa" \ |
88 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.cloud_references.json" \ |
89 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.contam.UD" \ |
90 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.contam.V" \ |
91 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.contam.bed" \ |
92 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.contam.mu" \ |
93 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.dbsnp138.vcf" \ |
94 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.dbsnp138.vcf.idx" \ |
95 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard0.tsv" \ |
96 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard1.tsv" \ |
97 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard10.tsv" \ |
98 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard11.tsv" \ |
99 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard2.tsv" \ |
100 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard3.tsv" \ |
101 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard4.tsv" \ |
102 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard5.tsv" \ |
103 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard6.tsv" \ |
104 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard7.tsv" \ |
105 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard8.tsv" \ |
106 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.delly_exclusionRegions.shard9.tsv" \ |
107 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.dict" \ |
108 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta" \ |
109 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.64.amb" \ |
110 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.64.ann" \ |
111 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.64.bwt" \ |
112 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.64.pac" \ |
113 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.64.sa" \ |
114 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.alt" \ |
115 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.amb" \ |
116 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.ann" \ |
117 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.bwt" \ |
118 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.fai" \ |
119 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.pac" \ |
120 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.rbwt" \ |
121 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.rpac" \ |
122 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.rsa" \ |
123 | | - "gs://gcp-public-data--broad-references/hg19/v0/Homo_sapiens_assembly19.fasta.sa" \ |
124 | | - . |
125 | | - |
126 | | -gsutil -m cp \ |
127 | | - "gs://gatk-best-practices/somatic-b37/Mutect2-WGS-panel-b37.vcf" \ |
128 | | - "gs://gatk-best-practices/somatic-b37/Mutect2-WGS-panel-b37.vcf.idx" \ |
129 | | - "gs://gatk-best-practices/somatic-b37/Mutect2-exome-panel.vcf" \ |
130 | | - "gs://gatk-best-practices/somatic-b37/Mutect2-exome-panel.vcf.idx" \ |
131 | | - . |
132 | | - |
133 | | - |
134 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/Mills_and_1000G_gold_standard.indels.b37.vcf.gz |
135 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/Mills_and_1000G_gold_standard.indels.b37.vcf.gz.md5 |
136 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase1.indels.b37.vcf.gz |
137 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase1.indels.b37.vcf.gz.md5 |
138 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase1.snps.high_confidence.b37.vcf.gz |
139 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase1.snps.high_confidence.b37.vcf.gz.md5 |
140 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/hapmap_3.3.b37.vcf.gz |
141 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/hapmap_3.3.b37.vcf.gz.md5 |
142 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_omni2.5.b37.vcf.gz |
143 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_omni2.5.b37.vcf.gz.md5 |
144 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase3_v4_20130502.sites.vcf.gz |
145 | | -wget -c ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/b37/1000G_phase3_v4_20130502.sites.vcf.gz.md5 |
146 | | - |
147 | | -``` |
148 | | - |
149 | | -## Resource bundle |
150 | | - |
151 | | -## edit config file |
152 | | - |
153 | | -config文件主要用来包括三大部分参数的配置,可以在包括 |
154 | | - |
155 | | -* Resource |
156 | | - 用来记录各版本参考基因组的fasta, GTF,Panel of Normal文件的绝对路径信息 |
157 | | -* softwares |
158 | | - 用来记录分析软件的绝对路径,conda环境,参数等信息 |
159 | | -* singularity |
160 | | - 用来记录singularity封装容器的绝对路径与运行参数 |
161 | | - |
162 | | -以b37版本为例,在使用下载[下载脚本](#download B37)下载参考基因组后(也可以使用其他方法自行从GATK中下载),首先需要在workflow/config文件夹中创建config.yaml文件(以该文件夹下的config_local_test.yaml作为模版),在resource section进行如下配置: |
163 | | - |
164 | | -```yaml |
165 | | -resources: |
166 | | - b37: |
167 | | - REFFA: "/Your_file_path/reference/b37/Homo_sapiens_assembly19.fasta" |
168 | | - GENOME_BED: "" |
169 | | - GTF: "" |
170 | | - WES_PON: "/Your_file_path/reference/b37/Mutect2-exome-panel.vcf" |
171 | | - WES_BED: "" |
172 | | - WGS_PON: "/Your_file_path/reference/b37/Mutect2-WGS-panel-b37.vcf" |
173 | | - DBSNP: "/Your_file_path/reference/b37/Homo_sapiens_assembly19.dbsnp138.vcf" |
174 | | - DBSNP_GZ: "/Your_file_path/reference/b37/Homo_sapiens_assembly19.dbsnp138.vcf.gz" |
175 | | - MUTECT2_VCF: "/Your_file_path/af-only-gnomad.raw.sites.b37.vcf.gz" |
176 | | - REFFA_DICT: "/Your_file_path/reference/b37/Homo_sapiens_assembly19.fasta" |
177 | | - MUTECT2_germline_vcf: "/Your_file_path/af-only-gnomad.raw.sites.b37.vcf.gz" |
178 | | -``` |
179 | | -
|
180 | | -需将以上字段自行配置为下载后软件的位置 |
181 | | -
|
182 | | -其中GTF可自行从[GeneCode](https://www.gencodegenes.org/human/release_46lift37.html)网站下载,但需要从GTF文件中去掉’chr' prefix。人类各版本基因组的不同可以参考[This Post](https://www.gencodegenes.org/human/release_46lift37.html). |
183 | | -
|
184 | | -GENOME_BED,与WES_BED主要用来记录染色体与基因外显子区间的坐标文件,可为空。 |
185 | | -
|
186 | | -其余参数的具体说明可参考 |
187 | | -
|
| 16 | +### Run build_conda_env.sh to |
| 17 | +Clindet provides a bash script to set up the computational environment required for running the software, as well as to download configuration files needed for various tools that use the human b37 reference genome (e.g., VCF, BED files). Run the script build_conda_env.sh to complete this setup. |
188 | 18 |
|
189 | | -## VEP setup |
190 | | -Install VEP use conda/ or use VEP |
| 19 | +### Modify the config.yaml file |
| 20 | +Replace the placeholder '/AbsoPath/of/clindet/folder' in the **clindet/workflow/config/config_local_test.yaml** file located in the Clindet software directory with the absolute path to your Clindet folder, for example: /home/users/softwares/clindet. save the modified file as config.yaml. |
191 | 21 |
|
192 | | -conda |
193 | 22 |
|
| 23 | +You are now ready to start your analysis tasks! |
0 commit comments