SeqendFilter: Constructor functions for filter objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

These functions allow to create filter objects that can be used to retrieve specific elements from the annotation database.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
EntrezidFilter(value, condition = "=")
GeneidFilter(value, condition = "=")
GenenameFilter(value, condition = "=")
GenebiotypeFilter(value, condition = "=")
TxidFilter(value, condition = "=")
TxbiotypeFilter(value, condition = "=")
ExonidFilter(value, condition = "=")
SeqnameFilter(value, condition = "=")
SeqstrandFilter(value, condition = "=")
SeqstartFilter(value, condition = "=", feature = "gene")
SeqendFilter(value, condition = "=", feature = "gene")

Arguments

value

The filter value, e.g., for GeneidFilter the id of the gene for which the data should be retrieved. For character values (all filters except SeqstartFilter and SeqendFilter) also a character vector of values is allowed. Allowed values for SeqstrandFilter are: "+", "-", "1" or "-1".

condition

The condition to be used in the comparison. For character values "=", "in" and "like" are allowed, for numeric values (SeqstartFilter and SeqendFilter) "=", ">", ">=", "<" and "<=". Note that for "like" value should be a SQL pattern (e.g. "ENS%").

feature

For SeqstartFilter and SeqendFilter: the chromosomal position of which features should be used in the filter (either "gene", "transcript" or "exon")?

Details

EntrezidFilter

Filter results based on the NCBI Entrezgene ID of the genes.

GeneidFilter

Filter results based on Ensembl gene IDs.

GenenameFilter

Filter results based on gene names (gene symbols).

GenebiotypeFilter

Filter results based on the biotype of the genes. For a complete list of available gene biotypes use the listGenebiotypes method.

TxidFilter

Filter results based on the Ensembl transcript IDs.

TxbiotypeFilter

Filter results based on the biotype of the transcripts. For a complete list of available transcript biotypes use the listTxbiotypes method.

ExonidFilter

Filter based on the Ensembl exon ID.

SeqnameFilter

Filter results based on the name of the sequence the features are encoded.

SeqstrandFilter

Filter results based on the strand on which the features are encoded.

SeqstartFilter

Filter results based on the (chromosomal) start coordinate of the features (exons, genes or transcripts).

SeqendFilter

Filter results based on the (chromosomal) end coordinates.

Value

Depending on the function called an instance of: EntrezidFilter, GeneidFilter, GenenameFilter, GenebiotypeFilter, TxidFilter, TxbiotypeFilter, ExonidFilter, SeqnameFilter, SeqstrandFilter, SeqstartFilter, SeqendFilter

Author(s)

Johannes Rainer

See Also

EntrezidFilter, GeneidFilter, GenenameFilter, GenebiotypeFilter, TxidFilter, TxbiotypeFilter, ExonidFilter, SeqnameFilter, SeqstrandFilter, SeqstartFilter, SeqendFilter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## create a filter that could be used to retrieve all informations for
## the respective gene.
Gif <- GeneidFilter("ENSG00000012817")
Gif
## returns the where clause of the SQL querys
where(Gif)

## create a filter for a chromosomal end position of a gene
Sef <- SeqendFilter(100000, condition="<", "gene")
Sef

## To find genes within a certain chromosomal position filters should be
## combined:
Ssf <- SeqstartFilter(10000, condition=">", "gene")
Snf <- SeqnameFilter("2")
## combine the filters
Filter <- list(Ssf, Sef, Snf)

Filter

## generate the where SQL call for these filters:
where(Filter)

jotsetung/ensembldb-old documentation built on May 19, 2019, 9:41 p.m.