You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using mity to assess within-individual variation in mitochondrial DNA. I have assembled mitochondrial genomes for ~300 individuals of a non-model fish species using MitoZ and found that 10% of full-sibling pairs have distinct haplotypes (1-8 SNPs). As these individuals share a mother, I believe this variation is due to sequencing artifacts or heteroplasmy.
Can mity be used to examine these issues in non-human samples?
If so, can you please advise on how to prep input files?
I receive the following error after running this code:
mity 1.1.0
mity runall
Traceback (most recent call last):
File "/home/dswift/miniconda3/bin/mity", line 33, in <module>
main()
File "/home/dswift/miniconda3/bin/mity", line 29, in main
args.func(args)
File "/home/dswift/miniconda3/lib/python3.12/site-packages/mitylib/commands.py", line 388, in _cmd_runall
call.Call(
File "/home/dswift/miniconda3/lib/python3.12/site-packages/mitylib/call.py", line 69, in __init__
self.run()
File "/home/dswift/miniconda3/lib/python3.12/site-packages/mitylib/call.py", line 84, in run
self.run_checks()
File "/home/dswift/miniconda3/lib/python3.12/site-packages/mitylib/call.py", line 222, in run_checks
if not all(map(self.bam_has_rg, self.files)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dswift/miniconda3/lib/python3.12/site-packages/mitylib/call.py", line 242, in bam_has_rg
return len(r.header["RG"]) > 0
~~~~~~~~^^^^^^
File "pysam/libcalignmentfile.pyx", line 557, in pysam.libcalignmentfile.AlignmentHeader.__getitem__
KeyError: 'RG'
Thanks!
The text was updated successfully, but these errors were encountered:
I'm not too familiar with your use case and I'll have to get back to you on that. Just to explain the error a bit, mity requires RG headers in the bam file for variant calling purposes, so that's part of the pre-checks that are done. This is just saying it couldn't find any RG headers present.
I can add RG headers to the bam file. Can I use a reference for my study species, or should I use one of the references provided? It would be great if you could share some code to produce bam files comparable to the test files.
Unfortunately mity does not currently support adding custom references, but it's something we're planning on adding in future releases! We only have references for human and mice at the moment, and it probably won't work that well for your use case.
I'm interested in using
mity
to assess within-individual variation in mitochondrial DNA. I have assembled mitochondrial genomes for ~300 individuals of a non-model fish species usingMitoZ
and found that 10% of full-sibling pairs have distinct haplotypes (1-8 SNPs). As these individuals share a mother, I believe this variation is due to sequencing artifacts or heteroplasmy.Can
mity
be used to examine these issues in non-human samples?If so, can you please advise on how to prep input files?
I receive the following error after running this code:
Error:
Thanks!
The text was updated successfully, but these errors were encountered: