# Filter raw TSS counts or normalized TSS

`filterTSS.Rd`

Filters transcriptional or sequencing noise.

    filterTSS(object, method = "poisson", normalization = TRUE,
    pVal =0.01, tpmLow = 0.1)

    # S4 method for TSSr
    filterTSS(
      object,
      method = "poisson",
      normalization = TRUE,
      pVal = 0.01,
      tpmLow = 0.1
    )

## Arguments

object | A TSSr object.
method | Method to be used for TSS filtering: "poisson" or "TPM". "poisson" can be used only if the input TSS data in raw number of counts.
normalization | Define whether normalization data to TPM. Used only if method = “poisson”. Default is TRUE.
pVal | Used only if method = "poisson". Default value is 0.01.
tpmLow | Used only if method = "TPM". Default value is 0.1.

## Examples

    # \donttest{
    filterTSS(exampleTSSr, method = "TPM", tpmLow=0.1)#>
    #> Filtering data with TPM method...filterTSS(exampleTSSr, method = "poisson", pVal = 0.01)#>
    #> Filtering data with poisson method...#> Error in filterTSS(exampleTSSr, method = "poisson", pVal = 0.01): Warning! Raw count data required for poisson method.# }