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

Vignette modification - seqlevelsStyle for non-hg19 bams #13

Open
biobenkj opened this issue Sep 14, 2018 · 3 comments
Open

Vignette modification - seqlevelsStyle for non-hg19 bams #13

biobenkj opened this issue Sep 14, 2018 · 3 comments

Comments

@biobenkj
Copy link
Contributor

When calling variants from anything that doesn't have the default "chrM" in the BAM header, callMT will fail even if CHR = "MT" (or related) is specified (or the building of the index contains the appropriate MT contig) since seqlevels defaults to the "chr" annotations.

Current workaround is to specify:

seqlevelsStyle(MAlignments) <- "NCBI"
@ttriche
Copy link
Member

ttriche commented Sep 17, 2018

shouldn't it be

seqlevelsStyle(MAlignments) <- "UCSC" 

if the goal is to get chrM in there?

@biobenkj
Copy link
Contributor Author

During TallyVariants, it looks in the bam header and if it was aligned with anything that doesn't use the chrM annotation (e.g. b37), it can't find what it's looking for. The callMT function will work with the above workaround but the injectMtVariants will fail since it is now looking for chrM (as far as I can tell). What I'm currently doing is just reheadering the b37 aligned bams prior to import and all seems to be going well so far.

@ttriche
Copy link
Member

ttriche commented Sep 17, 2018 via email

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

2 participants