Skip to content

Bioawk update to move closer to Gawk#11060

Open
DLBPointon wants to merge 18 commits intomasterfrom
bioawk_update
Open

Bioawk update to move closer to Gawk#11060
DLBPointon wants to merge 18 commits intomasterfrom
bioawk_update

Conversation

@DLBPointon
Copy link
Copy Markdown
Contributor

@DLBPointon DLBPointon commented Mar 26, 2026

Update bioawk to be closer to gawk, mainly so it can take a program file

Linked to: sanger-tol/nf-core-modules#216

EDIT: I ended up in an odd merge conflict situation where the previous PR's commits were included

def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: '' // args2 is used to specify a program when no program file has been given
program = program_file ? "-f ${program_file}" : "${args2}"
awk_ext = bioawk_extension ? "-c ${bioawk_extension}" : ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just be supplied in ext.args

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair, done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you going to remove this, or leave it as-is?

@prototaxites
Copy link
Copy Markdown
Contributor

Can you add a test for the program file?

@DLBPointon DLBPointon requested a review from prototaxites March 27, 2026 12:51
Copy link
Copy Markdown
Contributor

@prototaxites prototaxites left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but still an open question about supplying the -c option in args

def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: '' // args2 is used to specify a program when no program file has been given
program = program_file ? "-f ${program_file}" : "${args2}"
awk_ext = bioawk_extension ? "-c ${bioawk_extension}" : ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you going to remove this, or leave it as-is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants