Environment Variables

Environment variables about the analysis and sample are injected into every workflow for your convenience.

The follow environment variables are available to your workflow:

Environment VariableDescription
OCX_SAMPLE_FILENAMEThe normalized filename of the FASTA/Q file that was uploaded to One Codex. This will correspond to the name of the file that is injected into the working directory for your workflow.
OCX_SAMPLE_NAMEThe name of the Sample in One Codex. This might be different from the filename if the user has edited the Sample metadata.
OCX_SAMPLE_UUIDThe UUID of the Sample in One Codex. This is a globally unique identifier for the Sample that was used as input for the workflow.
OCX_ANALYSIS_UUIDThe UUID of the current Analysis in One Codex. This is a globally unique identifier for the current workflow run on a particular sample with the specific set of input parameters. This can be used to globally identify a particular instance of an Analysis in One Codex.

Workflow Parameters as Environment Variables

Any parameters that are defined for your workflow either as part of the workflow definition or by the user at the time of analysis kickoff are injected into the execution environment as environment variables.


What’s Next

Learn the specifics of Nextflow