remove_sample_controlgroup {NIPTeR}R Documentation

Remove a sample by samplename from control group

Description

Remove a sample by samplename from control group

Usage

remove_sample_controlgroup(samplename, nipt_control_group)

Arguments

samplename

Regular expression string. All matching samplenames are removed from the control group

nipt_control_group

NIPTControlGroup object to remove samples from

Details

This function removes a sample from the 'NIPTControlGroup' object by name. Note that this function uses a regular expression, and if more sample_names satisfy the regular expression, they will also be removed. It returns a new NIPTControlGroup object.

Value

NIPTControlGroup object

Examples

## Not run: 
new_control_group <- remove_sample_controlgroup(samplename = unwanted_sample, 
                                                nipt_control_group = old_control_group)

## End(Not run)


[Package NIPTeR version 1.0.2 Index]