Skip to content

Commit

Permalink
Merge pull request #479 from genomic-medicine-sweden/fixing_order
Browse files Browse the repository at this point in the history
Fix for getting chr sizes when fai is given
  • Loading branch information
jemten authored Jan 15, 2024
2 parents 7dea02a + 615039f commit 2dbd6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/prepare_references.nf
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ workflow PREPARE_REFERENCES {
SENTIEON_BWAINDEX_GENOME(ch_genome_fasta).index.set{ch_sentieonbwa}
SAMTOOLS_FAIDX_GENOME(ch_genome_fasta, [[],[]])
GATK_SD(ch_genome_fasta)
GET_CHROM_SIZES( SAMTOOLS_FAIDX_GENOME.out.fai )
ch_fai = Channel.empty().mix(ch_genome_fai, SAMTOOLS_FAIDX_GENOME.out.fai).collect()
GET_CHROM_SIZES( ch_fai )

// MT indices
ch_fai = Channel.empty().mix(ch_genome_fai, SAMTOOLS_FAIDX_GENOME.out.fai).collect()
SAMTOOLS_EXTRACT_MT(ch_genome_fasta, ch_fai)
ch_mt_fasta_in = Channel.empty().mix(ch_mt_fasta, SAMTOOLS_EXTRACT_MT.out.fa).collect()
SAMTOOLS_FAIDX_MT_SHIFT(ch_mt_fasta_in, [[],[]])
Expand Down

0 comments on commit 2dbd6ea

Please sign in to comment.