-
Notifications
You must be signed in to change notification settings - Fork 162
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
Allow metadata export of selected tips #1055
Comments
Hi @jameshadfield, I'd like to take this, if you'd be willing to give it to me. It seems like a good next step from the (small) work I did for #915. I should have time to make substantial progress on this over the next week or so. |
…nodes when metadata generated via this method
@jameshadfield One point to discuss - what should the filename for the downloaded .tsv be if only selected data is included? An easy option would be e. g. Do you have a preference? |
I think trying to enumerate the filtering in the filename isn't the way to go, and for certain tree zooming there's no "name" to even put in the filename. I'd just go with |
…of selected tips only
The basic functionality is working as of my last commit. I'm now working on updating the button text and adding those labels. @jameshadfield, did you happen to have CSS for your mocked version that you'd want to see used? If not, I will approximate it based on the image and what looks good at reasonable screen sizes. A couple of final questions before I finish up and make a pull request:
If the latter two questions are too in the weeds, we could always split updating the menus to a new issue. |
Great! Thanks @frogsquire. I don't have any CSS for the mock, up to you if you're happy playing around with it or would like to leave it for another PR.
I don't think so, but as you say should be easy to loop over
We don't really have a process here. It will nicely fall back to english, which is a perfectly acceptable medium-term solution. Running
It shouldn't have updated |
No problem. I think I can do it in this one, with the numbers as in the mock. Should have something up in the next day or so.
OK, just thought I would check.
I think it must be the but I'd be happy to revert it so as not to clutter the pull request. |
@jameshadfield Pull request is up. Please let me know if you'd prefer the package changes be reverted/removed from the PR. In the meantime, a few notes:
|
…y if any tips are selected
… it to each button
@jameshadfield Not sure why, but my PR isn't showing up as linked to this - perhaps my fault for not calling it "#1055" instead of "1055" initially? Either way, is this resolved with that PR (nonwithstanding my questions above)? |
Yes it is -- thanks for the fix 😄 The released version of auspice with PR #1067 (2.13.0) is now on dev.nextstrain.org and as long as there are no bugs will become part of nextstrain.org in ~24 hours |
Context
Currently we provide a way to export metadata of each strain (read: genome) in the dataset via the "download data" button in the footer. This always exports data for each and every genome in the dataset.
Description
There should be an additional entry which allows downloading of only those genomes which are selected. Here "selected" means included in a filter or a zoomed in part of the tree. Programmatically this is
inView && visible
.Examples
https://nextstrain.org/ncov/global?branchLabel=clade&dmin=2020-03-04&f_country=Switzerland&label=clade:A2 would allow a metadata TSV describing only the 17 selected genomes.
I'll try to pick this up over the coming days unless there are takers!
The text was updated successfully, but these errors were encountered: