mcutils
0.1
  • All scripts
    • iter_link
      • link_dir
      • add_to_parser
      • run_from_args
    • merge_hcp
    • to_dataframe
    • to_dataframe_tree
    • cifti convert
    • cifti correlate
    • cifti ptx2dconn
    • cifti smooth
    • function normalize
    • gcoord gen
    • gcoord gui
    • gcoord mult
    • gcoord split
    • gcoord transition
    • MDE btensor
    • MDE fit_dispersion
    • MDE generate_data
    • MDE micro_anisotropy
    • MDE spherical_mean
    • sidecar index
    • sidecar merge
    • non_central_chi correct
    • non_central_chi variance
    • plot scatter_dconn
    • plot scatter_dscalar
    • plot scatter_gifti
    • ptx select_vertex
    • split merge
    • split run
    • split submit
    • surface from_mask
    • surface from_ridge
    • surface gradient
    • surface roi_dist_gifti
    • surface smooth
    • surface watershed
    • parcel cluster
    • parcel combine
    • parcel discretise
    • parcel random
    • parcel spectral
    • tree extract
    • tree from_jal
    • bibtex query
    • bibtex update
    • mask_dlabel
    • round_bvals
  • Utilities in mcutils package
mcutils
  • Docs »
  • All scripts »
  • iter_link
  • View page source

iter_link¶

Usage

Run using mc_script iter_link after installation or using ~ndcn0236/bin/mc_script iter_link on jalapeno.

Import in python using from mcutils.scripts import iter_link

Documentation

Iterates through source directory linking each file to destination directory.

The result is that the directory structure in the destination directory will match the source directory, with each file in the source directory linked in (as long as the file did not already exist).

This can be useful if the source directory is read-only and you want a local copy where you can add files without actually copying all the data.

Functions

link_dir(source, destination)

Links each file in source to destination path iteratively

CLI interface

add_to_parser(parser)

Creates the parser of the command line arguments

run_from_args(args)

Runs the script based on a Namespace containing the command line arguments

Next Previous

© Copyright 2018, Michiel Cottaar

Built with Sphinx using a theme provided by Read the Docs.