-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test, docs, and namespace for asm pipeline
- Loading branch information
Showing
4 changed files
with
88 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
test_that("ASM pipeline runs", { | ||
# Run main | ||
|
||
main_config <- CamConfig( | ||
outdir = "./result_test", | ||
bsseq = "wgbs", | ||
build = "hg38", | ||
lib = "pe", | ||
regions = regions, # Speed up tests | ||
n_cores = 10, | ||
min_cov = 1, # Required to capture sufficient SNPs from test | ||
cna_caller = "ascat" # Battenberg always recommended. ASCAT used here to speed up test | ||
) | ||
|
||
# Run main (skips if outputs exist) | ||
pipeline(tumor, germline = normal, infiltrates = NULL, origin = NULL, config) | ||
|
||
asm_pipeline( | ||
tumor = tumor, | ||
germline = normal, | ||
infiltrates = normal, | ||
origin = normal, | ||
config = config | ||
) | ||
|
||
# Confirm that final output file is created | ||
asm_out <- get_fpath(tumor, asm_config, "asm_dmp") | ||
expect_true(file.exists(asm_out)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters