remove_sample_controlgroup: Remove a sample by samplename from control group

Description Usage Arguments Details Value Examples

Description

Remove a sample by samplename from control group

Usage

1
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

1
2
3
4
5
## Not run: 
new_control_group <- remove_sample_controlgroup(samplename = unwanted_sample, 
                                                nipt_control_group = old_control_group)

## End(Not run)

NIPTeR documentation built on May 2, 2019, 7:55 a.m.