choose_one_filename: Select the best filename to keep

Description Usage Arguments Value Examples

View source: R/download-data.R

Description

Some cases in the sample sheet have multiple files. 'choose_one_filename()'uses a set of (fairly arbitrary) checks to select one filename. 'two_filename_handler()' and 'three_filename_handler()' parse two or three file names based on my heuristics for which is most likely to be more useful.

Usage

1
2
3
4
5

Arguments

fn

vector of filenames

Value

a single filename from the input vector that should be retained

Examples

1
2
3
test_fns <- c("TCGA-A6-2672-01B-03D-2301-10_Illumina_gdc_realn.bam",
              "C982.TCGA-A6-2672-01B-03D-2298-08.2_gdc_realn.bam")
choose_one_filename(test_fns)

jhrcook/KrasAlleleCna documentation built on May 28, 2019, 1:22 p.m.