Command Reference

Invoking a Command

Invoke a command by running the score-client executable and appending the necessary options and input values.

For instance, to use the upload command with the --manifest option:

BASH
docker exec score-client sh -c "score-client upload --manifest ./<directory>/manifest.txt"

Commands

The sections below provide a reference for all commands and their respective options supported by the Score client.

Download

The download command is used to retrieve file object(s) from the remote storage repository and can be used with the following option flags:

OptionDescription
--analysis-idDownload files for a specific Song analysis ID.
--forceForce a re-download of the file if it already exists locally (overrides local file).
--indexIf available, also download the file index.
--lengthLimit the number of bytes to download to this value. By default, if this option is not specified, all of the file will be downloaded.
--manifestDownload specific files based on a manifest file ID, manifest file URL, or path to the manifest file.
--object-idDownload a specific file object ID.
--offsetByte position in the source file to begin download from. By default, if this option is not specified, all of the file will be downloaded.
--output-dirPath to the output directory where files will be downloaded to.
--output-layoutLayout of the output directory, one of:
* bundle : Saved according to the filename under the Song bundle ID directory.
* filename : Saved according to the filename in the output directory.
* id : Saved according to the object ID in the output directory.
--program-idDownload files for a specific Song program ID.
--study-idDownload files for a specific Song study ID.
--validateIf available, perform validation on file MD5 checksum.
--verify-connectionFirst verify the connection to the object storage repository.

Help

The help command can be used to display detailed information about Score client commands and their options.

Info

The info command shows the active configuration details of the Score client. It can be used with the following option flag:

OptionDescription
--verboseDisplays an exhaustive list of all Score client configuration properties. Without this option, only a reduced, minimal set of properties is displayed.

Manifest

The manifest command shows entries of a specific Score manifest file. It can be used with the following option flag:

OptionDescription
--manifestManifest file ID, manifest file URL, or path to the manifest file that you want to display the contents for.

Mount

The mount command is a read-only FUSE filesystem view of the object storage repository in use by Score, and it can be used with the following optional flags:

OptionDescription
--cache-metadataTo make load times faster, you can optionally cache metadata on the local disk and use the cache if available.
--daemonizeOptionally detach the mount point and run it in the background instead.
--layoutLayout of the mount point directory, one of:
* bundle : Nests files in the bundle directory.
* object-id : Uses a flat list of files named by their associated object ID.
--manifestManifest file ID, manifest file URL, or path to the manifest file that you want to specifically mount contents for.
--mount-pointThe mount point of the FUSE file system. For this command to work, the mount point must exist, be empty and be executable by the current user.
--optionsAdditional mount options of the file system that you want to use. This may vary depending on the file system. E.g. user_allow_other, allow_other, fsname=debug, etc.
--verify-connectionFirst verify the connection to the object storage repository.

Upload

The upload command sends file object(s) to the remote storage repository. It can be used with the following option flags:

OptionDescription
--fileUpload a specific file by providing the path to that file.
--forceForce a re-upload of the file if it already exists in the object storage (overrides file in the repository).
--manifestUpload specific files using a manifest by providing the manifest file ID, manifest file URL, or path to the manifest file.
--md5MD5 checksum value of the file to upload.
--object-idUpload a specific file by providing its object ID.
--validateIf available, perform validation on file MD5 checksum.
--verify-connectionFirst verify the connection to the object storage repository.

Url

The url command reveals the URL of a specific file object in the object storage repository. It is used with the following option flag:

OptionDescription
--object-idObject ID of the specific file you want to display the URL for.

Version

The version command provides the current version details of the Score client.

View

The view command stores locally and showcases a SAM or BAM file. It can be used with the following option flags:

OptionDescription
--bed-queryYou can optionally specify a file in BED format containing specific ranges to query. This option overrides the --query option.
--containedOnly output sequence alignments completely contained in a specific region. If this option is not used, then by default any alignment that intersects with a specified region will be returned.
--header-onlyOnly output the header of the SAM or BAM file.
--input-fileLocal path to the BAM file being queried. This option supercedes the --object-id option.
--input-file-indexLocal path to index file. This requires the --input-file option to also be provided.
--manifestManifest file ID, manifest file URL, or path to the manifest file containing object IDs and ranges that you want to query for.
--object-idSpecific object ID inside a BAM file from which to download a slice from. This option supercedes the --manifest option.
--output-fileName of the file to write output to. If not specified, then the metadata filename or the original input filename will be used by default.
--output-formatFile format being queried and written to output, either SAM or BAM.
--output-dirPath to the output directory where the output file will be stored. Only used with the --manifest option.
--output-indexIndicates whether to write index files to output. Only used with the --manifest option.
--output-original-headerOutput the original header in its entirety.
--output-typeStructure of the output file containing query results. One of: CROSS, MERGED, or TRIMMED. Only used with the --manifest option.
--queryQuery used to define what contents to extract from a BAM file. You must use coordinate format (sequence:start-end). Note that multiple ranges must be separate by a space.
--reference-fileLocal path to the FASTA file that a CRAM file was encoded with.
--stdoutIndicates whether to send output to stdout instead of a file. Only used with the --object-id option and output will always be forced to SAM format.
--verify-connectionFirst verify the connection to the object storage repository.

Additional Options

Below is a table of supplementary option flags available for the score-client executable:

OptionDescription
--profileDefine a specific environment profile used to resolve configuration properties. If not specified, the default profile is used.
--quietRun client in quiet mode, with a reduced, minimal set of info messages displayed during execution.
--silentRun client in silent mode, without any additional info messages displayed during execution.