reneshbedre/bioinfokit

Manhattan Plot Out of Order

hpoisner opened this issue · 2 comments

Ive been using your software to make manhattan plots and something in your sorting step is inverting the chromosomes. So they are all plotting end - start rather than start - end but still 1-22

I ran a modified version copying over the relevant functions and its this line here
df = df.loc[pd.to_numeric(df[chr], errors='coerce').sort_values().index]
I commented it out and converted my chromosomes to integers everything is working now

Thank you for reporting.