-
Notifications
You must be signed in to change notification settings - Fork 690
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
Fastq screen #3574
Merged
Merged
Fastq screen #3574
Changes from all commits
Commits
Show all changes
256 commits
Select commit
Hold shift + click to select a range
92c8a67
use id as index name
snesic 13fd77b
prettier yml
snesic 84551ed
Update modules/nf-core/fastqscreen/buildfromindex/main.nf
SPPearce e1e5346
Merge branch 'master' into fastq_screen
SPPearce 99c7123
remove comment
snesic ac168d7
Update tests/modules/nf-core/fastqscreen/buildfromindex/main.nf
snesic b105024
Update modules/nf-core/fastqscreen/fastqscreen/meta.yml
snesic be1390b
Update tests/modules/nf-core/fastqscreen/buildfromindex/main.nf
snesic 9088b35
change genome to database
snesic 9aab90d
rename input
snesic 3a1e332
remove meta2
snesic c47babb
update md5sum
snesic d667928
correct container
snesic b4c09ad
Update main.nf
snesic f2ffc4e
Update meta.yml
snesic cf4f2d6
remove inplace in sed to work on macos and linux
snesic 3621748
Gem2/gem2bedmappability (#3572)
nvnieuwk 1044859
Update genmap modules (#3579)
nvnieuwk 825e7d6
Gcnvcaller modules (#3581)
ramprasadn cee34e4
Update germlinecnvcaller (#3584)
ramprasadn 96f9900
Add singularity.registry = 'quay.io' for tests (#3499)
drpatelh 0621760
Automatically rename input files in cellranger module (#3537)
grst f6b8a73
Bump taxpasta version (#3586)
jfy133 df24a27
change authorship (#3580)
mapo9 1a5a7d5
sub-tool names must be one word - msisensorpro/msisomatic (#3590)
muffato 94aff59
License on sentieon script (#3594)
asp8200 62ebad4
New module: emboss/cons (#3583)
Joon-Klaps 423dddc
Ucsc update (#3588)
DLBPointon 8e7544f
Windowmasker update (#3587)
DLBPointon 817bb6a
Use `gzip -cd` because `gunzip` preserves the group ownership (#3593)
muffato 57c6b4c
update postprocessgermlinecnvcalls (#3596)
ramprasadn dc20759
update eklipse (#3598)
ramprasadn 920f0ce
new module: mmseqs2/createdb (#3601)
Joon-Klaps ae17c95
add peka module (#3402)
CharlotteAnne 10d3c42
salmon/quant update to handle multiple pairs of fastqs (#3438)
anoronh4 849d506
Metaphlan4 update: add --index (#3604)
LilyAnderssonLee a141bf8
Update bcftools query (#3605)
nvnieuwk 1f8c181
New module: mmseqs/search (#3595)
Joon-Klaps b4a0fba
New module: mmseqs/cluster (#3600)
Joon-Klaps 419fafd
New module: mmseqs/createtsv (#3603)
Joon-Klaps 6cb4212
Add geoquery/getgeo (#3585)
6a88dac
bam_markduplicates_samtools (#3606)
priyanka-surana 5cd20f6
FASTQ_ALIGN_BWAALN: Fixes bwa_aln subworkflow inconsistency with read…
jfy133 a3abf7b
Add mapAD/map (#3609)
jch-13 97c6087
Add proteus module (#3578)
WackerO 2d04695
Update manta modules (#3615)
maxulysse c32c0e6
add varlociraptor call subcommand (#3529)
FriederikeHanssen c441209
add new module iCount-mini/metagene (#3612)
CharlotteAnne 7edc9f0
Newmodule ngmerge (#3626)
CharlotteAnne 8005a25
NEW MODULE: PURECLIP (#3624)
CharlotteAnne 06733d8
fix integer overflow (#3620)
sstrong99 d231c0b
Fix metaeuk_easypredict when using mmseqs database (#3525)
prototaxites a1444ee
3630 add unstitched reads as emitted output of ngmerge (#3632)
CharlotteAnne b3173a9
Update vardictjava (#3633)
nvnieuwk a287fb5
Adding modules from #scrnaseq for simpleaf (#3619)
ead3f86
update icount mini version (#3640)
CharlotteAnne 91c7b82
Bump taxpasta version (biocontainer not yet available) (#3639)
jfy133 2b5c356
Purecn/run (#3140)
aldosr 6037b59
new module: samtools/import (#3642)
matthdsm 16720b4
Adding seqkit sliding command (#3637)
DLBPointon 1ccce75
Hicexplorer hicpca (#2933)
jianhong 45955f3
Fix bug in pyrodigal module (#3643)
jasmezz e3665cb
Update gecco/run (#3652)
jasmezz a82f71f
New module: instrain/compare (#3623)
CarsonJM 8ef2693
Update LAST modules to v1453 (#3303)
johannesnicolaus 2605861
Hisat2-build: index construction w/ truly optional inputs (#3649)
JackCurragh bdab015
update metaphlan module (#3661)
LilyAnderssonLee e6ebe45
CNVKit 0.9.10 update (#3651)
adamrtalbot ae667bd
Update gatk3 modules (#3660)
TCLamnidis 2a86f58
Update tiddit to v3.6.1 (#3663)
asp8200 fb809db
Update stubs for samtools flagstat (#3657)
ramsainanduri f288d50
R differential modules control over output prefixes (#3664)
3685123
Update stubs for samtools idxstats (#3665)
ramsainanduri 3a96faf
Bump ensembl-vep modules to 110.0 (#3658)
maxulysse a127913
Remove containers with cache with snpEff too (#3670)
maxulysse 4f9be87
Update stubs for bwa mem (#3671)
ramsainanduri f94a3e0
Additional optional output to homer/annotatepeaks (#3667)
lnblum 88c5c2d
Hisat2 align splicesitesoptional (#3656)
JackCurragh 10204f8
Fix invalid GATK container (#3673)
adamrtalbot deb1bc6
Update: bamtools, gstama, ultra (#3655)
sguizard 2104443
Fix centrifuge: reduce number of input channels (#3674)
jfy133 706e30a
Github Actions uses fixed job names for branch protection rules (#3677)
adamrtalbot 1fa0301
changed to version 0.4.0 (#3676)
yumisims d9bf13d
Update kmcp modules (#3680)
sofstam b76b952
Move conda-checks (first batch) (#3686)
asp8200 ca96ff7
Hierarchy of tests applied in order (#3679)
adamrtalbot d97bd9d
Add seqkit/fx2tab module (#3650)
heuermh 7781483
Move conda-checks (third batch) (#3692)
asp8200 8bfe6c3
Move conda-checks (second batch) (#3690)
asp8200 aaa7c7b
Add snakemake module (#3682)
adamrtalbot 7c3699a
ADD MODULE: Famsa guidetree (#3691)
luisas 6482101
Updating multiqc to v1.15 (#3701)
asp8200 c0e6692
add stub tests for two stubborn modules (#3702)
FriederikeHanssen 8fccded
Modify subworkflows to pass new nf-core linting (#3672)
mirpedrol 997f49d
Add module mmseqs easysearch (#3699)
luisas a050ed7
New module: galah (#3666)
prototaxites 8cb0451
Move conda-checks (fourth batch) (#3694)
asp8200 5479b6b
Update shinyngs, remove na.omit() from proteus (#3707)
WackerO 705541b
Updating output-prefix for sentieon-bwaindex (#3708)
asp8200 ce030f3
Extra parenthesis removed and added stub (#3710)
saulpierotti e973f8f
Add GATK's CreateReadCountPanelOfNormals and DenoiseReadCounts (#3709)
ramprasadn fe0556c
Move conda-checks (fifth batch) (#3704)
asp8200 94a4de9
Adding extra meta-fields for sentieon/applyvarcal (#3716)
asp8200 ddc1312
Update bclconvert readme (#3646)
matthdsm cd2b8f4
Add sentieon datametrics (#3715)
ramprasadn 76e3ac5
Add module famsa_align (#3697)
luisas e726e24
Adding extra meta-fields for sentieon/bwamem (#3717)
asp8200 efd22a8
Update CONCOCT_CONCOCT process label (#3669)
prototaxites cdb525b
Adding extra meta-fields for sentieon/dedup (#3718)
asp8200 d91eef2
Update other concoct containers (#3719)
prototaxites 109724d
Add seqkit/tab2fx module (#3712)
heuermh 889c1f6
Add sentieon readwriter (#3721)
ramprasadn ae44a23
Move conda-checks (sixth batch) (#3713)
asp8200 0c5d4e7
Add sentieon dnascope (#3722)
ramprasadn 808a385
Update bcftools stats (#3703)
TCLamnidis 0f103da
fixup: Snakemake meta.yml was incorrect (#3728)
adamrtalbot d7ec646
Move conda-checks (seventh batch) (#3723)
asp8200 b2374cc
METABAT2: reduced number of mv operations (#3732)
adamrtalbot a1addd5
update sentieon recipes (#3733)
ramprasadn 18ccfcc
Add module: Clustalo guidetree (#3730)
luisas da925e2
Add sentieon dnamodelapply (#3726)
ramprasadn f108ed6
Add module: Clustalo align (#3734)
luisas dc2d5b5
GHA use shared singularity cache (#3738)
adamrtalbot 26dc8f7
Add sentieon wgsmetrics (#3727)
ramprasadn b627a57
FastK has got a -M option to control the memory usage (#3742)
muffato 220c0bb
Ashlar (#3551)
RobJY 8d0ad10
Mafft version update (#3745)
muffato 0807efd
Parabricks use stageInMode to prevent unpredictable file operations w…
adamrtalbot d25e04c
This MD5 differs between Conda and Singularity (#3746)
muffato 3c14da7
Mmseqs: Documentation fix #3739 (#3743)
kenibrewer 5a62c68
add bedtools groupby (#3751)
mashehu 6038d0f
Add filter_vep (#3750)
ramprasadn 2f76c34
Fixed bug raised in issue #3747 (#3748)
a4000 2abc283
Fix Snakemake output channel (#3754)
adamrtalbot ba4644d
Module quast update to meet guidelines again (#3753)
Joon-Klaps 157cfed
Update test_data.config (#3761)
saulpierotti 39db7cd
update gfaffix to 0.1.5 (#3767)
subwaystation f476d50
update dumpsoftwareversions (#3768)
ramprasadn 7790772
Add sentieon tnscope (#3760)
ramprasadn bdd5372
Adding stubs to three Sentieon modules (#3776)
asp8200 5193fc9
update smoothxg to v0.7.1 (#3775)
subwaystation f79adc0
new module: Pairtools stats (#3631)
nservant 74aa5a7
[pairtools/sort] Update memory usage (#3627)
nservant 8933b32
kallisto: add meta information for references (#3777)
rannick a8ae8f1
Fix filename check for cellranger count (#3780)
grst 3b160d3
Stitch (#3766)
saulpierotti 0d963ab
STAR: update (#3771)
rannick 600fc9e
update arriba to 2.4.0 and add meta info to references (#3770)
rannick f83bfe8
qualimap/rnaseq: add meta information for references (#3779)
rannick 1413646
Update taxpasta 0.5.0 (#3782)
sofstam 9e101d6
New module: star/starsolo (#3772)
Joaodemeirelles abe71f6
Update bakta to v1.8.2 (#3784)
jasmezz a88aead
New module: umitools/group (#3765)
Joon-Klaps aedbfb0
Update amrfinderplus (#3787)
jasmezz 65b8cc6
ci: Switch to setup-nextflow (#3795)
edmundmiller 108d1b4
Update SAMTOOLS_DEPTH (#3801)
nevinwu 5c2cb4f
BUSCO: additional outputs (#3289)
priyanka-surana 1cca032
Added support for multiple regions and added per-site r^2 optional ou…
saulpierotti db386ab
Update sentieon dnascope (#3790)
asp8200 11279eb
bump wfmash to v0.10.5 (#3806)
subwaystation 80d508d
bump odgi modules to v0.8.3 (#3805)
subwaystation 9bac432
Re-structure nf-test test files (#3807)
adamrtalbot f466953
sentieon/dnascope : Handling args (#3811)
asp8200 37ca1a0
Update lofreq call & lofreq callparallel modules (#3812)
nevinwu 2ace4ac
Add mitohifi/mitohifi module (#3573)
ksenia-krasheninnikova ca577a9
Added new module csvtk/join (#3706)
anoronh4 4d3d993
update GATK's annotateintervals and filterintervals, and CNVkit's bat…
ramprasadn 8af6c12
update GTDB-tk to 2.3.2 (#3791)
maxibor 89a21c1
Make fasta_align_bwa explicitly note that the fasta channel requires …
SPPearce 7fb5cf8
Update bamcmp (#3803)
SPPearce cee0835
update germlinecnvcaller (#3820)
ramprasadn d29c7d5
add kalign (#3825)
luisas 02a1d46
Update stub and relevant tests for gatk's germlinecnvcaller (#3824)
ramprasadn 38b3b1a
Update NGSCheckMate/ncm (#3827)
SPPearce 8c3acbc
Update taxpasta version to 0.6.0 (#3830)
LilyAnderssonLee 4c93ed1
Setting temp-dir for BCFTOOLS_SORT (#3832)
asp8200 e5134a8
Picard modules: Include check input-ouput naming convention (#3823)
Joon-Klaps 60adc25
Add prefix to bwa/index (#3835)
nvnieuwk 27e842b
Update the biocontainer link (#3836)
LilyAnderssonLee 444a243
fix empty channel assignment in FASTQ_TRIM_FASTP_FASTQC subworkflow (…
Daniel-VM cc03de2
bump shinyngs (#3834)
pinin4fjords f7326a9
update version controlfreec (#3842)
FriederikeHanssen 0d1cb58
FIX: Disable JVM hotspot in gatk4 modules (#3844)
maxulysse a909dbb
Expansionhunter 5.0.0 (#3845)
nvnieuwk 97a8043
Seqtk seq 1.4 (#3846)
erikrikarddaniel 1017fea
Ngscheckmate fastq (#3838)
SPPearce b36e593
Learnmsa align (#3849)
luisas 3130234
Add INITIALISE subworkflow for starting nf-core pipelines (#3847)
adamrtalbot 1918fa5
Flip order of operations in intialise so --help doesn't error if --in…
adamrtalbot b6364b7
INITIALISE uses take and emit (#3852)
adamrtalbot 7a794a1
BRACKEN_BRACKEN: add extra missing output file (#3853)
jfy133 824ba8f
New module: GEM3 (#3837)
miqalvarez 4be2bef
Fix initialise linting (#3860)
mashehu 58964d3
add linting for subworkflows to ci (#3861)
mashehu 2f9c8b0
remove 'subworkflows/' prefix in linting command (#3863)
mashehu b937044
Add license to cellranger count renaming script. (#3862)
grst f5be9fb
Fix output for bcl2fastq & bclconvert (#3796)
Aratz 31b8e3b
fix variable name (#3866)
mashehu 6952108
add new module for conifer (#3763)
icaromsc 9fc367a
Add samtools reheader (#3869)
LouisLeNezet 853c4e5
FIX: remove spaces in controlfreec modules (#3870)
maxulysse d47f03d
update KrakenUniq version to the latest (#3873)
LilyAnderssonLee b0dfcec
Add missing output to linting CI (#3877)
mashehu c115cad
Tcoffee align (#3855)
luisas a2c458a
Add linting ci (#3878)
mashehu 188f1dd
Fix linting ci (#3882)
mashehu 9b577ef
Fix typo (#3880)
luisas 7f5b376
New module: quilt/quilt (#3804)
atrigila 39d7fc8
Add NONPAREIL (#3885)
jfy133 a8aaaa6
Blastp (#3888)
vagkaratzas ac39ace
Blast (#3889)
vagkaratzas dbb2835
CUSTOM/MATRIXFILTER - NA handling (#3868)
WackerO 0f8a50d
Add config option to manta modules (#3890)
nvnieuwk 5cafadf
Update main.nf to include stub (#3876)
DLBPointon 2674cc6
add GITHUB_TOKEN and use it for paths-filter instead of the default g…
mirpedrol 9e9332e
Fix variable typo in amrfinderplus/run (#3892)
jasmezz 399f91b
Bamcmp sw (#3802)
SPPearce df01462
Vcf impute glimpse multiple input bug correction (#3875)
LouisLeNezet 8679b83
Modules stub (#3883)
LouisLeNezet ba8939b
TOPAS/GenConS (#3662)
aidaanva a1db742
update fcsadaptor (#3886)
yumisims 94cd90b
Added blat module (#3736)
d-jch f942581
new subworkflow bam_cnv_wisecondorx (#3538)
nvnieuwk 9e63355
Bug in stub section (#3897)
saulpierotti 846d93a
Blast - updated blastp test to use proteome instead of genome + check…
vagkaratzas 563e714
remove comment
snesic fc6ac4d
Update tests/modules/nf-core/fastqscreen/buildfromindex/main.nf
snesic 4a1ab91
Update modules/nf-core/fastqscreen/fastqscreen/meta.yml
snesic 34d040c
Update tests/modules/nf-core/fastqscreen/buildfromindex/main.nf
snesic 1e44752
change genome to database
snesic 6a4081b
rename input
snesic 9dd9ee5
remove meta2
snesic bf0da0b
update md5sum
snesic f73bfcb
correct container
snesic 7796ac5
Update main.nf
snesic 93ff284
Update meta.yml
snesic b0a5e27
remove inplace in sed to work on macos and linux
snesic 1a7266d
Merge branch 'fastq_screen' of https://github.com/JPejovicApis/module…
snesic 47fc6fa
Merge branch 'fastq_screen' of https://github.com/JPejovicApis/module…
snesic 0a68d65
correct pytest_modules and prettier
snesic f6d91b9
Merge branch 'nf-core:master' into fastq_screen
snesic 948be88
Merge branch 'master' into fastq_screen
SPPearce 8f45c25
Add nf-test for buildfromindex
SPPearce 5c8e9de
Add nf-test for fastqscreen
SPPearce dc2cf3f
Update nf-test to check stable files
SPPearce 11e813e
Move setup block to shared
SPPearce fb79246
Update nftest
SPPearce 91f2996
Update test
SPPearce a62acc0
Update modules/nf-core/fastqscreen/buildfromindex/tests/main.nf.test
SPPearce 457921b
Update modules/nf-core/fastqscreen/fastqscreen/tests/main.nf.test
SPPearce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
name: "fastqscreen_buildfromindex" | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- defaults | ||
dependencies: | ||
- "bioconda::fastq-screen=0.15.3" |
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,69 @@ | ||
process FASTQSCREEN_BUILDFROMINDEX { | ||
label 'process_single' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/fastq-screen:0.15.3--pl5321hdfd78af_0': | ||
'biocontainers/fastq-screen:0.15.3--pl5321hdfd78af_0'}" | ||
|
||
input: | ||
val(genome_names) | ||
path(indexes), stageAs: "dir*" | ||
|
||
output: | ||
path("FastQ_Screen_Genomes"), emit: database | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
dir = "FastQ_Screen_Genomes" | ||
folder = indexes.collect { it.toString() } | ||
database = [genome_names, folder].transpose() | ||
copy_indexes = folder.collect { "cp -r ${it} $dir/${it}"}.join(" && ") | ||
|
||
// Folder name and index (within folder) name could be different - use bash to look for index name | ||
config = database | ||
.collect { "########## ${it[0]} \nDATABASE ${it[0]} $dir/${it[1]}/${it[1] + '_to_be_replaced'}" } | ||
.join("\n\n") | ||
.replace("\n", "\\n") | ||
|
||
""" | ||
mkdir $dir | ||
$copy_indexes | ||
|
||
echo "$config" > fastq_screen.conf | ||
sed 's/\\\\n/\\n/g' fastq_screen.conf > $dir/fastq_screen.conf | ||
echo "Replace folder name real index name" | ||
|
||
for f in ${folder.join(' ')} | ||
do | ||
TO_REPLACE=\${f}_to_be_replaced | ||
|
||
REPLACE_WITH=(\$f"/*.rev.1.bt2") | ||
REPLACE_WITH=\$(basename \$REPLACE_WITH) | ||
REPLACE_WITH=\${REPLACE_WITH%%.rev.1.bt2} | ||
|
||
sed "s/\$TO_REPLACE/\$REPLACE_WITH/g" $dir/fastq_screen.conf > new_conf.conf | ||
mv new_conf.conf $dir/fastq_screen.conf | ||
done | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
fastqscreen: \$(echo \$(fastq_screen --version 2>&1) | sed 's/^.*FastQ Screen v//; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
dir = "FastQ_Screen_Genomes" | ||
""" | ||
mkdir $dir | ||
touch $dir/fastq_screen.conf | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
fastqscreen: \$(echo \$(fastq_screen --version 2>&1) | sed 's/^.*FastQ Screen v//; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
} |
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,34 @@ | ||
name: "fastqscreen_buildfromindex" | ||
description: Build fastq screen config file from bowtie index files | ||
keywords: | ||
- build | ||
- index | ||
- genome | ||
- reference | ||
tools: | ||
- "fastqscreen": | ||
description: "FastQ Screen allows you to screen a library of sequences in FastQ format against a set of sequence databases so you can see if the composition of the library matches with what you expect." | ||
homepage: "https://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/" | ||
documentation: "https://stevenwingett.github.io/FastQ-Screen/" | ||
tool_dev_url: "https://github.com/StevenWingett/FastQ-Screen/archive/refs/tags/v0.15.3.zip" | ||
doi: "10.5281/zenodo.5838377" | ||
licence: ["GPL-3.0-or-later"] | ||
input: | ||
- genome_names: | ||
type: string | ||
description: List of names for each index | ||
- indexes: | ||
type: directory | ||
description: Bowtie2 genome directories containing index files | ||
output: | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
- database: | ||
type: directory | ||
description: fastq screen database folder containing config file and index folders | ||
pattern: "FastQ_Screen_Genomes" | ||
authors: | ||
- "@snesic" | ||
- "@JPejovicApis" |
71 changes: 71 additions & 0 deletions
71
modules/nf-core/fastqscreen/buildfromindex/tests/main.nf.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,71 @@ | ||
nextflow_process { | ||
|
||
name "Test Process FASTQSCREEN_BUILDFROMINDEX" | ||
script "../main.nf" | ||
process "FASTQSCREEN_BUILDFROMINDEX" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "fastqscreen" | ||
tag "fastqscreen/buildfromindex" | ||
tag "bowtie2/build" | ||
|
||
setup { | ||
|
||
run("BOWTIE2_BUILD") { | ||
script "../../../bowtie2/build/main.nf" | ||
process { | ||
""" | ||
input[0] = Channel.from([ | ||
[[id: "sarscov2"], file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)], | ||
[[id: "human"] , file(params.test_data['homo_sapiens']['genome']['genome_21_fasta'], checkIfExists: true)] | ||
]) | ||
""" | ||
} | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - human") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = BOWTIE2_BUILD.out.index.map{meta, index -> meta.id}.collect() | ||
input[1] = BOWTIE2_BUILD.out.index.map{meta, index -> index}.collect() | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out.database, process.out.versions).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - human - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = BOWTIE2_BUILD.out.index.map{meta, index -> meta.id}.collect() | ||
input[1] = BOWTIE2_BUILD.out.index.map{meta, index -> index}.collect() | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
71 changes: 71 additions & 0 deletions
71
modules/nf-core/fastqscreen/buildfromindex/tests/main.nf.test.snap
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,71 @@ | ||
{ | ||
"database": { | ||
"content": [ | ||
[ | ||
[ | ||
[ | ||
"genome.1.bt2:md5,cbe3d0bbea55bc57c99b4bfa25b5fbdf", | ||
"genome.2.bt2:md5,47b153cd1319abc88dda532462651fcf", | ||
"genome.3.bt2:md5,4ed93abba181d8dfab2e303e33114777", | ||
"genome.4.bt2:md5,c25be5f8b0378abf7a58c8a880b87626", | ||
"genome.rev.1.bt2:md5,52be6950579598a990570fbcf5372184", | ||
"genome.rev.2.bt2:md5,e3b4ef343dea4dd571642010a7d09597" | ||
], | ||
[ | ||
"genome.1.bt2:md5,2fbc8eeaf480f03b3a2362a782fa5755", | ||
"genome.2.bt2:md5,a5300e3cf590d4cd8bd5521cac6337d6", | ||
"genome.3.bt2:md5,d2a7a0e1c9891e847a15781c0695b84e", | ||
"genome.4.bt2:md5,a55dc4b09e3e00586de6963800c95b9a", | ||
"genome.rev.1.bt2:md5,93c07f7d04e5da6bf1322ad5f46ac806", | ||
"genome.rev.2.bt2:md5,c3fa30132c0c9b9bc7868059e8e23466" | ||
], | ||
"fastq_screen.conf:md5,ca56e866c7006a46bdfe4e751e787265" | ||
] | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-01T20:37:34.647221" | ||
}, | ||
"versions": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,c2bcf85b00046c72d5dccd2dba8ac35c" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-01T20:37:35.126085" | ||
}, | ||
"sarscov2 - human - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
"fastq_screen.conf:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,c2bcf85b00046c72d5dccd2dba8ac35c" | ||
], | ||
"database": [ | ||
[ | ||
"fastq_screen.conf:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,c2bcf85b00046c72d5dccd2dba8ac35c" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-01T20:39:14.913696" | ||
} | ||
} |
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,2 @@ | ||
fastqscreen/buildfromindex: | ||
- "modules/nf-core/fastqscreen/buildfromindex/**" |
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,9 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
name: "fastqscreen_fastqscreen" | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- defaults | ||
dependencies: | ||
- "bioconda::fastq-screen=0.15.3" |
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,54 @@ | ||
process FASTQSCREEN_FASTQSCREEN { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/fastq-screen:0.15.3--pl5321hdfd78af_0': | ||
'biocontainers/fastq-screen:0.15.3--pl5321hdfd78af_0'}" | ||
|
||
input: | ||
tuple val(meta), path(reads) // .fastq files | ||
path database | ||
|
||
output: | ||
tuple val(meta), path("*.txt") , emit: txt | ||
tuple val(meta), path("*.png") , emit: png | ||
tuple val(meta), path("*.html"), emit: html | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def args = task.ext.args ?: "" | ||
|
||
""" | ||
fastq_screen --threads ${task.cpus} \\ | ||
--aligner bowtie2 \\ | ||
--conf ${database}/fastq_screen.conf \\ | ||
$reads \\ | ||
$args \\ | ||
--outdir . | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
fastqscreen: \$(echo \$(fastq_screen --version 2>&1) | sed 's/^.*FastQ Screen v//; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch test_1_screen.html | ||
touch test_1_screen.png | ||
touch test_1_screen.txt | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
fastqscreen: \$(echo \$(fastq_screen --version 2>&1) | sed 's/^.*FastQ Screen v//; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
|
||
} |
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,44 @@ | ||
name: fastqscreen_fastqscreen | ||
description: Align reads to multiple reference genomes using fastq-screen | ||
keywords: | ||
- align | ||
- map | ||
- fasta | ||
- fastq | ||
- genome | ||
- reference | ||
tools: | ||
- "fastqscreen": | ||
description: "FastQ Screen allows you to screen a library of sequences in FastQ format against a set of sequence databases so you can see if the composition of the library matches with what you expect." | ||
homepage: "https://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/" | ||
documentation: "https://stevenwingett.github.io/FastQ-Screen/" | ||
tool_dev_url: "https://github.com/StevenWingett/FastQ-Screen/archive/refs/tags/v0.15.3.zip" | ||
doi: "10.5281/zenodo.5838377" | ||
licence: ["GPL-3.0-or-later"] | ||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- reads: | ||
type: file | ||
description: | | ||
List of input FastQ files of size 1 and 2 for single-end and paired-end data, | ||
respectively. | ||
- database: | ||
type: directory | ||
description: fastq screen database folder containing config file and index folders | ||
pattern: "FastQ_Screen_Genomes" | ||
output: | ||
- fastq_screen: | ||
type: directory | ||
description: Output fastq_screen file containing alignment statistics | ||
pattern: "*.{_fq_screen}" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@snesic" | ||
- "@JPejovicApis" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 indentation seems a bit weird 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.
To be honest, I don't know how we are supposed to ident things like this