add_samples_controlgroup {NIPTeR}R Documentation

Add a sample to an existing control group

Description

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

Usage

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

## 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)


[Package NIPTeR version 1.0.2 Index]