-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NF-TEST-ADDITIONS' into Template_update_3.0
- Loading branch information
Showing
10 changed files
with
179 additions
and
40 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
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,33 @@ | ||
# General Vales for all subpiplines and modules | ||
assembly_id: grTriPseu1 | ||
reference_hap1: /nfs/treeoflife-01/teams/tola/users/dp24/ear/TreeValTinyData/assembly/draft/grTriPseu1.fa | ||
reference_hap2: /nfs/treeoflife-01/teams/tola/users/dp24/ear/TreeValTinyData/assembly/draft/grTriPseu1-hap.fa | ||
reference_haplotigs: /nfs/treeoflife-01/teams/tola/users/dp24/ear/TreeValTinyData/assembly/draft/grTriPseu1-all_hap.fa | ||
|
||
# If a mapped bam already exists use the below + --mapped TRUE on the nextflow command else ignore. | ||
mapped_bam: [] | ||
|
||
merquryfk: | ||
fastk_hist: "./EMPTY.hist" | ||
fastk_ktab: "./EMPTY.ktab" | ||
|
||
# Used by both subpipelines | ||
longread: | ||
type: hifi | ||
dir: /nfs/treeoflife-01/teams/tola/users/dp24/ear/TreeValTinyData/genomic_data/pacbio/ | ||
|
||
curationpretext: | ||
aligner: minimap2 | ||
telomere_motif: TTAGGG | ||
hic_dir: /home/runner/work/ear/ear/TreeValTinyData/genomic_data/hic-arima/ | ||
btk: | ||
taxid: 352914 | ||
gca_accession: GCA_0001 | ||
lineages: "fungi_odb10" | ||
nt_database: /home/runner/work/ascc/ascc/NT_database/ | ||
nt_database_prefix: 18S_fungal_sequences | ||
diamond_uniprot_database_path: /home/runner/work/ascc/ascc/diamond/UP000000212_1234679_tax.dmnd | ||
diamond_nr_database_path: /home/runner/work/ascc/ascc/diamond/UP000000212_1234679_tax.dmnd | ||
ncbi_taxonomy_path: /home/runner/work/ascc/ascc/ncbi_taxdump/ | ||
ncbi_rankedlineage_path: /home/runner/work/ascc/ascc/ncbi_taxdump/rankedlineage.dmp | ||
config: /home/runner/work/ear/ear/conf/sanger-tol-btk.config |
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
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,16 @@ | ||
config { | ||
testsDir "tests" | ||
workDir ".nf-test" | ||
libDir "tests/lib" | ||
withTrace true | ||
autoSort false | ||
|
||
options "-dump-channels" | ||
|
||
plugins { | ||
load "[email protected]" | ||
} | ||
|
||
configFile "conf/test.config" | ||
profile "test" | ||
} |
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,49 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow main.nf" | ||
script "main.nf" | ||
tag "pipeline" | ||
tag "pipeline_sanger_tol" | ||
tag "full" | ||
|
||
test("Minimal run | No SANGER-TOL-* nested pipelines") { | ||
|
||
when { | ||
params { | ||
outdir = "${outputDir}" | ||
} | ||
} | ||
|
||
then { | ||
|
||
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ["pipeline_info/*.{html,json,txt}"]) | ||
|
||
def gfastats = getAllFilesFromDir(params.outdir, include: ['gfastats/_summary']) | ||
|
||
//def merquryfk = getAllFilesFromDir(params.outdir, include: ['merquryfk/*']) | ||
|
||
assertAll ( | ||
{assert workflow.success}, | ||
{assert snapshot( | ||
// Test for number of successful processes - should be 29 for a full run | ||
workflow.trace.succeeded().size(), | ||
|
||
removeNextflowVersion("$outputDir/pipeline_info/nf_core_pipeline_software_mqc_versions.yml"), | ||
|
||
stable_name, | ||
// GFASTATS should be a stable file as it is measuring metrics of the files | ||
// so nothing special needs to be done | ||
|
||
gfastats.size(), | ||
gfastats, | ||
|
||
// MERQURY_FK is running statistics on the input files | ||
// input files are also split between the two main input haps | ||
// need to actually test merqury first | ||
//merquryfk, | ||
|
||
).match()}, | ||
) | ||
} | ||
} | ||
} |
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,33 @@ | ||
{ | ||
"Minimal run | No SANGER-TOL-* nested pipelines": { | ||
"content": [ | ||
2, | ||
{ | ||
"CAT_CAT": { | ||
"pigz": "2.3.4" | ||
}, | ||
"GFASTATS": { | ||
"gfastats": "1.3.6" | ||
}, | ||
"Workflow": { | ||
"sanger-tol/ear": "v0.6.2" | ||
} | ||
}, | ||
[ | ||
"gfastats", | ||
"gfastats/grTriPseu1.assembly_summary", | ||
"pipeline_info", | ||
"pipeline_info/nf_core_pipeline_software_mqc_versions.yml" | ||
], | ||
0, | ||
[ | ||
|
||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2025-02-07T12:39:47.429262" | ||
} | ||
} |
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