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

Add parameters to get_ssm_by_region(s) #53

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

vladimirsouza
Copy link
Contributor

@vladimirsouza vladimirsouza commented Feb 21, 2024

This PR addresses this issue.

get_ssm_by_regions behaviour is the same as before this PR. Bellow, I compare the output of get_ssm_by_regions before (maf_old_version) and after (maf_new_version) this PR.

### get maf tables
devtools::load_all("~/repos/gamblr_repos/GAMBLR.results")
maf_new_version = get_ssm_by_regions(regions_bed = GAMBLR.data::grch37_ashm_regions, 
                                     streamlined = F, basic_columns = T)

library(GAMBLR.results)
maf_old_version = get_ssm_by_regions(regions_bed = GAMBLR.data::grch37_ashm_regions, 
                                     streamlined = F, basic_columns = T)

> maf_new_version_na <- maf_new_version %>% replace(is.na(.), "NA")
> maf_old_version_na <- maf_old_version %>% replace(is.na(.), "NA")
> table(maf_new_version_na == maf_old_version_na)

   TRUE 
4636260 

@vladimirsouza vladimirsouza merged commit 6e2ea05 into main Feb 21, 2024
@vladimirsouza vladimirsouza deleted the vsouza-add_param_to_get_ssm_by_region_s branch February 21, 2024 23:41
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