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

Write consistent column sets to variant information files #330

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Conversation

nebfield
Copy link
Member

@nebfield nebfield commented Jul 1, 2024

  • pvar files can contain extra columns
  • when pgscatalog-match reads pvar files with extra columns it can trigger polars.exceptions.ComputeError: found more fields than defined in 'Schema'
  • this problem mostly affects complex VCFs that get recoded
  • this PR writes a consistent column set during initial relabelling or recoding

closes #324

nebfield and others added 3 commits July 1, 2024 16:13
* Update SamplesheetParser.groovy

* fix multiple samplesheet error message

---------

Co-authored-by: Benjamin Wingfield <[email protected]>
@nebfield nebfield marked this pull request as ready for review July 1, 2024 16:25
@nebfield nebfield requested a review from smlmbrt July 2, 2024 09:40
Copy link
Member

@smlmbrt smlmbrt left a comment

Choose a reason for hiding this comment

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

This should work. Although, it might be more useful to users if within match_variants/match_combine:

  • Read pvar header lines
  • map header lines to schema, set all other headers to str
  • drop non-standard columns

This would also allow us to run the matching directly on non-standard VCFs and make pygscatalog more robust.

@nebfield nebfield merged commit cc3a26e into main Jul 4, 2024
234 checks passed
@nebfield nebfield deleted the dev branch July 10, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants