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

plot_muts x-axis optionally show years #114

Open
averagehat opened this issue Jun 30, 2016 · 1 comment
Open

plot_muts x-axis optionally show years #114

averagehat opened this issue Jun 30, 2016 · 1 comment

Comments

@averagehat
Copy link
Contributor

I think we originally had it showing years but needed more granularity, but we want to allow both options.

@averagehat
Copy link
Contributor Author

diff from 1.3.2, plot_muts.py

3c3
<     plot_muts.py --query <query> --refs <refs> [--out <outfile>] [--html] [--cluster] [--years]
---
>     plot_muts.py --query <query> --refs <refs> [--out <outfile>] [--html] [--cluster]
11d10
<     --years              show years instead of days
67c66
< def process(refs_fn, query_fn, save_path=None, html=True, years=False):
---
> def process(refs_fn, query_fn, save_path=None, html=True):
79c78
<     do_plot(ref_dists, ref_muts, ref_names, query_dists, query_muts, query_names, save_path, html, years)
---
>     do_plot(ref_dists, ref_muts, ref_names, query_dists, query_muts, query_names, save_path, html)
82c81
< def do_plot(x1, y1, ref_names, x2, y2, query_names, save_path=None, html=True, years=False,\
---
> def do_plot(x1, y1, ref_names, x2, y2, query_names, save_path=None, html=True, \
96,99d94
<     if years:
<         to_years = lambda y: y / 365
<         x1 = map(to_years, x1)
<         x2 = map(to_years, x2)
233,234c228
<          schema.Optional('--cluster') : lambda x: True,
<          schema.Optional('--years') : lambda x: True
---
>          schema.Optional('--cluster') : lambda x: True
236c230
<         # lambda x: os.access(os.path.dirname(x), os.W_OK))
---
>         #                                      lambda x: os.access(os.path.dirname(x), os.W_OK))
244c238
<         process(refs, queries, out, args['--html'], args['--years'])
---
>         process(refs, queries, out, args['--html'])

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

No branches or pull requests

1 participant