Merged
Conversation
…reservedINFOkeys.tsv yet)
tcezard
reviewed
Nov 3, 2025
tcezard
approved these changes
Nov 5, 2025
Member
tcezard
left a comment
There was a problem hiding this comment.
Some quick suggestions but otherwise approved.
Comment on lines
+93
to
+94
| else: | ||
| logger.warning(f"Unsupported Field: {field}") |
Member
There was a problem hiding this comment.
The ALT in the attribute_mapper.yaml will trigger this warning which is fine for now.
Comment on lines
+146
to
152
| seen_sample_names = set() | ||
| uniq_sample_name = [] | ||
| for sample in sample_names: | ||
| if sample not in seen_sample_names: | ||
| seen_sample_names.add(sample) | ||
| uniq_sample_name.append(sample) | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| seen_sample_names = set() | |
| uniq_sample_name = [] | |
| for sample in sample_names: | |
| if sample not in seen_sample_names: | |
| seen_sample_names.add(sample) | |
| uniq_sample_name.append(sample) | |
| uniq_sample_name = list(set(sample_names)) |
Comment on lines
+1
to
+16
| """This sets up the logger for logging messages""" | ||
| import logging | ||
| import os | ||
| # Create logger for module name | ||
| logger = logging.getLogger(__name__) | ||
|
|
||
| def set_up_logging(log_path=None): | ||
| # Set up paths | ||
| input_folder = os.path.dirname(__file__) | ||
| output_folder = os.path.join(input_folder, "..","tests", "output") | ||
| if log_path is None: | ||
| log_path = os.path.join(output_folder, "converted.log") | ||
| logging.basicConfig(filename=log_path, | ||
| level=logging.DEBUG, | ||
| format="%(asctime)s - %(levelname)s - %(message)s") | ||
| return log_path No newline at end of file |
Member
There was a problem hiding this comment.
We can keep this for now but we have a whole existing system to manage logging in the pyutils library.
Co-authored-by: Timothee Cezard <tcezard@ebi.ac.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Format values and headers are present in the VCF file.
Additional refactor to merge multiple files into one attributes file.