clean_scan1: Clean scan1 output

Description Usage Arguments Value Examples

View source: R/clean_scan1.R

Description

Clean scan1 output by replacing negative values with NA and remove rows where all values are NA.

Usage

1
2
3
4
clean_scan1(object, ...)

## S3 method for class 'scan1'
clean(object, ...)

Arguments

object

Output of scan1().

...

Ignored at present

Value

The input object with negative values replaced with NAs and then rows with all NAs removed.

Examples

1
2
3
4
5
6
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))

pr <- calc_genoprob(iron)
out <- scan1(pr, iron$pheno)

out <- clean(out)

qtl2 documentation built on Oct. 18, 2021, 1:06 a.m.