Skip to content

Commit

Permalink
rename metas to sample_metas for more descriptive naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen31 committed Jan 13, 2025
1 parent 079080f commit 6c73e21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/local/create_pedigree_file/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ process CREATE_PEDIGREE_FILE {
'biocontainers/python:3.8.3' }"

input:
tuple val(meta), val(metas)
tuple val(meta), val(sample_metas)

output:
tuple val(meta), path("*.ped"), emit: ped
Expand All @@ -19,9 +19,9 @@ process CREATE_PEDIGREE_FILE {

script:
def prefix = task.ext.prefix ?: "${meta.id}"
def samples = (metas.collect().size() > 1) ? metas.sort{ a, b ->
def samples = (sample_metas.collect().size() > 1) ? sample_metas.sort{ a, b ->
// First sort on family_id, then on sample id
a.family_id <=> b.family_id ?: a.id <=> b.id } : metas
a.family_id <=> b.family_id ?: a.id <=> b.id } : sample_metas
outfile_text = ['#family_id', 'sample_id', 'father', 'mother', 'sex', 'phenotype'].join('\\t')
def samples_list = []
for(int i = 0; i<samples.size(); i++) {
Expand Down

0 comments on commit 6c73e21

Please sign in to comment.