compute.snps: Compute genotype/haplotype

Description Usage Arguments Value Examples

View source: R/compute.snps.R

Description

Internal function for the computation of genotypes & haplotypes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
compute.snps(
  population,
  gen,
  sex,
  nr,
  faster = TRUE,
  import.position.calculation = NULL,
  from_p = 1,
  to_p = Inf,
  decodeOriginsU = decodeOriginsR,
  bit.storing = FALSE,
  nbits = 30,
  output_compressed = FALSE
)

Arguments

population

Population list

gen

Generation of the individual to compute

sex

Gender of the individual to compute

nr

Number of the individual to compute

faster

If FALSE use slower version to compute markers between recombination points

import.position.calculation

Function to calculate recombination point into adjacent/following SNP

from_p

First SNP to consider

to_p

Last SNP to consider

decodeOriginsU

Used function for the decoding of genetic origins [[5]]/[[6]]

bit.storing

Set to TRUE if the MoBPS (not-miraculix! bit-storing is used)

nbits

Bits available in MoBPS-bit-storing

output_compressed

Set to TRUE to get a miraculix-compressed genotype/haplotype

Value

haplotypes for the selected individual

Examples

1
2
data(ex_pop)
compute.snps(ex_pop, gen=1, sex=1, nr=1)

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to compute.snps in MoBPS...