Learn R Programming

pheno2geno (version 1.4.0)

assignChrToMarkers: Function that assigns a chromosome label to a genetic marker

Description

This functions returns an ordering vector of markers for each marker it shows which chromosome the marker belongs to.

Usage

assignChrToMarkers(assignment, cross)

Arguments

assignment

Chromosome assignment vector created using cross.denovo with reOrder = FALSE

cross

An object of class cross. See read.cross for details.

Value

Ordering vector, that can be used by reorganizeMarkersWithin function to reorder the cross object.

Details

When using the cross.denovo function with the parameter reOrder = FALSE, its return value will be a chromosome assignment vector. This chromosome assignment vector shows how chromosomes from the created map are assigned to chromosomes from the original map. By using the assignChrToMarkers function the chromosome assignment vector is transformed into a marker ordering vector, which is used by reorganizeMarkersWithin to reorder markers inside the cross object.

See Also

reorganizeMarkersWithin - Apply new ordering on the cross object using ordering vector. cross.saturate - Saturate existing map. cross.denovo - Create de novo genetic map or vector showing how chromosomes should be assigned.

Examples

Run this code
# NOT RUN {
	data(testCross)
	data(testPopulation)
	assignment <- cross.denovo(testPopulation,n.chr=5,verbose=TRUE,map="genetic",
  comparisonMethod=sumMajorityCorrelation, use.orderMarkers=FALSE,reOrder=FALSE)
  assignment
  ordering <- assignChrToMarkers(assignment,testCross)
# }

Run the code above in your browser using DataLab