makeSubmapByDistance: Creation of a submaps

View source: R/makeSubmapByDistance.r

makeSubmapByDistanceR Documentation

Creation of a submaps

Description

This function creates a submap using the list segments created by using gap between markers

Usage

makeSubmapByDistance(bedmatrix, segmentsList, epsilon = 0.001, snpIndices)

Arguments

bedmatrix

a bed.matrix object

segmentsList

a list of segments for each chromosome

epsilon

genotype error rate (default is 0.001)

snpIndices

(optional) You have the possibility to pass your own list of markers

Details

If snpIndices is given, the function creates a submap corresponding to the given SNPs.

Otherwise, the function iterates over the list of segments, then for each segments it picks randomly one marker and from this marker choses a marker every "step" step from back to end.

Value

return an snpsMatrix object

See Also

makeAtlasByDistance

Examples

 
#Please refer to vignette 



genostats/Fantasio documentation built on Feb. 2, 2023, 5:28 p.m.