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

clear error, fixes #962 #966

Merged
merged 2 commits into from
Mar 21, 2023
Merged

clear error, fixes #962 #966

merged 2 commits into from
Mar 21, 2023

Conversation

Maarten-vd-Sande
Copy link
Member

What problem is the PR solving / What's new?

Clearer error message when single-end is annotated as paired-end. Fixes #962

Checklist

  • I made a PR to develop (not master)
  • If applicable: I updated the docs
  • I updated the CHANGELOG
  • These changes are covered by the tests

@Maarten-vd-Sande Maarten-vd-Sande marked this pull request as ready for review March 21, 2023 10:46
Comment on lines +155 to +156
if ! compgen -G "{output.tmpdir}/*_1*" > /dev/null ; then printf "ERROR: Couldn't find read 1.fastq after dumping! Perhaps this is not a paired-end file?\n" >> {log} 2>&1; fi
if ! compgen -G "{output.tmpdir}/*_2*" > /dev/null ; then printf "ERROR: Couldn't find read 2.fastq after dumping! Perhaps this is not a paired-end file?\n" >> {log} 2>&1; fi
Copy link
Member Author

Choose a reason for hiding this comment

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

I did not know that echo doesn't work 😅 ... I did just now realize that the newline isn't even necessary, as echo automatically makes a newline. Do we know if printf is standard in bash?

Copy link
Member

Choose a reason for hiding this comment

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

This is incredibly unclear to me for any command, but this post suggests to me it is

@Maarten-vd-Sande Maarten-vd-Sande merged commit 696d8bf into develop Mar 21, 2023
@Maarten-vd-Sande Maarten-vd-Sande deleted the paired_false branch March 21, 2023 15:14
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.

2 participants