Skip to content

Big deletion shifts the plot to the right #23

@Mohamed-HAMICI

Description

@Mohamed-HAMICI

Description

Hello,

I don't know if I am missing something when doing my plots, but when I plot any track for a prediction on a big deletion, the tracks of the ALT allele always seem to shift to the left.
This makes reading the tracks very hard, especially if we are trying to visually detect any difference between the REF and ALT allele tracks.

Here is an examples of an output of track type "rna_seq" on a approximately 1800 bp deletion.

Image

As you can see, the expression of the last three exons is similar between REF and ALT, but it is all shifted to the left, and therefore not overlapping.

Thank you for your help and for your amazing work.

longest_transcripts = transcript_extractor.extract(interval)

plot_components.plot(
    [
        plot_components.TranscriptAnnotation(longest_transcripts),
        plot_components.OverlaidTracks(
            tdata={
                'REF': variant_output.reference.rna_seq,
                'ALT': variant_output.alternate.rna_seq,
            },
            colors={'REF': 'blue', 'ALT': 'red'},
        ),
    ],
    interval=gene_annotation.get_gene_interval(gtf, "ITPA"),
    annotations=[plot_components.VariantAnnotation([variant], alpha=0.8)],
)
plt.show()

System info (python version, alphagenome version, etc.)

Python 3.12.2
AlphaGenome 0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions