add_samples_controlgroup: Add a sample to an existing control group

Description Usage Arguments Value Examples

Description

This functions adds NIPTSample objects to an existing control group and returns a new NIPTControlGroup object.

Usage

1
add_samples_controlgroup(nipt_control_group, samples_to_add)

Arguments

nipt_control_group

The NIPTControlGroup to add the samples to

samples_to_add

A list with sample(s) to add. This always needs to be a list

Value

NIPTControlGroup object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
##First bin the new sample
new_binned_sample <- bin_bam_sample(bam_filepath = "/path/to/file.bam", 
                                    separate_strands = T)

##Then add the sample to the control group
new_control_group <- add_samples_controlgroup(nipt_control_group = my_control_group, 
                                              samples_to_add = new_binned_sample)

## End(Not run)

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