mcot.core
latest
  • All scripts
    • _scripts iter_link
      • link_dir
      • add_to_parser
      • run_from_args
    • _scripts merge_hcp
    • _scripts to_dataframe
    • _scripts to_dataframe_tree
    • _scripts cifti convert
    • _scripts cifti correlate
    • _scripts cifti ptx2dconn
    • _scripts cifti smooth
    • _scripts function normalize
    • _scripts gcoord gen
    • _scripts gcoord mult
    • _scripts gcoord split
    • _scripts gcoord transition
    • _scripts ptx select_vertex
    • _scripts split merge
    • _scripts split run
    • _scripts split submit
    • _scripts surface from_mask
    • _scripts surface from_ridge
    • _scripts surface gradient
    • _scripts surface roi_dist_gifti
    • _scripts surface smooth
    • _scripts surface watershed
    • _scripts parcel cluster
    • _scripts parcel combine
    • _scripts parcel discretise
    • _scripts parcel random
    • _scripts parcel spectral
    • _scripts tree extract
    • _scripts round_bvals
  • Utilities in mcot.core package
mcot.core
  • Docs »
  • All scripts »
  • _scripts iter_link
  • Edit on GitHub

_scripts iter_linkΒΆ

Usage

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

Import in python using from mcot.core._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 Revision de00c15b.

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