Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWLloyd committed Aug 16, 2024
1 parent b8327f7 commit 477709b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions modules/bcftools/bcftools_gtct2vcf.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ process BCFTOOLS_GTC2VCF {
errorStrategy {(task.exitStatus == 140) ? {log.info "\n\nError code: ${task.exitStatus} for task: ${task.name}. Likely caused by the task wall clock: ${task.time} or memory: ${task.memory} being exceeded.\nAttempting orderly shutdown.\nSee .command.log in: ${task.workDir} for more info.\n\n"; return 'finish'}.call() : 'finish'}

container 'quay.io/jaxcompsci/gtc2vcf_with_tools:v2'
publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'bcftools' }", mode: 'copy'
publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'bcftools' }", pattern: "*.{vcf,tsv}", mode: 'copy'

input:
tuple val(sampleID), val(meta), path(gtc)

output:
tuple val(sampleID), val(meta), path('*_convert.bcf'), path('*_convert.bcf.csi'), path('*_convert.vcf'), path('*_convert.tsv'), emit: gtc2vcf
tuple val(sampleID), val(meta), path('*_convert.bcf'), path('*_convert.bcf.csi'), path('*_convert.vcf'), path('*_convert_info.tsv'), emit: gtc2vcf


script:
"""
bcftools +gtc2vcf --no-version -Ou \
Expand All @@ -25,7 +24,7 @@ process BCFTOOLS_GTC2VCF {
--egt ${params.egt_file} \
--gtcs ./ \
--fasta-ref ${params.ref_fa} \
--extra ${sampleID}_convert.tsv | \
--extra ${sampleID}_convert_info.tsv | \
bcftools sort -Ou -T ./bcftools. | \
bcftools norm --no-version -Ob -c x -f ${params.ref_fa} | \
tee ${sampleID}_convert.bcf | \
Expand Down
4 changes: 2 additions & 2 deletions modules/illumina/iaap_cli.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ process IAAP_CLI {

container 'quay.io/jaxcompsci/gtc2vcf_with_tools:v2'

publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'iaap_cli' }", pattern: "*.gtc", mode:'copy'
publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'iaap_cli' }", pattern: "*.log", mode:'copy'
publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'iaap_cli' }", pattern: "*.gtc", mode:'copy', enabled: params.keep_intermediate
publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'iaap_cli' }", pattern: "*.log", mode:'copy', enabled: params.keep_intermediate

input:
tuple val(sampleID), val(meta), path(red_idat), path(green_idat)
Expand Down

0 comments on commit 477709b

Please sign in to comment.