Пример #1
0
def narps():
    dataurl = os.environ['DATA_URL']
    basedir = '/tmp/data'
    if not os.path.exists(basedir):
        os.mkdir(basedir)
    narps = Narps(basedir, dataurl=dataurl)
    narps.write_data()
    return (narps)
Пример #2
0
        narps.get_resampled_images()

        print("creating concatenated thresholded images...")
        narps.create_concat_images(datatype='resampled', imgtypes=['thresh'])

        print("checking image values...")
        image_metadata_df = narps.check_image_values()

        print("creating rectified images...")
        narps.create_rectified_images()

        print('Creating overlap(mean) images for thresholded maps...')
        narps.create_mean_thresholded_images()

        print('converting to z-scores')
        narps.convert_to_zscores()

        print("creating concatenated zstat images...")
        narps.create_concat_images(datatype='zstat',
                                   imgtypes=['unthresh'],
                                   create_voxel_map=True)

        print("computing image stats...")
        narps.compute_image_stats()

        print('estimating image smoothness')
        smoothness_df = narps.estimate_smoothness()

        # save directory structure
        narps.write_data()
Пример #3
0
def narps(basedir):
    narps = Narps(basedir)
    narps.write_data()
    return (narps)