-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sample_name removal of non-alphanumeric characters and nf-test fo…
…r sample_name
- Loading branch information
1 parent
b55683d
commit 9e1e92a
Showing
5 changed files
with
63 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
sample,sample_name,insdc_accession | ||
SAMPLE1,S1,ERR1109373 | ||
ERROR1,S2,SRR999908 | ||
ERROR2,S3,SRR999934 | ||
SAMPLE2,S4,SRR13191702 | ||
SAMPLE1,S 1,ERR1109373 | ||
SAMPLE2,S2,ERR1109373 | ||
SAMPLE3,S2,SRR13191702 | ||
SAMPLE4,,SRR13191702 |
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
nextflow_workflow { | ||
|
||
name "Test workflow: workflows/fetchdatairidanext.nf" | ||
script "workflows/fetchdatairidanext.nf" | ||
workflow "FETCHDATAIRIDANEXT" | ||
tag "full workflow" | ||
tag "fetchdatairdanext" | ||
|
||
test("Samplesheets with sample_name") { | ||
tag "sample_name" | ||
when { | ||
params { | ||
input = "$baseDir/tests/data/add-samplesheet.csv" | ||
outdir = "output" | ||
} | ||
} | ||
|
||
then { | ||
assert workflow.success | ||
assert path("$launchDir/output").exists() | ||
|
||
// Check that reads have the correct filename when supplying a sample_name | ||
assert path("$launchDir/output/iridanext.output.json").exists() | ||
def iridanext_json = path("$launchDir/output/iridanext.output.json").json | ||
def iridanext_samples = iridanext_json.files.samples | ||
|
||
assert iridanext_samples.SAMPLE1 == [['path':'reads/S_1_ERR1109373_2.fastq.gz'], ['path':'reads/S_1_ERR1109373_1.fastq.gz']] | ||
assert iridanext_samples.SAMPLE2 == [['path':'reads/S2_ERR1109373_2.fastq.gz'], ['path':'reads/S2_ERR1109373_1.fastq.gz']] | ||
assert iridanext_samples.SAMPLE3 == [['path':'reads/S2_SRR13191702_2.fastq.gz'], ['path':'reads/S2_SRR13191702_1.fastq.gz']] | ||
assert iridanext_samples.SAMPLE4 == [['path':'reads/SRR13191702_2.fastq.gz'], ['path':'reads/SRR13191702_1.fastq.gz']] | ||
|
||
|
||
} | ||
} | ||
|
||
} |
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