extendTSS.Rd
Extend TSS
A GRanges
object of gene (or TSS) coordinates.
Should the gene be extended only from its TSS or the complete gene?
A named vector of chromosome lengths. If it is not provided, it is taken by seqlengths(gene)
.
UCSC genome can be set here, then seqlengths
will be automatically retrieved from UCSC server.
Gene ID types in gene
. You need to set this argument if you use built-in gene sets in great
so that genes can be correctly mapped. The value can only be one of "SYMBOL", "ENTREZ", "ENSEMBL" and "REFSEQ".
The mode to extend TSS. Value should be one of 'basalPlusExt', 'twoClosest' and 'oneClosest'. See "Details" section.
In 'basalPlusExt' mode, number of base pairs extending to the upstream of TSS to form the basal domains.
In 'basalPlusExt' mode, number of base pairs extending to the downstream of TSS to form the basal domains.
Extensions from the basal domains. The value can also be a vector of length two which corresponds to extension to upstream and downstream respectively.
Whether to print messages.
Only used internally.
Following are general explanations of the three modes for extending TSS:
basalPlusExt
1. TSS are extended into basal domains (e.g. by upstream 5kb, downstream 1kb); 2. basal domains are sorted by their genomic coordinates; 3. each basal domain is extended to its both sides until it reaches the next TSS's basal domain or it reaches the maximal extension (e.g. 1000kb).
twoClosest
1. TSS are sorted by their genomic coordinates; 2. each TSS is extended to its both sides until it reaches the next TSS or it reaches the maximal extension (e.g. 1000kb).
oneClosest
1. TSS are sorted by their genomic coordinates; 2. each TSS is extended to its both sides until it reaches the middle point of itself and the next TSS or it reaches the maximal extension (e.g. 1000kb).
The official explanation is at https://great-help.atlassian.net/wiki/spaces/GREAT/pages/655443/Association+Rules .
A GRanges
object with one meta column 'gene_id'.
# There is no example
NULL
#> NULL