Skip to content

Commit

Permalink
diamond blast should run with the --taxon-exclude option
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Jun 24, 2024
1 parent 2ae99f6 commit cfac699
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 5 deletions.
6 changes: 4 additions & 2 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
"diamond/blastp": {
"branch": "master",
"git_sha": "b29f6beb86d1d24d680277fb1a3f4de7b8b8a92c",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/diamond/blastp/diamond-blastp.diff"
},
"diamond/blastx": {
"branch": "master",
"git_sha": "b29f6beb86d1d24d680277fb1a3f4de7b8b8a92c",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/diamond/blastx/diamond-blastx.diff"
},
"fastawindows": {
"branch": "master",
Expand Down
29 changes: 29 additions & 0 deletions modules/nf-core/diamond/blastp/diamond-blastp.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions modules/nf-core/diamond/blastp/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions modules/nf-core/diamond/blastx/diamond-blastx.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions modules/nf-core/diamond/blastx/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion subworkflows/local/busco_diamond_blastp.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ workflow BUSCO_DIAMOND {
| transpose()
| filter { rank,id -> rank =~ /species/ }
| map { rank, id -> id}
| first
| set { ch_taxid }


Expand Down Expand Up @@ -116,7 +117,7 @@ workflow BUSCO_DIAMOND {
// Hardcoded to match the format expected by blobtools
def outext = 'txt'
def cols = 'qseqid staxids bitscore qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore'
DIAMOND_BLASTP ( ch_busco_genes, blastp, outext, cols )
DIAMOND_BLASTP ( ch_busco_genes, blastp, outext, cols, ch_taxid )
ch_versions = ch_versions.mix ( DIAMOND_BLASTP.out.versions.first() )


Expand Down
3 changes: 2 additions & 1 deletion subworkflows/local/run_blastx.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ workflow RUN_BLASTX {
fasta // channel: [ val(meta), path(fasta) ]
table // channel: [ val(meta), path(busco_table) ]
blastx // channel: [ val(meta), path(blastx_db) ]
taxon_id // channel: val(taxon_id)


main:
Expand All @@ -30,7 +31,7 @@ workflow RUN_BLASTX {
// Hardocded to match the format expected by blobtools
def outext = 'txt'
def cols = 'qseqid staxids bitscore qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore'
DIAMOND_BLASTX ( BLOBTOOLKIT_CHUNK.out.chunks, blastx, outext, cols)
DIAMOND_BLASTX ( BLOBTOOLKIT_CHUNK.out.chunks, blastx, outext, cols, taxon_id )
ch_versions = ch_versions.mix ( DIAMOND_BLASTX.out.versions.first() )


Expand Down
3 changes: 2 additions & 1 deletion workflows/blobtoolkit.nf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ workflow BLOBTOOLKIT {
PREPARE_GENOME.out.genome,
BUSCO_DIAMOND.out.first_table,
ch_blastx,
BUSCO_DIAMOND.out.taxon_id,
)
ch_versions = ch_versions.mix ( RUN_BLASTX.out.versions )

Expand All @@ -151,7 +152,7 @@ workflow BLOBTOOLKIT {
RUN_BLASTX.out.blastx_out,
PREPARE_GENOME.out.genome,
ch_blastn,
BUSCO_DIAMOND.out.taxon_id
BUSCO_DIAMOND.out.taxon_id,
)

//
Expand Down

0 comments on commit cfac699

Please sign in to comment.