config.rs 19 KB

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