ATACProc-class {esATAC} | R Documentation

## Methods for ATACProc objects

### Description

You can call ATACProc objects operation methods below to obtain information in objects.

### Usage

    ## S4 method for signature 'ATACProc'
    atacPrintMap(atacProc, preProc = FALSE,
      nextProc = TRUE, curProc = TRUE, display = TRUE)

    printMap(atacProc = NULL, preProc = FALSE, nextProc = TRUE,
      curProc = TRUE, display = TRUE)

    ## S4 method for signature 'ATACProc'
    process(.Object, ...)

    ## S4 method for signature 'ATACProc'
    getProcName(.Object, ...)

    ## S4 method for signature 'ATACProc'
    getParam(.Object, item, ...)

    ## S4 method for signature 'ATACProc'
    getParamItems(.Object, ...)

    ## S4 method for signature 'ATACProc'
    isReady(.Object, ...)

    ## S4 method for signature 'ATACProc'
    clearProcCache(.Object, ...)

    ## S4 method for signature 'ATACProc'
    isSingleEnd(.Object, ...)

    ## S4 method for signature 'ATACProc'
    getReportVal(.Object, item, ...)

    ## S4 method for signature 'ATACProc'
    getReportItems(.Object, ...)

### Arguments

`atacProc` | Character scalar. The ATACProc subclass name for `printMap`.(Default: NULL). For `atacPrintMap`, see `.Object`
`preProc` | `Logitcal` scalar. show the available upstream processes if TRUE.(Default: FALSE)
`nextProc` | `Logitcal` scalar. show the available downstream processes if TRUE. (Default: TRUE)
`curProc` | `Logitcal` scalar. show the current process of parameter `.Object` if TRUE. (Default: TRUE)
`display` | `Logitcal` scalar. Save to pdf file if FALSE. (Default: TRUE)
`.Object` | ATACProc object scalar. ATACProc object return by process functions.
`...` | Additional arguments, currently unused.
`item` | `Characters` scalar. The items in parameter list or report list.

### Details

ATACProc is a S4 class for generating ATACProc S4 objects. All ATACProc objects generated by its subclasses. You can only use the ATACProc objects returned by any functions rather than use ATACProc S4 class to generate object yourself.

### Value

the function and result of functions:

`atacPrintMap` | Print map to locate the atacProc object in charflow
`printMap` | Print map to locate the atacProc name in charflow
`process` | Call this function to redo processing
`getProcName` | get ATACProc object Characher name
`getParam` | Get parameter value set by process function. See `getParamItems` to obtain valid item for query.
`getParamItems` | Get parameter name list
`isReady` | Is the process ready for downstream process
`clearProcCache` | Clear cache of atacProc object
`isSingleEnd` | Single end data if TRUE else FALSE
`getReportVal` | Get report value of item. See `getReportItems` to obtain valid item for query.
`getReportItems` | Get all items that can be reported

### Author(s)

Zheng Wei

### See Also

`atacPipe` `atacRemoveAdapter`

### Examples

    library(magrittr)
    td <- tempdir()
    options(atacConf=setConfigure("tmpdir",td))

    # Identify adapters
    prefix<-system.file(package="esATAC", "extdata", "uzmg")
    (reads_1 <-file.path(prefix,"m1",dir(file.path(prefix,"m1"))))
    (reads_2 <-file.path(prefix,"m2",dir(file.path(prefix,"m2"))))

    reads_merged_1 <- file.path(td,"reads1.fastq")
    reads_merged_2 <- file.path(td,"reads2.fastq")
    atacproc <-
    atacUnzipAndMerge(fastqInput1 = reads_1,fastqInput2 = reads_2) %>%
    atacRenamer %>% atacRemoveAdapter

    subclassname<-getProcName(atacproc)

    printMap(subclassname)

    (pitems<-getParamItems(atacproc))
    getParam(atacproc,pitems[1])

    isReady(atacproc)
    isSingleEnd(atacproc)
    (ritems<-getReportItems(atacproc))
    getReportVal(atacproc,ritems[1])

    clearProcCache(atacproc)

    process(atacproc)

[Package esATAC version 1.8.0 Index]