Skip to content

Commit

Permalink
try to fix samtools/faidx
Browse files Browse the repository at this point in the history
  • Loading branch information
subwaystation committed Aug 21, 2023
1 parent 5375a6b commit c28f08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion subworkflows/local/community.nf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ workflow COMMUNITY {
TABIX_BGZIP(EXTRACT_COMMUNITIES.out.community_fasta)
ch_versions = ch_versions.mix(TABIX_BGZIP.out.versions)

SAMTOOLS_FAIDX(TABIX_BGZIP.out.output)
SAMTOOLS_FAIDX(TABIX_BGZIP.out.output, [[],[]])
ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions)

emit:
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/input_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ workflow INPUT_CHECK {
// TODO We want to check, if the input file was actually compressed with bgzip with the upcoming grabix module.
// For now we assume it was bgzip. If not WFMASH will complain instantly anyhow.
if (!fai_path.exists() || !gzi_path.exists()) { // the assumption is that none of these files exist if only one does not exist
SAMTOOLS_FAIDX(meta_fasta)
SAMTOOLS_FAIDX(meta_fasta, [[],[]])
fai = SAMTOOLS_FAIDX.out.fai
gzi = SAMTOOLS_FAIDX.out.gzi
ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions)
Expand All @@ -50,7 +50,7 @@ workflow INPUT_CHECK {
meta_fasta = tuple([ id:fasta_file_name ], fasta)
TABIX_BGZIP(meta_fasta)
ch_fasta = TABIX_BGZIP.out.output
SAMTOOLS_FAIDX(ch_fasta)
SAMTOOLS_FAIDX(ch_fasta, [[],[]])
gzi = SAMTOOLS_FAIDX.out.gzi
fai = SAMTOOLS_FAIDX.out.fai
ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions)
Expand Down

0 comments on commit c28f08d

Please sign in to comment.