def seed_target_indices(seeds, targets):
 seeds = np.asarray((seeds,)).ravel()
 targets = np.asarray((targets,)).ravel()
 n_seeds = len(seeds)
 n_targets = len(targets)
 indices = (np.concatenate([np.tile(i, n_targets) for i in seeds]), np.tile(targets, n_seeds))
 return indices

def seed_target_indices ( seeds , targets ) : seeds = np . asarray ( ( seeds , ) ) . ravel ( ) targets = np . asarray ( ( targets , ) ) . ravel ( ) n_seeds = len ( seeds ) n_targets = len ( targets ) indices = ( np . concatenate ( [ np . tile ( i , n_targets ) for i in seeds ] ) , np . tile ( targets , n_seeds ) ) return indices
generate indices parameter for seed based connectivity analysis .