parser.add_argument('--over_cluster',dest='over_cluster',action='store_true',default=False,help='Use CTF parameters for model.')
parser.add_argument('--ang_error',dest='ang_error',action='store_true',default=False,help='Use CTF parameters for model.')
parser.add_argument('--dstep',type=int,default=5,help='How many frames over each axis the protein is made in the UMAP reduction')
parser.add_argument('--seg_mode',dest='seg_mode',action='store_true',default=False,help='decomposition of the image to its individuel parts. Can be used on datasets like the ribosome')
parser.add_argument('--noise_bg',dest='noise_bg',action='store_true',default=False,help='To use a noise background estimator to mask instead of the noise generator')
parser.add_argument('--no_gen',dest='no_gen',action='store_true',default=False,help='Using a 3D volumetric model instead of the generator')
parser.add_argument('--TD_mode',dest='TD_mode',action='store_true',default=False,help='If you wish to switch to 2D classification instead')
parser.add_argument('--Only_VAE',dest='Only_VAE',action='store_true',default=False,help='To only use VAE to perform the classification')
parser.add_argument('--m_batch_size',type=int,default=25,help='the batch size to make the 3D model')
parser.add_argument('--frames',type=int,default=36,help='number of movie frames')
parser.add_argument('--use_eulers',dest='use_eulers',action='store_true',help='if to use the standard euler rotation matrix instead')
parser.add_argument('--no_angle',dest='no_angle',action='store_true',default=False,help='Do not use any angles to do the classifcation')
args=parser.parse_args()
ifisinstance(args.Only_VAE,bool):
print("perform 2D classification is a bool",isinstance(args.Only_VAE,bool))
else:
assertprint("The 2D classification is not a bool")
ifisinstance(args.TD_mode,bool):
print("perform 2D classification is a bool",isinstance(args.TD_mode,bool))
else:
assertprint("The 2D classification is not a bool")
ifisinstance(args.no_gen,bool):
print("background is instance of: bool",isinstance(args.no_gen,bool))
else:
assertprint("The no generation is not a bool")
ifisinstance(args.noise_bg,bool):
print("background is instance of: bool",isinstance(args.noise_bg,bool))
else:
assertprint("The segmentation is not a bool")
ifisinstance(args.seg_mode,bool):
print("segmentation is instance of: bool",isinstance(args.seg_mode,bool))
else:
assertprint("The segmentation is not a bool")
ifisinstance(args.dstep,int)andargs.dstep>0:
print("dstep is instance of: int",isinstance(args.dstep,int),"and is: %i"%args.dstep)
else:
assertprint("the dstep is not an integer or is less than 0")