R/select_orthologs.R
select_orthologs.Rd
This function selects orthologs based on either gene locus or splice variant.
select_orthologs(
dnds_tbl,
annotation_file_query,
annotation_file_subject,
collapse_by = "gene_locus",
format = c("gtf", "gtf")
)
a tibble returned by link{dNdS}
.
file path to query annotation file in either gtf
or gff
format.
file path to query annotation file in either gtf
or gff
format.
locus type by which orthologs should be determined. Options are:
type = "gene_locus"
: the splice variant having the lowest e-value of the BLAST search is chosen to represent the gene locus for the orthology relationship.
type = "splice_variant"
: all splice variants of homologous gene loci will be returned.
a vector of length 2 storing the annotation file formats of the query annotation file and subject annotation file: either gtf
or gff
format. E.g. format = c("gtf","gtf")
.