brentp / somalier

fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs... "like damn that is one smart wine guy"
MIT License
255 stars 35 forks source link

Add plot option to ancestry-predict.py #25

Closed fgvieira closed 4 years ago

fgvieira commented 4 years ago

It would be nice to have an option to save the output plot into a file, for example by adding:

p.add_argument("--plot", help="output plot filename (format is infered from extension)")

and at the end of the script:

plt.savefig(args.plot)