Skip to content

Commit 20e5e7d

Browse files
committed
update nftignore and hisat2 snapshots
1 parent e5c8c9d commit 20e5e7d

File tree

3 files changed

+183
-277
lines changed

3 files changed

+183
-277
lines changed

tests/.nftignore

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,30 @@ multiqc/**/multiqc_report_data/samtools_alignment_plot.txt
4040
multiqc/**/multiqc_report_data/star_alignment_plot.txt
4141
multiqc/**/multiqc_report_data/star_summary_table.txt
4242
multiqc/**/multiqc_report_plots/{pdf,png,svg}/*.{pdf,png,svg}
43+
multiqc/hisat2/multiqc_report_data/hisat2_pe_plot.txt
44+
multiqc/hisat2/multiqc_report_data/hisat2_se_plot.txt
45+
multiqc/hisat2/multiqc_report_data/multiqc_hisat2.txt
4346
pipeline_info/*.{html,json,txt,yml}
44-
star_salmon/*.{bam,bam.bai}
45-
star_salmon/bigwig/*.{forward,reverse}.bigWig
46-
star_salmon/dupradar/box_plot/*_duprateExpBoxplot.pdf
47-
star_salmon/dupradar/histogram/*_expressionHist.pdf
48-
star_salmon/dupradar/scatter_plot/*_duprateExpDens.pdf
49-
star_salmon/featurecounts/*.featureCounts.txt.summary
5047
star_salmon/log/*.Log.{final.out,out,progress.out}
51-
star_salmon/picard_metrics/*.MarkDuplicates.metrics.txt
52-
star_salmon/qualimap/*/css/*
53-
star_salmon/qualimap/*/images_qualimapReport/*
54-
star_salmon/qualimap/*/qualimapReport.html
55-
star_salmon/qualimap/*/rnaseq_qc_results.txt
56-
star_salmon/rseqc/bam_stat/*.bam_stat.txt
57-
star_salmon/rseqc/read_distribution/*.read_distribution.txt
58-
star_salmon/rseqc/{inner_distance,junction_annotation,junction_saturation,read_duplication}/{bed,log,pdf,rscript,txt,xls}/*
59-
star_salmon/samtools_stats/*.bam.{flagstat,idxstats,stats}
60-
star_salmon/stringtie/*.ballgown/t_data.ctab
61-
star_salmon/stringtie/*.gene.abundance.txt
62-
star_salmon/stringtie/*.{coverage,transcripts}.gtf
6348
trimgalore/*fastq.gz_trimming_report.txt
49+
{hisat2,star_salmon}/*.{bam,bam.bai}
50+
{hisat2,star_salmon}/bigwig/*.{forward,reverse}.bigWig
51+
{hisat2,star_salmon}/dupradar/box_plot/*_duprateExpBoxplot.pdf
52+
{hisat2,star_salmon}/dupradar/histogram/*_expressionHist.pdf
53+
{hisat2,star_salmon}/dupradar/scatter_plot/*_duprateExpDens.pdf
54+
{hisat2,star_salmon}/featurecounts/*.featureCounts.txt.summary
55+
{hisat2,star_salmon}/picard_metrics/*.MarkDuplicates.metrics.txt
56+
{hisat2,star_salmon}/qualimap/*/css/*
57+
{hisat2,star_salmon}/qualimap/*/images_qualimapReport/*
58+
{hisat2,star_salmon}/qualimap/*/qualimapReport.html
59+
{hisat2,star_salmon}/qualimap/*/rnaseq_qc_results.txt
60+
{hisat2,star_salmon}/rseqc/bam_stat/*.bam_stat.txt
61+
{hisat2,star_salmon}/rseqc/read_distribution/*.read_distribution.txt
62+
{hisat2,star_salmon}/rseqc/{inner_distance,junction_annotation,junction_saturation,read_duplication}/{bed,log,pdf,rscript,txt,xls}/*
63+
{hisat2,star_salmon}/samtools_stats/*.bam.{flagstat,idxstats,stats}
64+
{hisat2,star_salmon}/stringtie/*.ballgown/t_data.ctab
65+
{hisat2,star_salmon}/stringtie/*.gene.abundance.txt
66+
{hisat2,star_salmon}/stringtie/*.{coverage,transcripts}.gtf
6467
{salmon,star_salmon}/*/aux_info/fld.gz
6568
{salmon,star_salmon}/*/aux_info/meta_info.json
6669
{salmon,star_salmon}/*/libParams/flenDist.txt

tests/hisat2.nf.test

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ nextflow_pipeline {
1414

1515
then {
1616
// stable_name: All files + folders in ${params.outdir}/ with a stable name
17-
def stable_name = getAllFilesFromDir(params.outdir, true, ['pipeline_info/*.{html,json,txt}'], null)
17+
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
1818
// stable_path: All files in ${params.outdir}/ with stable content
19-
def stable_path = getAllFilesFromDir(params.outdir, false, null, 'tests/.nftignore')
19+
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore')
20+
// bam_files: All bam files
21+
def bam_files = getAllFilesFromDir(params.outdir, include: ['**/*.bam'])
2022
assertAll(
2123
{ assert workflow.success},
2224
{ assert snapshot(
@@ -25,9 +27,11 @@ nextflow_pipeline {
2527
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
2628
removeNextflowVersion("$outputDir/pipeline_info/nf_core_rnaseq_software_mqc_versions.yml"),
2729
// All stable path name, with a relative path
28-
getRelativePath(stable_name, outputDir),
30+
stable_name,
2931
// All files with stable contents
30-
stable_path
32+
stable_path,
33+
// All bam files
34+
bam_files.collect{ file -> [ file.getName(), bam(file.toString()).getReadsMD5() ] }
3135
).match() }
3236
)
3337
}
@@ -46,9 +50,9 @@ nextflow_pipeline {
4650

4751
then {
4852
// stable_name: All files + folders in ${params.outdir}/ with a stable name
49-
def stable_name = getAllFilesFromDir(params.outdir, true, ['pipeline_info/*.{html,json,txt}'], null)
53+
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
5054
// stable_path: All files in ${params.outdir}/ with stable content
51-
def stable_path = getAllFilesFromDir(params.outdir, false, null, 'tests/.nftignore')
55+
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore')
5256
assertAll(
5357
{ assert workflow.success},
5458
{ assert snapshot(
@@ -57,7 +61,7 @@ nextflow_pipeline {
5761
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
5862
removeNextflowVersion("$outputDir/pipeline_info/nf_core_rnaseq_software_mqc_versions.yml"),
5963
// All stable path name, with a relative path
60-
getRelativePath(stable_name, outputDir),
64+
stable_name,
6165
// All files with stable contents
6266
stable_path
6367
).match() }

0 commit comments

Comments
 (0)