compute.snps {MoBPS}R Documentation

Compute genotype/haplotype

Description

Internal function for the computation of genotypes & haplotypes

Usage

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

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

[Package MoBPS version 1.6.64 Index]