Skip to content

KeyError: 'chr1' #35

Description

@avniitayade

Hi,
I am using methphaser on chm13 T2T masked reference. I have filtered the ONT bams for only primary alignment. The snp phased vcfs were generated using longphase and were subset to autosomes only.

I am encountering pandas dataframe error as follows:

File "/home/miniconda3/envs/methphaser/bin/meth_phaser_parallel", line 283, in
main(sys.argv[1:])
~~~~^^^^^^^^^^^^^^
File "/home/miniconda3/envs/methphaser/bin/meth_phaser_parallel", line 235, in main
phased_df_chr.get_group(chromosome).iterrows()
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/home/miniconda3/envs/methphaser/lib/python3.13/site-packages/pandas/core/groupby/groupby.py", line 885, in get_group
raise KeyError(name)
KeyError: 'chr1'

Can anyone please help resolving this error?
Thank you.

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