createPairedData: Creates a dataframe of paired sample types with a column...

Description Usage Arguments Value Examples

View source: R/boxplotsRPKM.R

Description

Creates a dataframe of paired sample types with a column named group

Usage

1
createPairedData(df_map, pair_list)

Arguments

df_map

A dataframe of combined non-subsampled or subsampled mapping data and metadata

pair_list

A list of vectors of length two containing paired sample types

Value

A dataframe of paired sample types with a column named group i.e. saliva vs. stool

Examples

1
2
3
df_map_subsampled <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/subsampled_argrich_merged.csv", without_US_duplicates = TRUE)
pair_list <- list(c("stool", "dental"), c("stool", "saliva"), c("dental", "saliva"), c("stool", "dorsum of tongue"), c("stool", "buccal mucosa"), c("dorsum of tongue", "buccal mucosa"), c("dorsum of tongue", "dental"), c("buccal mucosa", "dental"))
df_map_subsampled_pairs <- createPairedData(df_map_subsampled, pair_list)

blue-moon22/resistomeAnalysis documentation built on Jan. 17, 2020, 4:15 a.m.