Skip to content

IndexError  #3

@Luobiny

Description

@Luobiny

Hi, I am running into the following error after annotating a few thousand variants in a VCF:

File "bin/spliceai.py", line 134, in spliceai
distance, mask, batch
File "processing.py", line 237, in annotate
preprocessed = [preprocess(reference, dist_var, var) for var in variants]
File "splicelib/processing.py", line 237, in
preprocessed = [preprocess(reference, dist_var, var) for var in variants]
File "splicelib/processing.py", line 95, in preprocess
x_ref = one_hot_encode(ref_pad)
File "splicelib/utils.py", line 27, in one_hot_encode
return BASE_MAP[np.frombuffer(translated, np.int8)]
IndexError: index 77 is out of bounds for axis 0 with size 5

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