added -P option for command line input of variants