detectRUNS0.9.6 package

Detect Runs of Homozygosity and Runs of Heterozygosity in Diploid Genomes

summaryRuns

Summary statistics on detected runs

tableRuns

Function to retrieve most common runs in the population

writeRUN

Function to write out RUNS per individual animal

snpInsideRuns

Function to count number of times a SNP is in a RUN

snpInsideRunsCpp

Function to count number of times a SNP is in a RUN

chromosomeLength

Function to found max position for each chromosome

consecutiveRuns

Function to detect consecutive runs in a vector (individual's genotype...

consecutiveRUNS.run

Main function to detect genomic RUNS (ROHom/ROHet) using the consecuti...

consecutiveRunsCpp

Function to detect consecutive runs in a vector (individual's genotype...

createRUNdf

Function to create a dataframe of RUNS per individual animal Requires ...

findOppositeAndMissing

Function to calculate oppositeAndMissingGenotypes array

Froh_inbreeding

Function to calculated Froh genome-wide or chromosome-wide

Froh_inbreedingClass

Function to calculated Froh using a ROH-class

genoConvert

Convert 0/1/2 genotypes to 0/1

genoConvertCpp

Convert 0/1/2 genotypes to 0/1

heteroZygotTest

Function to check whether a window is (loosely) heterozygous or not

heteroZygotTestCpp

Function to check whether a window is (loosely) heterozygous or not

homoZygotTest

Function to check whether a window is (loosely) homozygous or not

homoZygotTestCpp

Function to check whether a window is (loosely) homozygous or not

pedConvertCpp

Convert ped genotypes to 0/1

plot_DistributionRuns

Plot Distribution of runs

plot_InbreedingChr

Plot Froh-based inbreeding coefficients by group

plot_manhattanRuns

Plot the proportion of times SNPs are inside runs - MANHATTAN PLOT

plot_PatternRuns

Plot sum of run-lengths (or average run-lengths) against the number of...

plot_Runs

Function to plot runs per individual

plot_SnpsInRuns

Plot the number of times each SNP falls inside runs

plot_StackedRuns

Plot stacked runs

plot_ViolinRuns

Violin plot of run length per individual (either sum or mean)

readExternalRuns

Read runs from external files

readPOPCpp

Function to return a dataframe of population (POP, ID)

reorderDF

Function to reorder data frames by CHROMOSOME

slidingRuns

Function to detect runs using sliding window approach

slidingRUNS.run

Main function to detect RUNS (ROHom/ROHet) using sliding windows (a la...

slidingWindow

Function to slide a window over a vector (individual's genotypes)

slidingWindowCpp

Function to slide a window over a vector (individual's genotypes)

snpInRun

Function to return a vector of T/F for whether a SNP is or not in a RU...

snpInRunCpp

Function to return a vector of T/F for whether a SNP is or not in a RU...

Detection of runs of homozygosity and of heterozygosity in diploid genomes using two methods: sliding windows (Purcell et al (2007) <doi:10.1086/519795>) and consecutive runs (Marras et al (2015) <doi:10.1111/age.12259>).

  • Maintainer: Filippo Biscarini
  • License: GPL-3
  • Last published: 2019-10-24