Learn R Programming

eqtl (version 1.1-7)

drop.peakfeat: Erase peak features in peak object

Description

Erase chosen peak features informations from a peak object.

Usage

drop.peakfeat(peak, feat)

Arguments

peak
An object of class peak. See define.peak function for details.
feat
A character string vector containing the names of the features to delete. Features could be: "additive.effect","peak.bp","inf.bp","sup.bp" or "type". See calc.adef, localize.qtl,classify.qtl functions for details.

Value

peak

Details

In peak object, QTL is defined by peak features. This function is useful to erase some peak features by avoiding to redo all the analyses (mainly the define.peak function). Only the peak features generated by the functions calc.adef, localize.qtl and classify.qtl should be removed. This function is used by the functions 'calc.adef', 'localize.qtl' and 'classify.qtl'.

See Also

define.peak,localize.qtl,calc.adef,classify.qtl

Examples

Run this code

data(seed10);

out.em <- scanone( seed10, pheno.col=1:50, model='normal', method='hk')
out.peak <- define.peak(out.em,lodcolumn='CATrck');
out.peak <- calc.adef(seed10,out.em,out.peak)

out.peak;

data(BSpgmap);
out.peak <- localize.qtl(seed10,out.peak,BSpgmap);

out.peak;

out.peak <- drop.peakfeat(out.peak,'additive.effect');
out.peak <- drop.peakfeat(out.peak,c('inf.bp','sup.bp'));

out.peak;

Run the code above in your browser using DataLab