コード例 #1
0
def stand_alone():

    file_path = get_filename()

    reader_gcms = ReadAndiNetCDF(file_path)

    reader_gcms.run()

    gcms = reader_gcms.get_gcms_obj()

    gcms.process_chromatogram()
コード例 #2
0
ファイル: DI HR-MS MassList.py プロジェクト: hechth/CoreMS
def run_multiprocess():

    cores = 4
    # file_location = get_dirname()
    file_location = get_filename()
    p = Pool(cores)
    args = [(file_path) for file_path in [file_location] * 1]
    ms_collection = p.map(worker, args)
    p.close()
    p.join()

    for ms in ms_collection:
        ms[0].to_hdf('test')
コード例 #3
0
    cProfile.runctx('run_assignment(file_location)', globals(), locals(),
                    'di-fticr-di.prof')
    #stats = pstats.Stats("topics.prof")
    #stats.strip_dirs().sort_stats("time").print_stats()


def run_multiprocess():

    cores = 4
    #file_location = get_dirname()
    file_location = get_filename()
    p = Pool(cores)
    args = [(file_path) for file_path in [file_location] * 1]
    ms_collection = p.map(worker, args)
    p.close()
    p.join()

    for ms in ms_collection:
        ms[0].to_hdf('test')


if __name__ == "__main__":

    #run_multiprocess()
    #cpu_percents = monitor(target=run_multiprocess)
    #print(cpu_percents)
    file_location = get_filename()
    if file_location:
        run_assignment(file_location)
コード例 #4
0
ファイル: Loss_Finder.py プロジェクト: hechth/CoreMS
    #Loss_finder.LF_out(offset_hits, Loss_finder.mz_count)

    out = Loss_finder.plot_offset()

    print(out)

    #ax = gcms.plot_gc_peaks()

    #ax.savefig('lf_fig.png')

    #ax = MassSpecBase.plot_mz_domain_profile(MassSpecBase)

    #plt.show()

    #MassSpecBase.plot_mz_domain_profile(gcms)
    #MassSpecBase.plot_profile_and_noise_threshold(gcms)

    #plt.show()

    return offset_hits, Loss_finder.mz_count


if __name__ == '__main__':

    file_path = get_filename()

    ref_file = '/mnt/c/ubuntu_home/loss_finder/NeutralLossList.csv'

    output, mz_count = run_targetedLF(file_path, ref_file)