Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution for gene-level chromosome separated files input #71

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ process {
memory = { 1.GB * task.attempt }
}


withName: 'VALIDATE_COVARIATES' {
cpus = { 1 * task.attempt }
memory = { 1.GB * task.attempt }
Expand Down
3 changes: 1 addition & 2 deletions modules/local/regenie_step2_gene_tests.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process REGENIE_STEP2_GENE_TESTS {

input:
path step1_out
tuple val(filename), path(genotyped_plink_file)
tuple val(filename), path(genotyped_plink_file_bed), path(genotyped_plink_file_bim), path(genotyped_plink_file_fam)
val assoc_format
path phenotypes_file
path covariates_file
Expand Down Expand Up @@ -39,7 +39,6 @@ process REGENIE_STEP2_GENE_TESTS {
def writeMasks = params.regenie_write_bed_masks ? "--write-mask" : ''
def joint = params.regenie_gene_joint ? "--joint ${params.regenie_gene_joint}":''
def condition_list = params.regenie_condition_list ? "--condition-list $condition_list_file" : ''

"""
regenie \
--step 2 \
Expand Down
4 changes: 3 additions & 1 deletion workflows/nf_gwas.nf
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ workflow NF_GWAS {

if (genotypes_association_format == 'bed') {

Channel.fromFilePairs(genotypes_association, size: 3).set {step2_gene_tests_ch}
Channel.fromFilePairs(genotypes_association, size:3)
.map { tuple(it[1][0].baseName, it[1][0], it[1][1], it[1][2]) }
.set {step2_gene_tests_ch}

}

Expand Down