Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot apply sequence translation on plot_on_multiple_lines or plot_on_multiple_pages #61

Open
RekhaAngara opened this issue Aug 3, 2021 · 2 comments

Comments

@RekhaAngara
Copy link
Contributor

Is it possible to use sequence translation (plot_translation) with plot_on_multiple_lines or plot_on_multiple_pages.
I would like to ideally have a sequence on multiple lines/pages represented both as nuc and aminoacid sequence.

@veghp
Copy link
Member

veghp commented Aug 4, 2021

Thanks, I agree that it would be an interesting feature, which is not implemented currently (I think).

A solution would be to include a call to plot_translation() in MultilinePlottableMixin.plot_on_multiple_lines() after the line

As a proof of concept, a call there:

line_record.plot_translation(
    ax=line_ax,
    location=(0, 66),
    fontdict={"weight": "bold"},
    long_form_translation=False,
)

returns:
multiline_translation

@Zulko do you think that's a good solution? I can add a dict parameter like translation_params=None in plot_on_multiple_lines() which would be passed on to plot_translation() if not None etc.

@RekhaAngara
Copy link
Contributor Author

I'll try that solution, thank you for your prompt response

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

No branches or pull requests

2 participants