Skip to content

Conversation

AnttonLA
Copy link

A while back I created a "GWAS track" for personal use to display individual genetic variants in a scatterplot as a separate track.
It is quite rough, as it was done ad hoc.
It takes data in the IGV .gwas format (see: https://igv.org/doc/desktop/#FileFormats/DataTracks/#gwas)
I just wanted to gauge interest in making this a proper addition to the tool.
Is this in scope? What would be needed for a proper pull request?

Example image:
pr_example

@lldelisle
Copy link
Collaborator

lldelisle commented Oct 21, 2024

Hi,
Thanks for this proposition. We are super happy to welcome new contributors. Would you mind to rebase against the current master branch? If you don't know how, just let me know.

@lldelisle
Copy link
Collaborator

Hi @AnttonLA ,
Sorry for the one year delay... This looks very interesting. And thank you for all the work of docstring and fixes in the existing code.
I think I could help to integrate this new track in the next release but would you mind to give example gwas files and plots to run tests, especially for the 3 different y_values_format which seems quite different.

return val

if self.properties['y_values_format'] == 'PP':
y = df['P'].apply(floor)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know GWAS but I am under the impression that with this line all y values will be to 0, no?

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

Successfully merging this pull request may close these issues.

2 participants