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

Conditional fastq file finder fix #86

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

charles-cowart
Copy link
Contributor

NuQC uses a helper function that must filter for non-fastq, zero-length, and other undesirable files. Depending on the type of pipeline, undesirables can also include index fastq files.
Fix allows I2 files to pass filter if they are found. New test tests for successful pass-through of I1 and I2 files when appropriate, as well as exclusion of zero-length, adapter-trimmed only files, etc.

NuQC uses a helper function that must filter for non-fastq, zero-length,
and other undesirable files. Depending on the type of pipeline,
undesirables can also include index fastq files.
Fix allows I2 files to pass filter if they are found.
New test tests for successful pass-through of I1 and I2 files when
appropriate, as well as exclusion of zero-length, adapter-trimmed only
files, etc.
@charles-cowart charles-cowart requested a review from antgonza April 2, 2024 23:56
qp_klp/tests/test_step.py Outdated Show resolved Hide resolved
@@ -419,6 +426,68 @@ def _create_test_input(self, stage):
with open(fake_path, 'w') as f:
f.write("This is a file")

if stage >= 5:
Copy link
Member

Choose a reason for hiding this comment

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

why 5?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The 5 was so that it wouldn't interfere with legacy tests. Looking at it again there's something I want to tweak. I'll keep you posted.

Consolidated stage numbers 4 -> 3.
New stage moved to _create_alternate_test_input() as it's separate and
distinct from the other stages.
@antgonza antgonza merged commit 55ee4db into qiita-spots:main Apr 4, 2024
2 checks passed
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