Source Command

GORIF

The GORIF command is designed to verify the existence of source files and also checks to ensure that the content of these files is not empty before executing the GOR command.

This ensures that the GOR command only runs if the specified source files are present, preventing errors due to missing data or empty files.

All GORIF queries begin with the GORIF command followed by the source file (or files) that you will be reading from.

Usage

gorif -dh file1 file2 file3 ... fileN

Options

-dh col1,col2

Use the default header ( comma-separated ) if none of the source files exist.

For the other available options, please refer to the GOR documentation.

Examples

gorif #dbSNP# -dh chrom,pos | top 1
gor -p chr1:0-100 <(gorif -dh chrom,pos file1.gor file2.gor)