Learn R Programming

FitPoly: Genotype Calling for Bi-Allelic Marker Assays

FitPoly is able to genotype polyploid bi-allelic markers using signal intensities from SNP arrays. 'fitPoly' assigns genotypes (allele dosages) to a collection of polyploid samples based on these signal intensities. 'fitPoly' replaces the older package 'fitTetra' that was limited to only tetraploid populations whereas 'fitPoly' accepts any ploidy level. Version 4.0.0 onwards also include all functionalities that were added in the R package fitPolyTools.

Main functionalities of fitPoly:

  • fitPoly can fit any ploidy populations following (or not) Hardy-Weinberg equilibrium, F1 populations, with parental or sample prior information.

  • Data import from Affymetrix and Illumina SNP arrays into fitPoly format.

  • Marker and sample filtering based on signal intensities.

  • Quality checks using analysis of dosage segregation of F1 populations.

  • Other utiliy functions that can be found in the vignettes.

FitTetra reference: Genotype calling in tetraploid species from bi-allelic marker data using mixture models. Voorrips RE, Gort G, Vosman B (2011)

FitTetra 2.0 reference: FitTetra 2.0 -- improved genotype calling for tetraploids with multiple population and parental data support

Copy Link

Version

Install

install.packages('fitPoly')

Monthly Downloads

229

Version

4.0.0

License

GPL-2

Maintainer

Giorgio Tumino

Last Published

February 13th, 2025

Functions in fitPoly (4.0.0)

fitPolyTools

fitPolyTools: a package with functions related to package fitPoly
concatbatch

Construct the log, models and scores files from a set of batch files
fitMarkers

Function to fit mixture models for series of markers and save the results to files
correctDosages

Check if dosage scores may have to be shifted
fitOneMarker

Function to fit multiple mixture models to signal ratios of a single bi-allelic marker
fitPoly

fitPoly: a package for assigning dosage scores based on SNP array data
convertStartmeans

A function to convert a set of mixture means from one ploidy to another
expandUnknownParents

Generate markers with all combinations of parental scores
drawXYplots

Draws a series of pages, each with 6 XY-plots showing allele signals and assigned dosages
fitPoly_data

Small fitPoly input datasets for testing and examples
readDatfile

User-friendly wrapper for read.table
rightstr

Get substrings from the righthand side
removeRedundant

Remove redundant single-probe markers
readFullDataTable

convert a GenomeStudio FullDataTable file to the import format for fitPoly
leftstr

Get substrings from the lefthand side
listSegtypes

conversion of segtype code to F1 segregation ratios
get.genocol

Generate a set of genotype (dosage) colors for XY-plots
getBatchFiles

get the names of all batch files present
makeFitPolyFiles

Make input files for fitPoly containing only selected rows and columns
readAxiomSummary

convert an Affymetrix AxiomCT1.summary file to the import format for fitPoly
samplestats

Statistics for each F1 sample over all markers
saveMarkerModels

DEPRECATED: Function to fit mixture models for series of markers and save the results to files
selSegtypeInfo

Restrict a list of segregation types to specified inheritance modes
scores

A data set with dosage scores generated by fitPoly
selMarkers_qall

Sample markers at several qall levels
scores2wide

Convert a scores file from long to wide format
splitNrenameSamples

Rename samples from array codes to user codes, and split diploid from polyploid samples
writeDatfile

User-friendly wrapper for write.table
writeDosagefile

Write a file with segregation types and dosage scores
segtypeInfoSummary

Summarize the segtypeInfo list
selMarkers_byR

Select markers at specified R levels
CodomMarker

Function to fit a multiple mixture model to a vector of signal ratios of a single bi-allelic marker
checkFilename

Check if a file can be created
XY_plot

Draws an XY-plot showing allele signals and assigned dosages
XYdat

A data set containing SNP array data
F1Dosages2Matrix

Convert the F1 dosage scores data.frame or file to polymapR input matrix
combineFiles

Combine the X and Y intensity scores and the assigned dosage in one file
calcRstats

Calculate statistics of R per marker
calcSegtypeInfo

Build a list of segregation types
compareProbes

Compare and combine results from two probes for the same SNP
checkF1

Identify the best-fitting F1 segregation types