Skip to contents

Make download destination paths

Usage

make_dest_paths(data, type, dest_dir)

Arguments

data

A dataframe containing an asm_acc column

type

the type of files you want to download, one of: 'fna', 'gbff', 'gff', 'gtf', 'faa', 'cds'

dest_dir

path to the directory you want to use, must exist, should include a trailing '/'

Value

returns a dataframe with an added "type_dest" column containing the paths to pass to download.file

Examples

# download_data %>% make_dest_faths(type='fna', dest_dir='./data/')