Skip to content

Update updog2vcf#63

Merged
alex-sandercock merged 2 commits into
add_parentage_functionsfrom
update_updog2vcf
Jun 2, 2026
Merged

Update updog2vcf#63
alex-sandercock merged 2 commits into
add_parentage_functionsfrom
update_updog2vcf

Conversation

@alex-sandercock

Copy link
Copy Markdown
Collaborator

This pull request updates the BIGr package to version 0.8.0 and improves the extraction and formatting of chromosome and position information from SNP IDs in the updog2vcf function. The most important changes are:

Version update:

  • Bumped the package version from 0.7.0 to 0.8.0 in the DESCRIPTION file to reflect new changes.

VCF conversion improvements:

  • Updated the SNP ID parsing in updog2vcf (R/updog2vcf.R) to use extract() with a regex for more robust separation of chromosome and position, and added logic to remove leading zeros from the position and handle empty positions by setting them to "0".

Replaced separate with extract to parse SNP ID into CHROM and POS. Updated POS formatting to handle leading zeros.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates BIGr to v0.8.0 and revises updog2vcf() SNP-ID parsing to more robustly derive VCF CHROM/POS from SNP IDs.

Changes:

  • Bump package version from 0.7.0 to 0.8.0.
  • Update updog2vcf() to parse SNP IDs using a regex-based split on the last underscore and normalize position formatting (leading zeros / empty position).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
R/updog2vcf.R Changes SNP ID parsing logic for deriving VCF CHROM and POS.
DESCRIPTION Bumps BIGr package version to 0.8.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/updog2vcf.R
Comment on lines +134 to +137
mutate(
POS = sub("^0+", "", POS),
POS = if_else(POS == "", "0", POS)
) %>%
Comment thread R/updog2vcf.R
Comment on lines +129 to +133
extract(
snp,
into = c("CHROM", "POS"),
regex = "^(.*)_([^_]*)$"
) %>%
@alex-sandercock alex-sandercock merged commit bdd540b into add_parentage_functions Jun 2, 2026
1 check passed
@alex-sandercock alex-sandercock deleted the update_updog2vcf branch June 2, 2026 15:47
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