samplot icon indicating copy to clipboard operation
samplot copied to clipboard

Limiting max of coverage axis

Open ManavalanG opened this issue 4 years ago • 2 comments

Is it possible to limit max of coverage axis in samplot via CLI? For example, in this example plot, I would like to restrict y-axis max to 100, instead of 280 shown. This would be helpful when viewing large variants.

image

ManavalanG avatar Feb 08 '21 04:02 ManavalanG

I've added this feature in samplot v1.1.3 (now available on conda). Use the --max_coverage arg to set a value. Be careful with this, of course, as it could hide important signals.

jbelyeu avatar Feb 09 '21 19:02 jbelyeu

Fantastic! Thanks for implementing it fast!

Be careful with this, of course, as it could hide important signals.

Yes, thanks for the heads up :)

ManavalanG avatar Feb 09 '21 19:02 ManavalanG