InfHom: Inference of chromosome homology

Description Usage Arguments Details Value Author(s)

View source: R/InfHom.R

Description

Takes the output from AnalyzeBlastR and conducts a Monte Carlo simulation to determine homology.

Usage

1
InfHom(chromdat, scaff.lim = F, dbchrom.lim = F, max.scaffs = 10, max.dbchroms = 10, resolution =1000)

Arguments

chromdat

Output produced by AnalyzeBlastR

scaff.lim

Boolean option whether or not to limit the number of scaffolds considered; if true, the limit is set by max.scaffs

dbchrom.lim

Same as above except for the number of database chromosomes

max.scaffs

Maximum number of scaffolds to infer homology for. Automatically takes largest.

max.dbchroms

Same as above except for database chromosomes.

resolution

Number of iterations to conduct random sampling. Higher will lead to more statistical power and less variance, but will take more time.

Details

Takes the data provided by AnalyzeBlastR about the distribution of hits from the BLAST database to determine whether a query scaffold has more hits than one would expect from a purely random sample of the database chromosomes.

Value

Returns a dataframe where columns are the database chromosomes, in decreasing size, and rows are the query scaffolds, also in decreasing size. Each cell contains the number of hits that the query scaffold contains from the corresponding database chromosome, with significance notation (*,**,***) based on the percentage of times that the Monte Carlo simulation produced a scaffold with more hits than what is observed.

Author(s)

Johnathan Lo and Heath Blackmon


johnathanlo/chromPaintR documentation built on July 2, 2020, 7:29 p.m.