intersect {OMICsPCA} | R Documentation

## support function of prepareDataset

### Description

intersects a factor file and an annotation file

### Usage

    intersect(fact, anno, ...)

### Arguments

`fact` | Full path of the directory containing only the bed (.bed) files corresponding to several cell lines of the specified factor.
`anno` | Full path of the annotation file (e.g. gene, TSS, exon etc.)
`...` | additional arguments received from "prepareDataset()" and suppliet to "R_bedtools_intersect()"

### Value

A list containing the intersections of the files (paths of which are supplied throgh the arguments).

### Author(s)

Subhadeep Das

### Examples

    anno <- system.file("extdata/annotation2/TSS_groups.bed",
    package = "OMICsPCAdata")

    fact <- system.file("extdata/factors2/demofactor",
    package = "OMICsPCAdata")

    Cells <- intersect(fact = fact, anno = anno)

    Cells

[Package OMICsPCA version 1.10.0 Index]