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

Coloring scipts #30

Merged
merged 1 commit into from
Sep 9, 2019
Merged

Coloring scipts #30

merged 1 commit into from
Sep 9, 2019

Conversation

miparedes
Copy link

This PR refers to #17

Creates two different coloring scripts:

assigns_coloring_to_census_tract_seattle_only.py is, as the name suggests, Seattle specific. It takes in lat_longs.tsv as --coordinates, a --label which for seattle would be 'location' , and a file name as --output and divides up the Nextstrain color ramp using the latitudes and then lighten/darkens based on the longitudes. Outputs a .tsv file

assigns_coloring_using_tsne.py is a more generalizable coloring script that takes in lat_longs.tsv as --coordinates, a --label (like "region", 'country', 'location' etc.) and and a file name as --output. The script then uses 1D t-SNE on lat/long to assign colors. Outputs a .tsv file. Can also be used for Seattle by using the optional input --city and stating "Seattle" which will restrict the census tract bounds to city limits.

@miparedes miparedes requested a review from trvrb August 16, 2019 19:23
@trvrb
Copy link
Member

trvrb commented Sep 9, 2019

I've updated these scripts a bit and rebased on top of master.

@trvrb trvrb merged commit 017a77d into master Sep 9, 2019
@trvrb trvrb deleted the coloring branch September 9, 2019 21:01
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