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

get_ssm_by_region dies if specified region has no mutations #235

Open
lkhilton opened this issue Jul 17, 2023 · 2 comments
Open

get_ssm_by_region dies if specified region has no mutations #235

lkhilton opened this issue Jul 17, 2023 · 2 comments

Comments

@lkhilton
Copy link
Contributor

lkhilton commented Jul 17, 2023

I haven't fully debugged this, but I've been trying to retrieve variants for a small aSHM region. It works for genomes, but not capture:

regions <- GAMBLR:::process_regions(only_regions = "BCL6")

dim(get_ssm_by_region(
    region =regions$regions[2], 
    seq_type = "genome"
)) 
# [1] 239  45 

get_ssm_by_region(
    region =regions$regions[1],
    seq_type = "capture"
) %>% dim()

# [1] 543  45 

get_ssm_by_region(
    region =regions$regions[2],
    seq_type = "capture"
)

# Error in methods::as(data[[i]], colClasses[i]) : 
#   no method or default for coercing “character” to “l”

I believe the capture maf file doesn't have any rows matching the region described by regions$regions[2] so vroom is choking on the specified column types. Can you please investigate? Ideally this would be robust to even small regions where one might find no mutations.

@rdmorin
Copy link
Collaborator

rdmorin commented Jul 17, 2023

@HoumanLM Could your new indexing approach using the RSamtools package help us resolve this?

@HoumanLM
Copy link
Collaborator

@rdmorin For the tabix part that we have discussed earlier, I used Rsamtools for having a function similar to 'get_ssm_by_region' so it seems that it can solve the issue.

@mattssca mattssca removed their assignment Dec 18, 2023
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

No branches or pull requests

4 participants