Skip to content

get_ssm_by_region dies if specified region has no mutations #235

Description

@lkhilton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions