Beispiel #1
0
def test_relion_std_no_plot():
    plot = False
    typ = 'relion'
    name = 'data_test.star'
    index = None
    params = None
    tol_psi = 30
    tol_theta = 15
    tol_filament = 0.2
    window_size = 3
    plot_lim = 4
    method = 'std'
    tol_std = 1

    mhf.calculate_priors(tracker=name,
                         params_file=params,
                         index_file=index,
                         typ=typ,
                         tol_psi=tol_psi,
                         tol_theta=tol_theta,
                         tol_filament=tol_filament,
                         tol_std=tol_std,
                         plot=plot,
                         plot_lim=plot_lim,
                         method=method,
                         window_size=window_size)
Beispiel #2
0
def test_relion_plot_std_fit():
    plot = True
    typ = 'relion'
    name = 'data_test.star'
    index = None
    params = None
    tol_psi = 30
    tol_theta = 15
    tol_filament = 0.2
    tol_std = 1
    tol_mean = 30
    window_size = 3
    plot_lim = 4
    method = 'std'
    prior_method = 'fit'
    node = 0

    mhf.calculate_priors(plot=plot,
                         typ=typ,
                         tracker=name,
                         index_file=index,
                         params_file=params,
                         tol_psi=tol_psi,
                         tol_theta=tol_theta,
                         tol_filament=tol_filament,
                         tol_std=tol_std,
                         tol_mean=tol_mean,
                         window_size=window_size,
                         plot_lim=plot_lim,
                         outlier_method=method,
                         prior_method=prior_method,
                         node=node)
def test_sphire_plot_std_linear():
    plot = True
    typ = 'sphire'
    name = 'bdb:stack'
    index = 'index.txt'
    params = 'params.txt'
    tol_psi = 30
    tol_theta = 15
    tol_filament = 0.2
    tol_std = 1
    tol_mean = 30
    window_size = 3
    plot_lim = 4
    method = 'std'
    prior_method = 'linear'
    node = 0

    shutil.copy2('index_raw.txt', 'index.txt')
    shutil.copy2('params_raw.txt', 'params.txt')

    mhf.calculate_priors(plot=plot,
                         typ=typ,
                         tracker=name,
                         index_file=index,
                         params_file=params,
                         tol_psi=tol_psi,
                         tol_theta=tol_theta,
                         tol_filament=tol_filament,
                         tol_std=tol_std,
                         tol_mean=tol_mean,
                         window_size=window_size,
                         plot_lim=plot_lim,
                         outlier_method=method,
                         prior_method=prior_method,
                         node=node)