Skip to content

Commit ae4e94c

Browse files
committed
ignoring and including damage manipulation csvs
1 parent d3a5f61 commit ae4e94c

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

tests/test_long.nf.test

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ nextflow_pipeline {
2929
// If a directory is fully stable, you can drop `stable_name_*`
3030
// If a directory contains no BAMs, you can drop `bams_*`
3131

32-
// Generate with: nf-test test --profile +docker --tag test --update-snapshot
33-
// Test with: nf-test test --profile +docker --tag test
32+
// Generate with: nf-test test --profile +docker --tag test_long --update-snapshot
33+
// Test with: nf-test test --profile +docker --tag test_long
3434
// NOTE: BAMs are always only stable in name, because:
3535
// a) sharding breaks header since the shard that was first is named in the header (Fixed in https://github.com/nf-core/eager/pull/1112)
3636
// b) the order of the reads in the BAMs is not stable (sorted, but reads that share a start position can be in any order)
@@ -57,7 +57,6 @@ nextflow_pipeline {
5757
'**/misincorporation.txt',
5858
'**/genome_results.txt',
5959
'**/*command.log',
60-
'**/*out_MCMC_*.csv',
6160
]
6261

6362
// Check that no files are missing/added
@@ -70,21 +69,21 @@ nextflow_pipeline {
7069

7170
// Damage_manipulation
7271
// def stable_content_damage_manipulation = getAllFilesFromDir("$outputDir/damage_manipulation" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*csv'] )
73-
def stable_content_damage_manipulation = getAllFilesFromDir("$outputDir/damage_manipulation" , includeDir: false , ignore: unstable_patterns_auth , ignoreFile: null , include: ['*', '**/*'] )
74-
def stable_name_damage_manipulation = getAllFilesFromDir("$outputDir/damage_manipulation" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{bam,bai}'] )
72+
def stable_content_damage_manipulation = getAllFilesFromDir("$outputDir/damage_manipulation" , includeDir: false , ignore: ['**/*out_MCMC_*.csv'], ignoreFile: null , include: ['*', '**/*'] )
73+
def stable_name_damage_manipulation = getAllFilesFromDir("$outputDir/damage_manipulation" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{bam,bai,csv}'] )
7574

7675
// Final_bams
7776
def stable_content_final_bams = getAllFilesFromDir("$outputDir/final_bams" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.flagstat'] )
7877
def stable_name_final_bams = getAllFilesFromDir("$outputDir/final_bams" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{bam,bai}'] )
7978

8079
// // Mapping (incl. bam_input flasgstat)
81-
// def stable_content_mapping = getAllFilesFromDir("$outputDir/mapping" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.flagstat'] )
82-
// def stable_name_mapping = getAllFilesFromDir("$outputDir/mapping" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{bam,bai}'] )
80+
def stable_content_mapping = getAllFilesFromDir("$outputDir/mapping" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.flagstat'] )
81+
def stable_name_mapping = getAllFilesFromDir("$outputDir/mapping" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{bam,bai}'] )
8382

8483
// // Preprocessing
8584
// // NOTE: FastQC html appears stable, but I worry it might just include a day timestamp instead of a full timestamp. To keep the expression simpler I removed both from checksum testing.
86-
// def stable_content_preprocessing = getAllFilesFromDir("$outputDir/preprocessing" , includeDir: false , ignore: ['**/*.{zip,log,html}'], ignoreFile: null , include: ['**/*'] )
87-
// def stable_name_preprocessing = getAllFilesFromDir("$outputDir/preprocessing" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{zip,log,html}'] )
85+
def stable_content_preprocessing = getAllFilesFromDir("$outputDir/preprocessing" , includeDir: false , ignore: ['**/*.{zip,log,html}'], ignoreFile: null , include: ['**/*'] )
86+
def stable_name_preprocessing = getAllFilesFromDir("$outputDir/preprocessing" , includeDir: false , ignore: null , ignoreFile: null , include: ['**/*.{zip,log,html}'] )
8887

8988
// Genotyping
9089
def stable_content_genotyping = getAllFilesFromDir("$outputDir/genotyping" , includeDir: false , ignore: ['**/*.{tbi,vcf.gz}'] , ignoreFile: null , include: ['**/*'] )
@@ -112,8 +111,8 @@ nextflow_pipeline {
112111
{ assert snapshot( stable_content_damage_manipulation , stable_name_damage_manipulation*.name ).match("damage_manipulation") },
113112
{ assert snapshot( stable_content_final_bams , stable_name_final_bams*.name ).match("final_bams") },
114113
// NOTE: The snapshot section for mapping cannot be named 'mapping'. See https://github.com/askimed/nf-test/issues/279
115-
// { assert snapshot( stable_content_mapping , stable_name_mapping*.name ).match("mapping_output") },
116-
//{ assert snapshot( stable_content_preprocessing , stable_name_preprocessing*.name ).match("preprocessing") },
114+
{ assert snapshot( stable_content_mapping , stable_name_mapping*.name ).match("mapping_output") },
115+
{ assert snapshot( stable_content_preprocessing , stable_name_preprocessing*.name ).match("preprocessing") },
117116
{ assert snapshot( stable_content_genotyping , stable_name_genotyping*.name ).match("genotyping") },
118117
// Additional checks on the genotyping VCFs for content. Specifically the md5sums of the header FORMAT, INFO, FILTER, CONTIG lines, and sample names
119118
{ assert snapshot(

0 commit comments

Comments
 (0)