| gc_scale | R Documentation |
Prepares a gene‐cluster annotation table for downstream plotting by
converting absolute genomic coordinates into relative positions,
ensuring that every cluster starts at 0 and is oriented consistently.
Hypothetical ORFs (originally labeled with NA) and missing
labels are replaced with placeholders, and factor levels are set
as requested.
gc_scale(GC_meta = GC_meta, levels_gene_group = levels_gene_group)
GC_meta |
A data frame containing gene-cluster information. Must include
the columns |
levels_gene_group |
Character vector specifying the desired factor levels
for |
Absolute start/end values are not modified; scaled
values are stored in new columns (Pstart, Pend).
Pgenome can be swapped for any unique identifier (e.g., Genome)
downstream if each genome contains only one cluster.
The input data frame with the following new or overwritten columns:
gene_labelEmpty string ("") if originally NA.
gene_groupSet to "hypothetical ORF" if originally
NA, then coerced to a factor using
levels_gene_group.
PgenomeFactor version of gene_cluster; levels
follow the order of appearance in the data.
Pstart, PendRelative start and end coordinates (numeric) within each cluster, scaled so that the left-most gene starts at 0.
PdirectionLogical vector: TRUE for forward,
FALSE for reverse.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.