Skip to content

Transfer data with iRODS

CyVerse provides a cloud-based data store accessible via iRODS, allowing researchers to manage and transfer large datasets. From RCAC clusters (Negishi, Bell, Anvil), you can authenticate with your CyVerse account and use iCommands to list, upload, or download files efficiently.

  1. Load the necessary modules

    module --force purge
    module load biocontainers
    module load irods
  2. Initialize your iRODS session

    iinit

    You will be prompted to enter the following:

    Enter the host name (DNS) of the server to connect to: data.cyverse.org
    Enter the port number: 1247
    Enter your irods user name: <CyVerse-Username>
    Enter your irods zone: iplant
    Enter your irods password: <CyVerse-Password>

    Enter your CyVerse password when prompted. The password is not displayed (you won’t see * or . either). If successful, this creates or updates a configuration file (usually at ~/.irods/irods_environment.json), enabling seamless use of other iCommands.

  3. Verify your iRODS connection

    ipwd

    This should return a path like:

    /iplant/home/<CyVerse-Username>

    If these commands work and return expected output, your connection to CyVerse is successful and you’re ready to transfer files.

Transferring files between RCAC clusters and CyVerse

Section titled “Transferring files between RCAC clusters and CyVerse”

Once connected, you can use iRODS commands to move files between your RCAC environment (e.g., Anvil) and CyVerse Data Store. Below are the most common operations:

List files and directories in your Data Store

Section titled “List files and directories in your Data Store”
ils

You should see a listing of your CyVerse files and folders. Example output:

/iplant/home/<CyVerse-Username>:
C- /iplant/home/<CyVerse-Username>/project1
C- /iplant/home/<CyVerse-Username>/raw_data
data_summary.txt
iput results.txt /iplant/home/<CyVerse-Username>/

This command uploads the local file results.txt to your CyVerse home directory.

iput -r analysis_folder /iplant/home/<CyVerse-Username>/

The -r flag allows you to upload entire directories.

iget /iplant/home/<CyVerse-Username>/raw_data.fastq .

This downloads the file into your current working directory on the cluster.

iget -r /iplant/home/<CyVerse-Username>/project_folder .

This downloads an entire directory and its contents.

Create a new directory (collection) in CyVerse

Section titled “Create a new directory (collection) in CyVerse”
imkdir /iplant/home/<CyVerse-Username>/new_project

Organize your files by creating collections before uploading.

imv /iplant/home/<CyVerse-Username>/old.txt /iplant/home/<CyVerse-Username>/archived.txt

This renames old.txt to archived.txt in place.

irm /iplant/home/<CyVerse-Username>/unnecessary.txt
irm -r /iplant/home/<CyVerse-Username>/old_project

Use -r to delete directories. These operations are permanent unless your account uses trash recovery.

Commonly used iRODS commands with descriptions and usage examples:

Section titled “Commonly used iRODS commands with descriptions and usage examples:”
CommandDescriptionExample Usage
iinitAuthenticate and start an iRODS sessioniinit (follow prompts: hostname = data.cyverse.org, port = 1247, etc.)
ilsList current files and directoriesils \ ils /iplant/home/your_username
ipwdShow current iRODS working directoryipwd
icdChange directory (collection) in iRODSicd /iplant/home/your_username/project1
igetDownload a file or directory from iRODS to local systemiget data.txt \ iget -r project_folder
iputUpload a file or directory from local system to iRODSiput results.txt /iplant/home/your_username/ \ iput -r output_dir
imkdirCreate a new directory (collection) in iRODSimkdir /iplant/home/your_username/new_project
irmDelete files or directories from iRODSirm old.txt \ irm -r old_project
imvMove or rename files/directories within iRODSimv oldname.txt newname.txt \ imv old_dir/ new_dir/
icpCopy a file or directory within iRODSicp file1.txt file2.txt \ icp -r project1/ project2/
ichksumCompute or verify file checksumsichksum results.txt
ienvDisplay current iRODS session environmentienv
ihelpShow list of available iCommandsihelp
iexitLog out and clear iRODS sessioniexit full