コード例 #1
0
def generate(namespace):
    """Run `neurodocker generate`."""
    specs = utils._namespace_to_specs(namespace)
    df = Dockerfile(specs)
    if not namespace.no_print_df:
        print(df.cmd)
    if namespace.output:
        df.save(filepath=namespace.output)
コード例 #2
0
ファイル: create.py プロジェクト: danjgale/project-envs
             'conda_install':
             'python=3.6 numpy scipy pandas jupyter scikit-learn matplotlib pytest scikit-image',
             'pip_install': 'nipype nibabel nilearn nitime nipy'
         }), ('ants', {
             'version': '2.2.0'
         }),
         ('freesurfer', {
             'version': '6.0.0',
             'license_path': 'license.txt',
             'min': True
         }), ('fsl', {
             'version': '5.0.10',
             'use_binaries': True
         }),
         ('neurodebian', {
             'os_codename': 'zesty',
             'download_server': 'usa-nh',
             'pkgs': ['afni', 'dcm2niix']
         }), ('spm', {
             'version': '12',
             'matlab_version': 'R2017a'
         })]
    }
    return specs


if __name__ == '__main__':

    df = Dockerfile(set_specs())
    df.save('Dockerfile')
    print(df)