makeDefaultMarkerIDs: Make default marker IDs for loci.

Description Usage Arguments Value Default Marker IDs Author(s)

View source: R/util.R

Description

This function creates marker IDs from locus data.frame 'loc', and validates that each locus has a map position that is within range for the given reference sequence/chromosome. If any locus position is found to be out-of-range, then it will stop with an error message.

Usage

1
makeDefaultMarkerIDs(loc, sep = c(":", "-"))

Arguments

loc

Locus data.frame, with columns 'chr' and 'pos', specifying physical map positions.

sep

Separator between the two parts of a default marker ID.

Value

Character vector of default marker IDs.

Default Marker IDs

Default marker IDs are assigned to loci of a physical map if no other marker ID is available. These are of the form 'c04:0108900', where '04' is a zero-padded two-digit chromosome number and '0108900' is a zero-padded seven-digit number giving the physical map position of the given locus (i.e. the nucleotide position of the locus in the reference sequence).

Author(s)

Thomas Walsh <tw164@protonmail.com>

Yue Hu


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.