khramts / assocplots

MIT License
32 stars 14 forks source link

turn off -log10 in manhattan plot #1

Closed ArashBayat closed 6 years ago

ArashBayat commented 6 years ago

Would you please add an option to turn off -log10 when doing manhattan plot.

khramts commented 6 years ago

I have modified the code to allow turning off -log10. When the scaling option is set to 'none', the -log10 will not be applied. Otherwise, the scaling should be set to '-log10'. Example from the tutorial: manhattan( hip_m['f3'], hip_m['f1'], hip_m['f0'].astype(str), 'Hip men', type='single', chrs_plot=[str(i) for i in range(1,23)], chrs_names=chrs_names, cut = 0, title='Anthropometric traits', xlabel='chromosome', ylabel='-log10(p-value)', lines= [], colors = colors, scaling = 'none')

ArashBayat commented 6 years ago

Really appreciate it

On Wed, 28 Mar 2018 at 1:43 pm, Katya Khramtsova notifications@github.com wrote:

I have modified the code to allow turning off -log10. When the scaling option is set to 'none', the -log10 will not be applied. Otherwise, the scaling should be set to '-log10'. Example from the tutorial: manhattan( hip_m['f3'], hip_m['f1'], hip_m['f0'].astype(str), 'Hip men', type='single', chrs_plot=[str(i) for i in range(1,23)], chrs_names=chrs_names, cut = 0, title='Anthropometric traits', xlabel='chromosome', ylabel='-log10(p-value)', lines= [], colors = colors, scaling = 'none')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khramts/assocplots/issues/1#issuecomment-376741956, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKWigW7eva446loSnW4x_zpt-x9MTbzks5tivi7gaJpZM4Sy8Xm .