segSites2snpCoords: Site frequency spectrum

View source: R/quantgen.R

segSites2snpCoordsR Documentation

Site frequency spectrum

Description

Make a data.frame of SNP coordinates (1-based) from the SFS of independent replicates.

Usage

segSites2snpCoords(seg.sites, snp.ids, chrom.len, prefix = "chr", verbose = 1)

Arguments

seg.sites

list of haplotypes returned by scrm, each component of which corresponds to a matrix with haplotypes in rows and SNP in columns

snp.ids

vector of identifiers (one per SNP)

chrom.len

chromosome length (same for all)

prefix

character string

verbose

verbosity level (0/1)

Value

data.frame with SNPs in rows and 2 columns (chr, pos)

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.