Analysis software for the ASTROGAM mission