Skip to content

mapper IndexError on some variants #352

Description

@kmoad

@kmoad
Sorry to bother you again, but I still get positions with errors. It looks like the mapper is missing something in the reference (the algorithm in python is getting out of range? or the reference is inadequate? - it's unclear from the error).
I was running 6 wes for a project, and I got multiple variants excluded from mapping and are absent from the error log and the annotation. The errors are posted only in the terminal. The explanation of the error is identical for each position, so I posted only 2 examples with full detail, but I included all positions. The error appears for each sample, when the variant is present.
Unless there is a systematic cause of the error which could be fixed, I believe we will keep discovering new "faulty" positions as they are present in various samples.
Again, using most update version 2.13 with "properly" updated HG38 1.47.1 under Win10, Chrome for gui. Will switch on Ubuntu to see if it's OS related, but I doubt this.

Best regards,
Consuel

So, here are the errors:

Traceback (most recent call last):
File "C:\Program Files\OpenCRAVAT\python\lib\site-packages\cravat\base_mapper.py", line 307, in run_as_slave
crx_data = self.map(crv_data)
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 1037, in map
so, achange, cchange, coding = self._get_snv_map_data(
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 1252, in _get_snv_map_data
so, ref_aanum, alt_aanum = self._get_svn_cds_so(
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 5788, in _get_svn_cds_so
basebits = (seq[seqbyteno] >> (6 - seqbitno)) & 0b00000011
IndexError: index out of range

LINE:4612
INPUT:289742 chr7 56081717 G A
ERROR:index out of range

Traceback (most recent call last):
File "C:\Program Files\OpenCRAVAT\python\lib\site-packages\cravat\base_mapper.py", line 307, in run_as_slave
crx_data = self.map(crv_data)
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 1037, in map
so, achange, cchange, coding = self._get_snv_map_data(
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 1252, in _get_snv_map_data
so, ref_aanum, alt_aanum = self._get_svn_cds_so(
File "F:\open-cravat\modules\mappers\hg38\hg38.py", line 5788, in _get_svn_cds_so
basebits = (seq[seqbyteno] >> (6 - seqbitno)) & 0b00000011
IndexError: index out of range

LINE:24728
INPUT:323759 chr8 133060118 G T
ERROR:index out of range

LINE:20176
INPUT:618237 chr19 52801310 T C
ERROR:index out of range

LINE:26709
INPUT:618790 chr20 13072370 T G
ERROR:index out of range

LINE:26905
INPUT:888011 chr21 37165716 T C
ERROR:index out of range

Originally posted by @clinicalngs in #345

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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