@@ -2,9 +2,9 @@ process GCTA_CALCULATELDSCORES {
22 tag " ${ meta.id} "
33 label ' process_medium'
44 conda " ${ moduleDir} /environment.yml"
5- container " ${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
6- 'docker ://community.wave. seqera.io/library/gcta_r-base:31127c93877b38de' :
7- 'community.wave.seqera.io/library/gcta_r-base:31127c93877b38de' } "
5+ container " ${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
6+ ? 'https ://community-cr-prod. seqera.io/docker/registry/v2/blobs/sha256/ed/ed2d6a4b4f43f3230014aa67bb40feb0acbd7cc41ef0b0a895002f1befc6502c/data'
7+ : 'community.wave.seqera.io/library/gcta_r-base:31127c93877b38de'} "
88
99 input:
1010 tuple val(meta), path(bed), path(bim), path(fam)
@@ -13,19 +13,20 @@ process GCTA_CALCULATELDSCORES {
1313 output:
1414 tuple val(meta), path(" *_gcta_ld.score.ld" ), emit: ld_scores
1515 tuple val(meta), path(" *_snp_group1.txt" ), path(" *_snp_group2.txt" ), path(" *_snp_group3.txt" ), path(" *_snp_group4.txt" ), emit: snp_group_files
16- tuple val(" ${ task.process} " ), val(" gcta" ), eval(" gcta --version 2>&1 | grep 'version v' | tr -s ' ' | cut -d' ' -f3 | sed ' s/^v// '" ), emit: versions_gcta, topic: versions
16+ tuple val(" ${ task.process} " ), val(" gcta" ), eval(" gcta --version | sed -En ' s/^[*] version v([0-9.]*).*/ \\ 1/p '" ), emit: versions_gcta, topic: versions
1717
1818 when:
1919 task. ext. when == null || task. ext. when
2020
2121 script:
2222 def extra_args = task. ext. args ?: ' '
23+ def bfile_prefix = bed. baseName
2324 def prefix = task. ext. prefix ?: " ${ meta.id} "
2425
2526 """
2627
2728 gcta \\
28- --bfile ${ meta.id } \\
29+ --bfile ${ bfile_prefix } \\
2930 --ld-score-region ${ ld_score_region} \\
3031 --out ${ prefix} _gcta_ld \\
3132 --thread-num ${ task.cpus} ${ extra_args}
0 commit comments