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

GA4GHTT-276: 4.4 changes - optional meta, format CN, CICN, PSL, PSO, PSQ #254

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

vasudeva8
Copy link
Collaborator

Remaining changes for vcf4.4
Type P, format tags PSL, PSO, PSQ, CN type update and CICN addition.
PSO validation is to match the count to PSL fields. No check on cached records made as it might not be efficient.
Description made optional for ALT and FILTER meta data.

Format CICN validated with presence of format CN and warning generated on CICN value when it doesn't span across 0.
Check on SVLEN with CN moved from optional/warning to mandatory/error (SV to have same SVLEN when format CN is present).

@vasudeva8 vasudeva8 requested a review from tcezard August 14, 2024 12:58
* @param ret return by reference the container filled with the string split.
*/
template<typename C>
void string_split_ex(std::string const & s, char const * delims, C & ret, bool withdelim)
Copy link
Member

Choose a reason for hiding this comment

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

Is there any need to keep both implementation ?
If you don't want to replace all calls to the extended version I would at least use string_split_ex in string_split

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was retained to avoid any impact.
Updated to use _ex with no delimiter and tests succeeded without any failure.
Updated PR with the change.

inc/vcf/file_structure.hpp Outdated Show resolved Hide resolved
vasudeva8 and others added 2 commits August 27, 2024 18:26
Co-authored-by: Timothee Cezard <tcezard@ebi.ac.uk>
@tcezard tcezard merged commit 1ccb5a1 into EBIvariation:dev/vcf4.4 Sep 4, 2024
1 check 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