-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test(narfmap): Add segfault test * fix(narfmap): Clean up log error * test(narfmap): Should segfault * chore(narfmap): Bump to 1.4.2 * test(narfmap): Mark test as passing bioinformaticsorphanage/NARFMAP#10 * style: Add extra tag for nf-core/lint * test: Update all the snapshot declarations * chore: Add a TODO for poddar's test
- Loading branch information
1 parent
1ceaa8b
commit ccedf37
Showing
10 changed files
with
251 additions
and
41 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
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,67 @@ | ||
nextflow_process { | ||
|
||
name "Test Process NARFMAP_ALIGN" | ||
script "../main.nf" | ||
process "NARFMAP_ALIGN" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "narfmap" | ||
tag "narfmap/align" | ||
tag "narfmap/hashtable" | ||
tag "bug" | ||
|
||
test("This should segfault") { | ||
|
||
setup { | ||
run("NARFMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/GRCh38_chr21.fa', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/nascent/testdata/SRX882903_T2.fastq.gz', checkIfExists: true) | ||
] | ||
input[1] = NARFMAP_HASHTABLE.out.hashmap | ||
input[2] = false //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.bam, | ||
process.out.versions, | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
).match() | ||
} | ||
) | ||
} | ||
|
||
} | ||
|
||
// TODO | ||
// https://nfcore.slack.com/archives/CGFUX04HZ/p1718268624579699?thread_ts=1718108323.285709&cid=CGFUX04HZ | ||
// https://ftp.ncbi.nlm.nih.gov/ReferenceSamples/giab/data/AshkenazimTrio/HG002_NA24385_son/NIST_HiSeq_HG002_Homogeneity-10953946/HG002_HiSeq300x_fastq/140528_D00360_0018_AH8VC6ADXX/Project_RM8391_RM8392/Sample_2A1/2A1_CGATGT_L001_R1_001.fastq.gz | ||
// https://ftp.ncbi.nlm.nih.gov/ReferenceSamples/giab/data/AshkenazimTrio/HG002_NA24385_son/NIST_HiSeq_HG002_Homogeneity-10953946/HG002_HiSeq300x_fastq/140528_D00360_0018_AH8VC6ADXX/Project_RM8391_RM8392/Sample_2A1/2A1_CGATGT_L001_R2_001.fastq.gz | ||
// {{dragen}} \ | ||
// -r /home/tigem/h.poddar/short_reads_pipelines/ref_genome/GRCh37/hash/ \ | ||
// -1 /home/tigem/h.poddar/DRAGMAP/2A1_CGATGT_L001_R1_001.fastq.gz \ | ||
// -2 /home/tigem/h.poddar/DRAGMAP/2A1_CGATGT_L001_R2_001.fastq.gz \ | ||
// | samtools view -h -O BAM - > aligned.bam | ||
|
||
} |
Oops, something went wrong.