Learn R Programming

MultiJoin (version 0.1.1)

MakeFIFOs: creates named Unix pipes, which gzipped files can be streamed to for e.g. further joins

Description

Additional filters can be implemented based upon the input arguments.

This string is typically used in between pipes.

Usage

MakeFIFOs(file = "file1.txt.gz", FIFO = "/tmp/fifo1", path = ".", 

filterStr = " | cut -f2,3 -d\" \" --complement", mycat = "gunzip -cf ",

verbose = 2)

Arguments

file

Name of the file that contains the data to uncompress and filter on

FIFO

Name of the FIFO to create

path

Directory to find the files in

filterStr

various inline filters that act locally and do not need an input file,

mycat

effective cat command

verbose

level of verbosity

Value

filter string

Examples

Run this code
# NOT RUN {

if (0){


  MakeFIFOs(verbose=2)


  MakeFIFOs(filterStr=" | awk '$2 > 100 && $3 > 5' | 


          cut -f2,3 -d\" \" --complement | head -n 10000 | sort -k1,1")


}


# }

Run the code above in your browser using DataLab