Skip to content

Commit 93a30ae

Browse files
committed
PROFILES: test -> test_cache + restore test
1 parent b705ef6 commit 93a30ae

File tree

3 files changed

+55
-5
lines changed

3 files changed

+55
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Run pipeline with test data
6868
run: |
69-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
69+
nextflow run ${GITHUB_WORKSPACE} -profile test_cache,docker --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
7070
7171
star_salmon:
7272
name: Test STAR Salmon with workflow parameters
@@ -128,7 +128,7 @@ jobs:
128128
129129
- name: Run pipeline with STAR and various parameters
130130
run: |
131-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
131+
nextflow run ${GITHUB_WORKSPACE} -profile test_cache,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
132132
133133
star_rsem:
134134
name: Test STAR RSEM with workflow parameters
@@ -179,7 +179,7 @@ jobs:
179179
180180
- name: Run pipeline with RSEM STAR and various parameters
181181
run: |
182-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
182+
nextflow run ${GITHUB_WORKSPACE} -profile test_cache,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
183183
184184
hisat2:
185185
name: Test HISAT2 with workflow parameters
@@ -230,7 +230,7 @@ jobs:
230230
231231
- name: Run pipeline with HISAT2 and various parameters
232232
run: |
233-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
233+
nextflow run ${GITHUB_WORKSPACE} -profile test_cache,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
234234
235235
salmon:
236236
name: Test Salmon with workflow parameters
@@ -281,4 +281,4 @@ jobs:
281281
282282
- name: Run pipeline with Salmon and various parameters
283283
run: |
284-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
284+
nextflow run ${GITHUB_WORKSPACE} -profile test_cache,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/

conf/test_cache.config

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Nextflow config file for running minimal tests
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
Defines input files and everything required to run a fast and simple pipeline test.
6+
7+
Use as follows:
8+
nextflow run nf-core/rnaseq -profile test,<docker/singularity> --outdir <OUTDIR>
9+
10+
----------------------------------------------------------------------------------------
11+
*/
12+
13+
params {
14+
config_profile_name = 'Test profile'
15+
config_profile_description = 'Minimal test dataset to check pipeline function'
16+
17+
// Limit resources so that this can run on GitHub Actions
18+
max_cpus = 2
19+
max_memory = '6.GB'
20+
max_time = '6.h'
21+
22+
23+
// Input data
24+
input = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/samplesheet/v3.10/samplesheet_test.csv"
25+
26+
// Genome references
27+
fasta = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/genome.fasta"
28+
gtf = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/genes.gtf.gz"
29+
gff = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/genes.gff.gz"
30+
transcript_fasta = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/transcriptome.fasta"
31+
additional_fasta = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/gfp.fa.gz"
32+
33+
bbsplit_fasta_list = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/bbsplit_fasta_list.txt"
34+
hisat2_index = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/hisat2.tar.gz"
35+
salmon_index = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/salmon.tar.gz"
36+
rsem_index = "https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3/reference/rsem.tar.gz"
37+
38+
// Other parameters
39+
skip_bbsplit = false
40+
pseudo_aligner = 'salmon'
41+
umitools_bc_pattern = 'NNNN'
42+
}
43+
44+
// When using RSEM, remove warning from STAR whilst building tiny indices
45+
process {
46+
withName: 'RSEM_PREPAREREFERENCE_GENOME' {
47+
ext.args2 = "--genomeSAindexNbases 7"
48+
}
49+
}

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ profiles {
231231
executor.memory = 60.GB
232232
}
233233
test { includeConfig 'conf/test.config' }
234+
test_cache { includeConfig 'conf/test_cache.config' }
234235
test_full { includeConfig 'conf/test_full.config' }
235236
test_full_aws { includeConfig 'conf/test_full.config' }
236237
test_full_gcp {

0 commit comments

Comments
 (0)