Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit f1a8365

Browse files
committed
update README with new repo for testing
1 parent 93ee825 commit f1a8365

1 file changed

Lines changed: 87 additions & 13 deletions

File tree

doc/TESTS.md

Lines changed: 87 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,95 @@
1-
# Tests
1+
# Testing Sarek
22

3-
One script is available for testing purpose:
3+
For testing purpose we provide [Sarek-data](https://github.com/SciLifeLab/Sarek-data), a repository with test data and corresponding reference files.
4+
5+
One simple bash script is available, which will pull the Sarek-data repository and perform all the tests:
46
- [`scripts/test.sh`](../scripts/test.sh)
57

8+
Such tests are used in our Continuous Integration with Travis. You can perform the same tests to familiarize yourself with the workflow.
9+
10+
### Testing with Singularity
11+
For testing with Docker, just replace `singularity` with `docker` in every occurence.
12+
```bash
13+
# Dowload Sarek
14+
git clone https://github.com/SciLifeLab/Sarek Sarek-test
15+
cd Sarek-test
16+
17+
# Dowload Sarek test data
18+
git clone https://github.com/SciLifeLab/Sarek-data
19+
20+
# Build the references for the test data
21+
nextflow run buildReferences.nf --outDir References/smallGRCh37 \
22+
--refDir Sarek-data/reference --genome smallGRCh37 --tag latest \
23+
--verbose -profile singularity
24+
25+
# Testing --sampleDir as input for Germline
26+
nextflow run main.nf --sampleDir Sarek-data/testdata/manta/normal \
27+
--step mapping --genome smallGRCh37 --genome_base References/smallGRCh37 \
28+
--tag latest -profile singularity
29+
30+
# Testing to restart from `realign`
31+
nextflow run main.nf --step realign \
32+
--genome smallGRCh37 --genome_base References/smallGRCh37 \
33+
--tag latest -profile singularity
34+
35+
# Testing to restart from `recalibrate`
36+
nextflow run main.nf --step recalibrate \
37+
--genome smallGRCh37 --genome_base References/smallGRCh37 \
38+
--tag latest -profile singularity
39+
40+
# Testing germline variant calling
41+
nextflow run germlineVC.nf --genome smallGRCh37 \
42+
--genome_base References/smallGRCh37 --tools HaplotypeCaller,Manta,Strelka \
43+
--tag latest -profile singularity
44+
45+
# Testing generating report
46+
nextflow run runMultiQC.nf -profile singularity
47+
48+
# Removing test data before new tests
49+
rm -rf Preprocessing Reports VariantCalling
50+
51+
# Testing --sample as input for Somatic
52+
nextflow run main.nf --sample Sarek-data/testdata/tsv/tiny-manta.tsv \
53+
--step mapping --genome smallGRCh37 --genome_base References/smallGRCh37 \
54+
--tag latest -profile singularity
55+
56+
# Testing germline variant calling
57+
nextflow run germlineVC.nf --genome smallGRCh37 \
58+
--genome_base References/smallGRCh37 --tools HaplotypeCaller,Manta,Strelka \
59+
--tag latest -profile singularity
60+
61+
# Testing somatic variant calling
62+
nextflow run somaticVC.nf --genome smallGRCh37 \
63+
--genome_base References/smallGRCh37 --tools Manta,Strelka,FreeBayes,MuTect2 \
64+
--tag latest -profile singularity
65+
66+
# Testing somatic variant calling following Strelka2 Best Practices
67+
nextflow run somaticVC.nf --genome smallGRCh37 \
68+
--genome_base References/smallGRCh37 --tools Manta,Strelka,FreeBayes,MuTect2 \
69+
--strelkaBP --tag latest -profile singularity
70+
71+
# Testing annotation
72+
nextflow run somaticVC.nf --tools snpEFF,VEP \
73+
--annotateVCF VariantCalling/StrelkaBP/Strelka_9876T_vs_1234N_somatic_indels.vcf.gz \
74+
-profile singularity
75+
76+
# Testing generating report
77+
nextflow run runMultiQC.nf -profile singularity
78+
```
79+
80+
## Usage
81+
682
Four optional arguments are supported:
783
- `-g` || `--genome`:
884
Choose the genome reference version (overwrite configuration files and profiles)
985
- `-p` || `--profile`:
10-
Choose which profile to test. These options should work on a personnal computer:
86+
Choose which profile to test. These options should work on a personal computer:
1187
- `docker` test using Docker containers
1288
- `singularity` (default) test using Singularity containers
1389
- `-s` || `--sample`:
14-
Use to change the test sample (default=`data/tsv/tiny.tsv`)
90+
Use to change the test sample (default=`Sarek-data/testdata/tsv/tiny.tsv`)
1591
- `-t` || `--test`:
16-
- `DIR`: test `mapping` with an input directory, all other tests use a TSV file
92+
- `DIR`: test `mapping` with an input directory
1793
- `STEP`: test `mapping`, `realign` and `recalibrate`
1894
- `GERMLINE`: test `mapping` and Variant Calling with `HaplotypeCaller`
1995
- `TOOLS`: test `mapping` and Variant Calling with `FreeBayes`, `HaplotypeCaller`, `MuTect1`, `MuTect2`, `Strelka`
@@ -23,19 +99,17 @@ Four optional arguments are supported:
2399
- `BUILDCONTAINERS`: test building all containers except `snpeffgrch37`, `snpeffgrch38`, `vepgrch37` and `vepgrch38`
24100
- `ALL`: test all the previous tests (default)
25101

26-
## Usage
27-
28102
```bash
29-
# Will try all tests using Singularity
103+
# Will perform all tests using Singularity
30104
./scripts/test.sh
31-
# Will try all tests using Docker
105+
# Will perform all tests using Docker
32106
./scripts/test.sh -p docker
33-
# Will try `STEP` tests using Singularity
107+
# Will perform `STEP` tests using Singularity
34108
./scripts/test.sh -t `STEP`
35-
# Will try `STEP` tests using Singularity with GRCh37 genome
109+
# Will perform `STEP` tests using Singularity with GRCh37 genome
36110
./scripts/test.sh -t `STEP` -g GRCh37
37-
# Will try all tests using Singularity on manta test data
38-
./scripts/test.sh -s data/tsv/tiny-manta.tsv
111+
# Will perform all tests using Singularity on manta test data
112+
./scripts/test.sh -s Sarek-data/testdata/tsv/tiny-manta.tsv
39113
```
40114

41115
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)