powered by
Processes Relative Synonymous Codon Usage (RSCU) data from PhyloSuite CSV files, preparing it for visualization with the `ggmRSCU` package.
read_phy(folder_path)
Visualization-ready data frame with:
Amino acid code
RNA triplet
Position index (1-6)
Organism identifier
Normalized usage values
Path to folder containing CSV files. Files must contain: - 'RSCU' column - Species-reflecting file names - Required columns: AA, Codon, Fill, RSCU
Performs:
File validation for required structure
Species name extraction
Data reshaping to long format
NA removal
# Using example data example_dir <- system.file("extdata", "phy", package = "ggmRSCU") result <- read_phy(example_dir) head(result)
Run the code above in your browser using DataLab