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

PIP-1562-add-samtools-sort-params #63

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

paul-sud
Copy link
Contributor

@paul-sud paul-sud commented Jun 8, 2021

No description provided.

@paul-sud paul-sud requested a review from leepc12 June 8, 2021 20:40
Copy link

@leepc12 leepc12 left a comment

Choose a reason for hiding this comment

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

LGTM. BTW does it actually reduce the number of temporary BAM files?

Comment on lines +375 to +376
${if defined(sort_threads) then ("--sort-threads " + sort_threads) else ""} \
${if defined(sort_memory) then ("--sort-memory " + sort_memory) else ""} \
Copy link

Choose a reason for hiding this comment

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

There is a simpler expression for this. It's ignored if any variable in the expression is not defined.

            ${"--sort-threads " + sort_threads} \
            ${"--sort-memory " + sort_memory} \

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice, didn't know about that. To me it does look a little weird though, since I don't think concatenating String with String? is a valid WDL expression. Is it part of the spec? To me it seems like what you wrote should be an error.

I think I'll leave this as is since it is clearer IMO.

@paul-sud
Copy link
Contributor Author

paul-sud commented Jun 8, 2021

I'm not actually sure it reduces the temp bam count, this PR just exposes it as a pipeline option so it can be tested.

@paul-sud paul-sud merged commit 1ed8ba2 into dev Jun 9, 2021
@paul-sud paul-sud deleted the PIP-1562-add-samtools-sort-params branch June 9, 2021 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants