A simple function to read and subset the sample_data created by the user.
prep_sample_data(path, group_names)
the subsetted sample file based on the selected groups
path <- tempfile()
bfc <- BiocFileCache(path, ask = FALSE)
bfc_cache<-slot(bfc,'cache')
write_example_data_to_dir(target_dir=bfc_cache)
my_path_data<-paste0(bfc_cache,'/data/PBMC/raw_counts_TS')
my_path_sample_dta<-paste0(bfc_cache,'/data/PBMC/sample_file.csv')
prep_sample_data(my_path_sample_dta,c('IgM','LPS'))
#> sample group replicate timepoint
#> 4 s-42 LPS LPS_1 1
#> 5 s-43 LPS LPS_1 3
#> 6 s-44 LPS LPS_1 9
#> 10 s-52 IgM IgM_1 1
#> 11 s-53 IgM IgM_1 3
#> 12 s-54 IgM IgM_1 9
#> 16 s-82 LPS LPS_2 1
#> 17 s-83 LPS LPS_2 3
#> 18 s-84 LPS LPS_2 9
#> 22 s-92 IgM IgM_2 1
#> 23 s-93 IgM IgM_2 3
#> 24 s-94 IgM IgM_2 9