config.rs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. #[derive(Debug, Clone)]
  2. pub struct Config {
  3. pub pod_dir: String,
  4. pub result_dir: String,
  5. pub align: AlignConfig,
  6. pub reference: String,
  7. pub reference_name: String,
  8. pub dict_file: String,
  9. pub refseq_gff: String,
  10. pub docker_max_memory_go: u16,
  11. pub savana_bin: String,
  12. pub savana_threads: u8,
  13. pub tumoral_name: String,
  14. pub normal_name: String,
  15. pub haplotagged_bam_tag_name: String,
  16. pub count_dir_name: String,
  17. pub count_bin_size: u32,
  18. pub count_n_chunks: u32,
  19. pub savana_output_dir: String,
  20. pub savana_copy_number: String,
  21. pub savana_read_counts: String,
  22. pub germline_phased_vcf: String,
  23. pub savana_passed_vcf: String,
  24. pub conda_sh: String,
  25. pub savana_force: bool,
  26. pub deepvariant_output_dir: String,
  27. pub severus_bin: String,
  28. pub severus_force: bool,
  29. pub severus_threads: u8,
  30. pub vntrs_bed: String,
  31. pub severus_pon: String,
  32. pub severus_output_dir: String,
  33. pub severus_solo_output_dir: String,
  34. pub longphase_bin: String,
  35. pub longphase_threads: u8,
  36. pub longphase_modcall_vcf: String,
  37. pub modkit_bin: String,
  38. pub modkit_summary_threads: u8,
  39. pub modkit_summary_file: String,
  40. pub longphase_modcall_threads: u8,
  41. pub deepvariant_threads: u8,
  42. pub deepvariant_bin_version: String,
  43. pub deepvariant_model_type: String,
  44. pub deepvariant_force: bool,
  45. pub deepsomatic_output_dir: String,
  46. pub deepsomatic_threads: u8,
  47. pub deepsomatic_bin_version: String,
  48. pub deepsomatic_model_type: String,
  49. pub deepsomatic_force: bool,
  50. pub bam_min_mapq: u8,
  51. pub bam_n_threads: u8,
  52. pub db_cases_path: String,
  53. pub somatic_pipe_stats: String,
  54. pub clairs_threads: u8,
  55. pub clairs_force: bool,
  56. pub clairs_platform: String,
  57. pub clairs_output_dir: String,
  58. pub mask_bed: String,
  59. pub somatic_min_constit_depth: u16,
  60. pub somatic_max_alt_constit: u16,
  61. pub entropy_seq_len: usize,
  62. pub min_shannon_entropy: f64,
  63. pub nanomonsv_bin: String,
  64. pub nanomonsv_output_dir: String,
  65. pub nanomonsv_force: bool,
  66. pub nanomonsv_threads: u8,
  67. pub nanomonsv_passed_vcf: String,
  68. pub nanomonsv_solo_output_dir: String,
  69. pub nanomonsv_solo_passed_vcf: String,
  70. pub somatic_pipe_force: bool,
  71. pub somatic_pipe_threads: u8,
  72. pub min_high_quality_depth: u32,
  73. pub somatic_scan_force: bool,
  74. }
  75. // Here comes names that can't be changed from output of tools
  76. lazy_static! {
  77. static ref DEEPVARIANT_OUTPUT_NAME: &'static str = "{id}_{time}_DeepVariant.vcf.gz";
  78. static ref CLAIRS_OUTPUT_NAME: &'static str = "output.vcf.gz";
  79. static ref CLAIRS_OUTPUT_INDELS_NAME: &'static str = "indel.vcf.gz";
  80. static ref CLAIRS_GERMLINE_NORMAL: &'static str = "clair3_normal_germline_output.vcf.gz";
  81. static ref CLAIRS_GERMLINE_TUMOR: &'static str = "clair3_tumor_germline_output.vcf.gz";
  82. }
  83. impl Default for Config {
  84. fn default() -> Self {
  85. Self {
  86. pod_dir: "/data/run_data".to_string(),
  87. align: Default::default(),
  88. // Reference genome
  89. reference: "/data/ref/hs1/chm13v2.0.fa".to_string(),
  90. reference_name: "hs1".to_string(),
  91. dict_file: "/data/ref/hs1/chm13v2.0.dict".to_string(),
  92. refseq_gff: "/data/ref/hs1/chm13v2.0_RefSeq_Liftoff_v5.1_sorted.gff3.gz".to_string(),
  93. docker_max_memory_go: 400,
  94. // File structure
  95. result_dir: "/data/longreads_basic_pipe".to_string(),
  96. tumoral_name: "diag".to_string(),
  97. normal_name: "mrd".to_string(),
  98. haplotagged_bam_tag_name: "HP".to_string(),
  99. count_dir_name: "counts".to_string(),
  100. count_bin_size: 1_000,
  101. count_n_chunks: 1_000,
  102. bam_min_mapq: 40,
  103. bam_n_threads: 150,
  104. db_cases_path: "/data/cases.sqlite".to_string(),
  105. //
  106. mask_bed: "{result_dir}/{id}/diag/mask.bed".to_string(),
  107. germline_phased_vcf: "{result_dir}/{id}/diag/{id}_variants_constit_phased.vcf.gz
  108. "
  109. .to_string(),
  110. conda_sh: "/data/miniconda3/etc/profile.d/conda.sh".to_string(),
  111. somatic_pipe_stats: "{result_dir}/{id}/diag/somatic_pipe_stats"
  112. .to_string(),
  113. // DeepVariant
  114. deepvariant_output_dir: "{result_dir}/{id}/{time}/DeepVariant".to_string(),
  115. deepvariant_threads: 150,
  116. deepvariant_bin_version: "1.8.0".to_string(),
  117. deepvariant_model_type: "ONT_R104".to_string(),
  118. deepvariant_force: false,
  119. // DeepSomatic
  120. deepsomatic_output_dir: "{result_dir}/{id}/{time}/DeepSomatic".to_string(),
  121. deepsomatic_threads: 155,
  122. deepsomatic_bin_version: "1.8.0".to_string(),
  123. deepsomatic_model_type: "ONT".to_string(),
  124. deepsomatic_force: false,
  125. // ClairS
  126. clairs_output_dir: "{result_dir}/{id}/diag/ClairS".to_string(),
  127. clairs_threads: 155,
  128. clairs_platform: "ont_r10_dorado_sup_5khz_ssrs".to_string(),
  129. clairs_force: false,
  130. // Savana
  131. savana_bin: "savana".to_string(),
  132. // savana_bin: "/home/prom/.local/bin/savana".to_string(),
  133. savana_threads: 150,
  134. savana_output_dir: "{result_dir}/{id}/diag/savana".to_string(),
  135. savana_passed_vcf: "{output_dir}/{id}_diag_savana_PASSED.vcf.gz".to_string(),
  136. savana_copy_number: "{output_dir}/{id}_diag_{reference_name}_{haplotagged_bam_tag_name}_segmented_absolute_copy_number.tsv".to_string(),
  137. savana_read_counts: "{output_dir}/{id}_diag_{reference_name}_{haplotagged_bam_tag_name}_raw_read_counts.tsv".to_string(),
  138. savana_force: false,
  139. // Severus
  140. severus_bin: "/data/tools/Severus/severus.py".to_string(),
  141. severus_threads: 32,
  142. vntrs_bed: "/data/ref/hs1/vntrs_chm13.bed".to_string(),
  143. severus_pon: "/data/ref/hs1/PoN_1000G_chm13.tsv.gz".to_string(),
  144. severus_output_dir: "{result_dir}/{id}/diag/severus".to_string(),
  145. severus_solo_output_dir: "{result_dir}/{id}/{time}/severus".to_string(),
  146. severus_force: false,
  147. // Longphase
  148. longphase_bin: "/data/tools/longphase_linux-x64".to_string(),
  149. longphase_threads: 150,
  150. longphase_modcall_threads: 8, // ! out of memory
  151. longphase_modcall_vcf:
  152. "{result_dir}/{id}/{time}/5mC_5hmC/{id}_{time}_5mC_5hmC_modcall.vcf.gz".to_string(),
  153. // modkit
  154. modkit_bin: "modkit".to_string(),
  155. modkit_summary_threads: 50,
  156. modkit_summary_file: "{result_dir}/{id}/{time}/{id}_{time}_5mC_5hmC_summary.txt"
  157. .to_string(),
  158. // Nanomonsv
  159. // tabix, bgzip, mafft in PATH
  160. // pip install pysam, parasail; pip install nanomonsv
  161. nanomonsv_bin: "/home/prom/.local/bin/nanomonsv".to_string(),
  162. nanomonsv_output_dir: "{result_dir}/{id}/{time}/nanomonsv".to_string(),
  163. nanomonsv_threads: 150,
  164. nanomonsv_force: false,
  165. nanomonsv_passed_vcf: "{output_dir}/{id}_diag_nanomonsv_PASSED.vcf.gz".to_string(),
  166. nanomonsv_solo_output_dir: "{result_dir}/{id}/{time}/nanomonsv-solo".to_string(),
  167. nanomonsv_solo_passed_vcf: "{output_dir}/{id}_{time}_nanomonsv-solo_PASSED.vcf.gz"
  168. .to_string(),
  169. // Scan
  170. somatic_scan_force: false,
  171. // Pipe
  172. somatic_pipe_force: false,
  173. somatic_pipe_threads: 150,
  174. somatic_min_constit_depth: 5,
  175. somatic_max_alt_constit: 1,
  176. entropy_seq_len: 10,
  177. min_shannon_entropy: 1.0,
  178. min_high_quality_depth: 14,
  179. }
  180. }
  181. }
  182. #[derive(Debug, Clone)]
  183. pub struct AlignConfig {
  184. pub dorado_bin: String,
  185. pub dorado_basecall_arg: String,
  186. pub ref_fa: String,
  187. pub ref_mmi: String,
  188. pub samtools_view_threads: u16,
  189. pub samtools_sort_threads: u16,
  190. }
  191. impl Default for AlignConfig {
  192. fn default() -> Self {
  193. Self {
  194. dorado_bin: "/data/tools/dorado-0.9.1-linux-x64/bin/dorado".to_string(),
  195. dorado_basecall_arg: "-x 'cuda:0,1,2,3' sup,5mC_5hmC".to_string(),
  196. // to specify cuda devices (exclude the T1000)
  197. ref_fa: "/data/ref/hs1/chm13v2.0.fa".to_string(),
  198. ref_mmi: "/data/ref/chm13v2.0.mmi".to_string(),
  199. samtools_view_threads: 20,
  200. samtools_sort_threads: 50,
  201. }
  202. }
  203. }
  204. impl Config {
  205. pub fn tumoral_dir(&self, id: &str) -> String {
  206. format!("{}/{}/{}", self.result_dir, id, self.tumoral_name)
  207. }
  208. pub fn normal_dir(&self, id: &str) -> String {
  209. format!("{}/{}/{}", self.result_dir, id, self.normal_name)
  210. }
  211. pub fn solo_dir(&self, id: &str, time: &str) -> String {
  212. format!("{}/{}/{}", self.result_dir, id, time)
  213. }
  214. pub fn solo_bam(&self, id: &str, time: &str) -> String {
  215. format!(
  216. "{}/{}_{}_{}.bam",
  217. self.solo_dir(id, time),
  218. id,
  219. time,
  220. self.reference_name,
  221. )
  222. }
  223. pub fn tumoral_bam(&self, id: &str) -> String {
  224. format!(
  225. "{}/{}_{}_{}.bam",
  226. self.tumoral_dir(id),
  227. id,
  228. self.tumoral_name,
  229. self.reference_name,
  230. )
  231. }
  232. pub fn normal_bam(&self, id: &str) -> String {
  233. format!(
  234. "{}/{}_{}_{}.bam",
  235. self.normal_dir(id),
  236. id,
  237. self.normal_name,
  238. self.reference_name,
  239. )
  240. }
  241. pub fn tumoral_haplotagged_bam(&self, id: &str) -> String {
  242. format!(
  243. "{}/{}_{}_{}_{}.bam",
  244. self.tumoral_dir(id),
  245. id,
  246. self.tumoral_name,
  247. self.reference_name,
  248. self.haplotagged_bam_tag_name
  249. )
  250. }
  251. pub fn normal_haplotagged_bam(&self, id: &str) -> String {
  252. format!(
  253. "{}/{}_{}_{}_{}.bam",
  254. self.normal_dir(id),
  255. id,
  256. self.normal_name,
  257. self.reference_name,
  258. self.haplotagged_bam_tag_name
  259. )
  260. }
  261. pub fn normal_dir_count(&self, id: &str) -> String {
  262. format!("{}/{}", self.normal_dir(id), self.count_dir_name)
  263. }
  264. pub fn tumoral_dir_count(&self, id: &str) -> String {
  265. format!("{}/{}", self.tumoral_dir(id), self.count_dir_name)
  266. }
  267. pub fn mask_bed(&self, id: &str) -> String {
  268. self.mask_bed
  269. .replace("{result_dir}", &self.result_dir)
  270. .replace("{id}", id)
  271. }
  272. pub fn germline_phased_vcf(&self, id: &str) -> String {
  273. self.germline_phased_vcf
  274. .replace("{result_dir}", &self.result_dir)
  275. .replace("{id}", id)
  276. }
  277. pub fn somatic_pipe_stats(&self, id: &str) -> String {
  278. self.somatic_pipe_stats
  279. .replace("{result_dir}", &self.result_dir)
  280. .replace("{id}", id)
  281. }
  282. // DeepVariant
  283. pub fn deepvariant_output_dir(&self, id: &str, time: &str) -> String {
  284. self.deepvariant_output_dir
  285. .replace("{result_dir}", &self.result_dir)
  286. .replace("{id}", id)
  287. .replace("{time}", time)
  288. }
  289. pub fn deepvariant_solo_output_vcf(&self, id: &str, time: &str) -> String {
  290. format!(
  291. "{}/{}",
  292. self.deepvariant_output_dir(id, time),
  293. *DEEPVARIANT_OUTPUT_NAME
  294. )
  295. .replace("{id}", id)
  296. .replace("{time}", time)
  297. }
  298. pub fn deepvariant_normal_output_dir(&self, id: &str) -> String {
  299. self.deepvariant_output_dir(id, &self.normal_name)
  300. }
  301. pub fn deepvariant_tumoral_output_dir(&self, id: &str) -> String {
  302. self.deepvariant_solo_passed_vcf(id, &self.tumoral_name)
  303. }
  304. pub fn deepvariant_solo_passed_vcf(&self, id: &str, time: &str) -> String {
  305. format!(
  306. "{}/{}_{}_DeepVariant_PASSED.vcf.gz",
  307. self.deepvariant_output_dir(id, time),
  308. id,
  309. time
  310. )
  311. }
  312. pub fn deepvariant_normal_passed_vcf(&self, id: &str) -> String {
  313. self.deepvariant_solo_passed_vcf(id, &self.normal_name)
  314. }
  315. pub fn deepvariant_tumoral_passed_vcf(&self, id: &str) -> String {
  316. self.deepvariant_solo_passed_vcf(id, &self.tumoral_name)
  317. }
  318. // DeepSomatic
  319. pub fn deepsomatic_output_dir(&self, id: &str) -> String {
  320. self.deepsomatic_output_dir
  321. .replace("{result_dir}", &self.result_dir)
  322. .replace("{id}", id)
  323. .replace("{time}", &self.tumoral_name)
  324. }
  325. pub fn deepsomatic_output_vcf(&self, id: &str) -> String {
  326. format!(
  327. "{}/{}_{}_DeepSomatic.vcf.gz",
  328. self.deepsomatic_output_dir(id),
  329. id,
  330. self.tumoral_name
  331. )
  332. }
  333. pub fn deepsomatic_passed_vcf(&self, id: &str) -> String {
  334. format!(
  335. "{}/{}_{}_DeepSomatic_PASSED.vcf.gz",
  336. self.deepvariant_normal_output_dir(id),
  337. id,
  338. self.tumoral_name
  339. )
  340. }
  341. // ClairS
  342. pub fn clairs_output_dir(&self, id: &str) -> String {
  343. self.clairs_output_dir
  344. .replace("{result_dir}", &self.result_dir)
  345. .replace("{id}", id)
  346. }
  347. pub fn clairs_output_vcfs(&self, id: &str) -> (String, String) {
  348. let dir = self.clairs_output_dir(id);
  349. (
  350. format!("{dir}/{}", *CLAIRS_OUTPUT_NAME),
  351. format!("{dir}/{}", *CLAIRS_OUTPUT_INDELS_NAME),
  352. )
  353. }
  354. pub fn clairs_passed_vcf(&self, id: &str) -> String {
  355. format!(
  356. "{}/{}_{}_clairs_PASSED.vcf.gz",
  357. self.clairs_output_dir(id),
  358. id,
  359. self.tumoral_name
  360. )
  361. }
  362. pub fn clairs_germline_normal_vcf(&self, id: &str) -> String {
  363. let dir = self.clairs_output_dir(id);
  364. format!("{dir}/{}", *CLAIRS_GERMLINE_NORMAL)
  365. }
  366. pub fn clairs_germline_tumor_vcf(&self, id: &str) -> String {
  367. let dir = self.clairs_output_dir(id);
  368. format!("{dir}/{}", *CLAIRS_GERMLINE_TUMOR)
  369. }
  370. pub fn clairs_germline_passed_vcf(&self, id: &str) -> String {
  371. let dir = self.clairs_output_dir(id);
  372. format!("{dir}/{id}_diag_clair3-germline_PASSED.vcf.gz")
  373. }
  374. // Nanomonsv
  375. pub fn nanomonsv_output_dir(&self, id: &str, time: &str) -> String {
  376. self.nanomonsv_output_dir
  377. .replace("{result_dir}", &self.result_dir)
  378. .replace("{id}", id)
  379. .replace("{time}", time)
  380. }
  381. pub fn nanomonsv_passed_vcf(&self, id: &str) -> String {
  382. self.nanomonsv_passed_vcf
  383. .replace("{output_dir}", &self.nanomonsv_output_dir(id, "diag"))
  384. .replace("{id}", id)
  385. }
  386. // Nanomonsv solo
  387. pub fn nanomonsv_solo_output_dir(&self, id: &str, time: &str) -> String {
  388. self.nanomonsv_solo_output_dir
  389. .replace("{result_dir}", &self.result_dir)
  390. .replace("{id}", id)
  391. .replace("{time}", time)
  392. }
  393. pub fn nanomonsv_solo_passed_vcf(&self, id: &str, time: &str) -> String {
  394. self.nanomonsv_solo_passed_vcf
  395. .replace("{output_dir}", &self.nanomonsv_solo_output_dir(id, time))
  396. .replace("{id}", id)
  397. .replace("{time}", time)
  398. }
  399. // Savana
  400. pub fn savana_output_dir(&self, id: &str) -> String {
  401. self.savana_output_dir
  402. .replace("{result_dir}", &self.result_dir)
  403. .replace("{id}", id)
  404. }
  405. pub fn savana_output_vcf(&self, id: &str) -> String {
  406. let output_dir = self.savana_output_dir(id);
  407. format!(
  408. "{output_dir}/{id}_{}_{}_{}.classified.somatic.vcf",
  409. self.tumoral_name, self.reference_name, self.haplotagged_bam_tag_name
  410. )
  411. }
  412. pub fn savana_passed_vcf(&self, id: &str) -> String {
  413. self.savana_passed_vcf
  414. .replace("{output_dir}", &self.savana_output_dir(id))
  415. .replace("{id}", id)
  416. }
  417. // {output_dir}/{id}_diag_{reference_name}_{haplotagged_bam_tag_name}
  418. pub fn savana_read_counts(&self, id: &str) -> String {
  419. self.savana_read_counts
  420. .replace("{output_dir}", &self.savana_output_dir(id))
  421. .replace("{id}", id)
  422. .replace("{reference_name}", &self.reference_name)
  423. .replace("{haplotagged_bam_tag_name}", &self.haplotagged_bam_tag_name)
  424. }
  425. pub fn savana_copy_number(&self, id: &str) -> String {
  426. self.savana_copy_number
  427. .replace("{output_dir}", &self.savana_output_dir(id))
  428. .replace("{id}", id)
  429. .replace("{reference_name}", &self.reference_name)
  430. .replace("{haplotagged_bam_tag_name}", &self.haplotagged_bam_tag_name)
  431. }
  432. // Severus
  433. pub fn severus_output_dir(&self, id: &str) -> String {
  434. self.severus_output_dir
  435. .replace("{result_dir}", &self.result_dir)
  436. .replace("{id}", id)
  437. }
  438. pub fn severus_output_vcf(&self, id: &str) -> String {
  439. let output_dir = self.severus_output_dir(id);
  440. format!("{output_dir}/somatic_SVs/severus_somatic.vcf")
  441. }
  442. pub fn severus_passed_vcf(&self, id: &str) -> String {
  443. format!(
  444. "{}/{}_diag_severus_PASSED.vcf.gz",
  445. &self.severus_output_dir(id),
  446. id
  447. )
  448. }
  449. // Severus solo
  450. pub fn severus_solo_output_dir(&self, id: &str, time: &str) -> String {
  451. self.severus_solo_output_dir
  452. .replace("{result_dir}", &self.result_dir)
  453. .replace("{id}", id)
  454. .replace("{time}", time)
  455. }
  456. pub fn severus_solo_output_vcf(&self, id: &str, time: &str) -> String {
  457. let output_dir = self.severus_solo_output_dir(id, time);
  458. format!("{output_dir}/all_SVs/severus_all.vcf")
  459. }
  460. pub fn severus_solo_passed_vcf(&self, id: &str, time: &str) -> String {
  461. format!(
  462. "{}/{}_{}_severus-solo_PASSED.vcf.gz",
  463. &self.severus_solo_output_dir(id, time),
  464. id,
  465. time
  466. )
  467. }
  468. pub fn constit_vcf(&self, id: &str) -> String {
  469. self.clairs_germline_passed_vcf(id)
  470. // format!("{}/{}_variants_constit.vcf.gz", self.tumoral_dir(id), id)
  471. }
  472. pub fn constit_phased_vcf(&self, id: &str) -> String {
  473. format!(
  474. "{}/{}_variants_constit_phased.vcf.gz",
  475. self.tumoral_dir(id),
  476. id
  477. )
  478. }
  479. // SomaticScan
  480. pub fn somatic_scan_solo_output_dir(&self, id: &str, time: &str) -> String {
  481. format!("{}/counts", self.solo_dir(id, time))
  482. }
  483. pub fn somatic_scan_normal_output_dir(&self, id: &str) -> String {
  484. self.somatic_scan_solo_output_dir(id, &self.normal_name)
  485. }
  486. pub fn somatic_scan_tumoral_output_dir(&self, id: &str) -> String {
  487. self.somatic_scan_solo_output_dir(id, &self.tumoral_name)
  488. }
  489. pub fn somatic_scan_solo_count_file(&self, id: &str, time: &str, contig: &str) -> String {
  490. format!(
  491. "{}/{}_count.tsv.gz",
  492. self.somatic_scan_solo_output_dir(id, time),
  493. contig
  494. )
  495. }
  496. pub fn somatic_scan_normal_count_file(&self, id: &str, contig: &str) -> String {
  497. self.somatic_scan_solo_count_file(id, &self.normal_name, contig)
  498. }
  499. pub fn somatic_scan_tumoral_count_file(&self, id: &str, contig: &str) -> String {
  500. self.somatic_scan_solo_count_file(id, &self.tumoral_name, contig)
  501. }
  502. // Modkit
  503. pub fn modkit_summary_file(&self, id: &str, time: &str) -> String {
  504. self.modkit_summary_file
  505. .replace("{result_dir}", &self.result_dir)
  506. .replace("{id}", id)
  507. .replace("{time}", time)
  508. }
  509. pub fn longphase_modcall_vcf(&self, id: &str, time: &str) -> String {
  510. self.longphase_modcall_vcf
  511. .replace("{result_dir}", &self.result_dir)
  512. .replace("{id}", id)
  513. .replace("{time}", time)
  514. }
  515. }