Skip to content

Adding chr to chromosome names should be an option #52

@stephenturner

Description

@stephenturner

In formatVcfOutput there is a line that adds "chr" to all chromosome names if there are any non-MT chromosomes without a "chr" prefix:

x <- x[!grepl("MT", seqnames(x))]
if (!any(grepl("chr", seqlevels(x)))) {
seqlevels(x) <- paste0("chr", seqlevels(x))
}

If I have a genome with numeric chromosomes, then other non-MT scaffolds that aren't numeric, this line will force all seqnames to become "chr__", which do not line up with the seqnames in my BSGenome.

This should be an option so as to allow for numeric non-"chr" prefixed seqnames when there are other non-MT non-numeric seqnames in the VCF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions