示例#1
0
文件: max.py 项目: badi/max
def _test():

    import rax
    import curry

    modules = Modules()
    modules.use('~/Public/modulefiles')
    modules.load('python/2.7.1', 'fax/devel')

    daxproj = dax.Project('test', 'lcls','fah', 10009)
    locations = dax.read_filelist('tests/p10009.xtclist.test2.chirp', kind='chirp', host='lclsstor01.crc.nd.edu', port=9987)
    locations = dax.read_filelist('tests/p10009.xtclist.test2')
    daxproj.load_locations(_test_dax_read_path, locations)
    daxproj.write_dax()

    data = daxproj.locations('*.xtc', files=True)

    raxproj = rax.Project()

    mapper = Mapper(curry.curry(_test_MyFunc), modules)
    mapper.process(data, raxproj, chunksize=5)

    raxproj.write('/tmp/raxproj')
示例#2
0
文件: example.py 项目: badi/max
    prefix = '/afs/crc.nd.edu/user/c/cabdulwa/fax.git/max/tests'

    struct = os.path.join(prefix, 'protein.pdb')
    ndx    = os.path.join(prefix, 'System.ndx')

    devnull = '/dev/null'
    fn = gmx.g_rms(stdout=devnull, stderr=devnull)
    return fn(f=path, s=struct, n=ndx)



modules = max.Modules()
modules.use('~cabdulwa/Public/modulefiles')
modules.load('python/2.7.1', 'numpy', 'ezlog/devel', 'ezpool/devel', 'dax/devel', 'gromacs', 'gmx')

daxproj = dax.Project('/tmp/test', 'lcls', 'fah', 10009)
locations = dax.read_filelist('tests/p10009.xtclist.test2.chirp',
                              kind='chirp',
                              host='lclsstor01.crc.nd.edu',
                              port=9987)
daxproj.load_locations(read_path, locations)
daxproj.write_dax()
data = daxproj.locations('*.xtc', files=True)

raxproj = rax.Project()

mapper = max.Mapper(rmsd, modules=modules)
mapper.process(data, raxproj, chunksize=5)

raxproj.write('/tmp/raxproj')