-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updating import yaml files to fix fastq.gz.md5 import issues #426
Updating import yaml files to fix fastq.gz.md5 import issues #426
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Substitute print statement with assertion(s)
tests/test_import_mapper.py
Outdated
@@ -31,6 +31,8 @@ def mock_minted_ids(): | |||
|
|||
def test_update_do_mappings_from_import_files(import_mapper_instance): | |||
import_mapper_instance.update_do_mappings_from_import_files() | |||
for fm_all in import_mapper_instance.mappings: | |||
print(fm_all, "\n\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this print statement? Can we have an assert statement that confirms that the correct files are being imported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the PR to include an assert statement to test no .md5 files were picked. The print statement helps while testing to quickly skim over the files that are being imported.
Changed
import_suffix
fordata_object_type: Metagenome Raw Reads
inimport.yaml
andimport-mt.yaml
from -->
import_suffix: .[A,C,G,T]+-[A,C,G,T]+.fastq.gz
to -->
import_suffix: \.[ACGT]+-[ACGT]+\.fastq\.gz$
should resolve this issue.
\.
matches a literal dot (.).[ACGT]+
matches one or more occurrences of the letters A, C, G, or T.-
matches a literal hyphen (-).[ACGT]+
matches one or more occurrences of the letters A, C, G, or T again.\.fastq\.gz
matches the literal string .fastq.gz.$
ensures that the pattern matches only at the end of the string, so it won’t match.fastq.gz.md5