Exemplo n.º 1
0
    plot_type = sys.argv[1]

    # Set the file basename; if not specified, assume we're plotting
    # interactively
    if len(sys.argv) > 2:
        file_basename = sys.argv[2]
    else:
        plt.ion()
        file_basename = None

    # Plot all (raw data)
    if plot_type == 'raw':
        nba.plot_all(df, nbd_residues, file_basename=file_basename)
    # Plot endpoints
    elif plot_type == 'nbd_endpoint_norm':
        nba.plot_nbd_endpoints(df, nbd_residues, last_n_pts=3,
                           file_basename=file_basename, normalize_nbd=True)
    elif plot_type == 'nbd_endpoint_no_norm':
        nba.plot_nbd_endpoints(df, nbd_residues, last_n_pts=3,
                           file_basename=file_basename, normalize_nbd=False)
    elif plot_type == 'release_endpoint_norm':
        nba.plot_release_endpoints(df, nbd_residues, normalized_to_wt=True,
                           last_n_pts=3, file_basename=file_basename)
    elif plot_type == 'release_endpoint_no_norm':
        nba.plot_release_endpoints(df, nbd_residues, normalized_to_wt=False,
                           last_n_pts=3, file_basename=file_basename)
    elif plot_type == 'initial_rate_samples':
        nba.plot_initial_rate_samples(df, nbd_residues, timepoint_ix=4,
                                      file_basename=file_basename)
    elif plot_type == 'fret_endpoint':
        nba.plot_nbd_endpoints(df_pre, nbd_residues, datatype='FRET',
                               last_n_pts=10, file_basename=file_basename)
Exemplo n.º 2
0
    # Which type of plot to make?
    plot_type = sys.argv[1]

    # Set the file basename; if not specified, assume we're plotting
    # interactively
    if len(sys.argv) > 2:
        file_basename = sys.argv[2]
    else:
        file_basename = None

    # Plot all (raw data)
    if plot_type == 'raw':
        nba.plot_all(df, nbd_residues, file_basename=file_basename)
    # Plot endpoints
    elif plot_type == 'nbd_endpoint_norm':
        nba.plot_nbd_endpoints(df, nbd_residues, last_n_pts=3,
                           file_basename=file_basename, normalize_nbd=True)
    elif plot_type == 'nbd_endpoint_no_norm':
        nba.plot_nbd_endpoints(df, nbd_residues, last_n_pts=3,
                           file_basename=file_basename, normalize_nbd=False)
    elif plot_type == 'release_endpoint_norm':
        nba.plot_release_endpoints(df, nbd_residues, normalized_to_wt=True,
                           last_n_pts=3, file_basename=file_basename)
    elif plot_type == 'release_endpoint_no_norm':
        nba.plot_release_endpoints(df, nbd_residues, normalized_to_wt=False,
                           last_n_pts=3, file_basename=file_basename)
    elif plot_type == 'initial_rate_samples':
        nba.plot_initial_rate_samples(df, nbd_residues, timepoint_ix=4,
                                      file_basename=file_basename)
    elif plot_type == 'calc_release_peaks':
        nba.calc_release_peaks(df, nbd_residues,
                               csv_filename='data1_release_peak_times.csv')