obtain_mean_ks_for_each_multiplicon: Compute the Mean of Ks values for Each Multiplicon

View source: R/obtain_mean_ks_for_multiplicons.R

obtain_mean_ks_for_each_multipliconR Documentation

Compute the Mean of Ks values for Each Multiplicon

Description

This function takes as input a multiplicon file, an anchorpoint file, Ks values, and other relevant information. It calculates the mean of Ks values for each multiplicon and associates them with the corresponding data.

Usage

obtain_mean_ks_for_each_multiplicon(
  multiplicon_file,
  anchorpoint_file,
  species1,
  ks_file,
  outfile,
  anchorpointout_file,
  species2 = NULL
)

Arguments

multiplicon_file

A file containing multiplicon information.

anchorpoint_file

A file containing anchorpoints information with columns like geneX, geneY, and other relevant data.

species1

The name of the first species.

ks_file

A file containing Ks values.

outfile

The output file where the results will be saved.

anchorpointout_file

The output file for anchorpoint data with Ks values.

species2

(Optional) The name of the second species. Specify this parameter and ks_file if working with two species.

Value

None. The function saves the results to the specified outfile and anchorpointout_file.


shinyWGD documentation built on April 4, 2025, 2:28 a.m.