only_one: Picking one sample per person

Description Usage Arguments Value Examples

Description

In the analysis it is sometimes useful to just have one sample per ENROLLID. This is particularily true when we are simply interest in data specific to the indivudal and not the sample. This function reduces a meta file that may contain many SPECID/ENROLLID season pcr_result and reduces it so that just one SPECID exists for each ENROLLID. We choose the best SPECID defined by the sequenced sample the sample that qualified for snv calling the sample with highest titer. If no samples were seqeunced we choose randomly.

Usage

1
only_one(meta_df)

Arguments

meta_df

A data frame containing one row for each SPECID in the data set.

Value

A data frame with one row for each ENROLLID in the data frame.

Examples

1
2

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.