-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create ASCAT nf tests and remove pytest #5314
base: master
Are you sure you want to change the base?
Conversation
// extended tests running with 1000 genomes data. Data is downloaded as follows: | ||
// wget http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/data/HG00154/alignment/HG00154.mapped.ILLUMINA.bwa.GBR.low_coverage.20101123.bam | ||
// wget http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/data/HG00154/alignment/HG00154.mapped.ILLUMINA.bwa.GBR.low_coverage.20101123.bam.bai | ||
// wget http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/data/HG00155/alignment/HG00155.mapped.ILLUMINA.bwa.GBR.low_coverage.20101123.bam | ||
// wget http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/data/HG00155/alignment/HG00155.mapped.ILLUMINA.bwa.GBR.low_coverage.20101123.bam.bai | ||
// wget https://www.dropbox.com/s/l3m0yvyca86lpwb/G1000_loci_hg19.zip | ||
// wget https://www.dropbox.com/s/3fzvir3uqe3073d/G1000_alleles_hg19.zip | ||
// wget https://www.dropbox.com/s/v0tgr1esyoh1krw/GC_G1000_hg19.zip | ||
// wget https://www.dropbox.com/s/50n7xb06x318tgl/RT_G1000_hg19.zip | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we could keep this info somewhere for local testing on input file changes. maybe we can add a readme here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I'm going to save it in a readme; where do you suggest I should save it? In modules/nf-core/ascat/tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is a good palce
|
||
then { | ||
assertAll ( | ||
{ assert process.success } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a check for the version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added; but unfortunately the test doesn't work, I get the following error: Path value cannot be null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when you ru the module manually do you get a versions file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the error when it runs { assert process.success }
so it doesn't run the test at all - could be something wrong with the way I declare the inputs?
input[1] = []
input[2] = []
input[3] = []
input[4] = []
input[5] = []
input[6] = []
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the pytest runs with the following:
ASCAT_SIMPLE ( input , [], [], [], [], [], [])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Path value cannot be null
issue solved by @sateeshperi - but test still not working
@maxulysse let's hold a bit on this PR; tests are not working yet 😣 |
Co-authored-by: Famke Bäuerle <[email protected]>
include { UNZIP as UNZIP_RT } from '../../../../modules/nf-core/unzip/main.nf' | ||
|
||
workflow test_ascat { | ||
input = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also update the path as in #5281 ? :)
@mauro-saporita Do you still have time to work on the proposed changes? |
I'm sorry lately I've been off the radar; busy with some other projects. I can work on this issue in June unless someone else would like to take it in the next week Hackathon event. |
@mauro-saporita I added the loci and allele files for WGS (maybe we need some for WES as well?): nf-core/test-datasets#1239 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can add these paths to the nf test code and then run the tests on your machine. If that works we can add the files to the test_data and update the paths.
input[1] = [] | ||
input[2] = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to test it out:
input[1] = [] | |
input[2] = [] | |
input[1] = [path('https://raw.githubusercontent.com/nf-core/test-datasets/d677699283dbbeb51876d1bb3c18fb687d1db4ea/data/genomics/homo_sapiens/illumina/ascat/G1000_alleles_WGS_hg38/G1000_alleles_hg38_chr21.txt')] | |
input[2] = [path('https://raw.githubusercontent.com/nf-core/test-datasets/d677699283dbbeb51876d1bb3c18fb687d1db4ea/data/genomics/homo_sapiens/illumina/ascat/G1000_loci_WGS_hg38/G1000_loci_hg38_chr21.txt')] |
input[1] = [] | ||
input[2] = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input[1] = [] | |
input[2] = [] | |
input[1] = [path('https://raw.githubusercontent.com/nf-core/test-datasets/d677699283dbbeb51876d1bb3c18fb687d1db4ea/data/genomics/homo_sapiens/illumina/ascat/G1000_alleles_WGS_hg38/G1000_alleles_hg38_chr21.txt')] | |
input[2] = [path('https://raw.githubusercontent.com/nf-core/test-datasets/d677699283dbbeb51876d1bb3c18fb687d1db4ea/data/genomics/homo_sapiens/illumina/ascat/G1000_loci_WGS_hg38/G1000_loci_hg38_chr21.txt')] |
PR checklist
Closes #5170
nf-test not working - pytest runs as expected but the nf-test I've created returns the following error:
Path value cannot be null
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda