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

[Bug - task_ivar_variant_call] Fix potential places for failure #716

Open
Michal-Babins opened this issue Jan 9, 2025 · 0 comments
Open
Assignees

Comments

@Michal-Babins
Copy link
Contributor

Michal-Babins commented Jan 9, 2025

🐛

📝 Describe the Issue

Ivar variant call is failing when VARIANT_NUM variable is not found, this is do to addition of set -euo pipefail. Here is what is happening

  • The ivar pipeline found no variants (output shows "SNP: 0")
  • The grep "TRUE" command found no matches and failed due to set -euo pipefail
  • This prevents execution of subsequent commands that would create VARIANT_NUM

When no variants are found, grep exits with code 1, causing the entire script to fail before it can write "0" to VARIANT_NUM. This makes the file missing for delocalization VARIANT_NUM.

🔁 How to Reproduce

Run on terra

💻 Version Information

PhB V.2.3.0

@Michal-Babins Michal-Babins self-assigned this Jan 9, 2025
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

No branches or pull requests

1 participant