projark deposit¶
Archives a local project folder into HPC-DME collection paths under:
/CCBR_Archive/GRIDFTP/Project_CCBR-<projectnumber>/<datatype>
Syntax¶
projark deposit \
-f /data/CCBR/projects/CCBR-12345 \
-p CCBR-12345 \
-d Analysis
Inputs¶
-f,--folder(required): local folder to archive.-p,--projectnumber,--project-number(required): project identifier.-d,--datatype(optional):Analysis(default) orRawdata(case-insensitive).-t,--tarname(optional): override tar filename (defaultccbr<projectnumber>.tar).-s,--split-size-gb(optional): split threshold/chunk size, default500.--cleanup/-k,--no-cleanup: cleanup is enabled by default.
--projectnumber normalization:
- Accepts any non-empty value.
- Repeated leading
ccbrprefixes are removed (case-insensitive; each may be followed by_,-, or nothing). - Examples:
CCBR-1234->1234CCBR-abcd->abcdccbr_ccbr-1234abc->1234abc
Runtime Behavior¶
- Sync gate (
checkapisync) - Helix host check; print active
hpcdme.propertieslines for verification; abort if proxy settings are active tmux/screen/Open OnDemand graphical session check- Ensure target collections exist (create as needed with all required HPC-DME metadata)
- Stage tar + filelist in
/scratch/$USER/CCBR-<projectnumber>/<datatype>/ - Split tar if above split threshold
- Generate
.md5for staged files - Check staged files against destination vault; rename with counter if conflict found
- Transfer via
dm_register_directory(hidden/dot files automatically excluded) - Cleanup scratch (default on)
Notes¶
- Run from
tmux,screen, or an Open OnDemand graphical session. - Disclaimer: Open OnDemand is currently available only on Biowulf compute nodes, not directly on Helix. Since
projarkis Helix-only today, usetmux/screenon Helix; Open OnDemand support is future-facing until Helix access is available. --folder FASTQand--folder FASTQ/are both valid for directories.- Relative folder paths are converted to absolute paths before use.
- For raw data, pass
--datatype rawdata. projarksends completion/failure email to$USER@nih.govfromNCICCBR@mail.nih.gov.- Proxy settings (
hpc.server.proxy.url,hpc.server.proxy.port) must be commented out inhpcdme.properties. Deposit aborts with a descriptive error if active proxy lines are found. - Conflict handling: if a staged file already exists in the destination collection, the staged files are renamed by inserting a zero-padded counter before the first extension (e.g.
ccbr1431.tar→ccbr1431_001.tar). - Split-tar conflict detection: checks for both the base tarball name and the first split-chunk suffix (
*.tar_0001) to detect prior split deposits. - Hidden files (filenames starting with
.) are automatically excluded fromdm_register_directory.