load_data_with_ftp: Load datasets from URL...

View source: R/load_data_with_ftp.R

load_data_with_ftpR Documentation

Load datasets from URL (ftp://111.198.139.72:4000/pub/PhosMap_datasets)

Description

Some datasets with larger size need to be loaded for mapping ID or protein sequence when using PhosMap. These datasets could be ragarded as library and uploaded to ftp://111.198.139.72:4000/pub/PhosMap_datasets in advance. When first perfoming functions depending on these datasets, PhosMap will get them from specific URL and save them into local disk.

Usage

load_data_with_ftp(ftp_link, data_type)

Arguments

ftp_link

A string for URL of datasets.

data_type

A string for type of datasets (txt, csv, RData).

Value

A dataframe

Author(s)

Dongdong Zhan and Mengsha Tong

Examples

## Not run: 
ftp_url <- "ftp://111.198.139.72:4000/pub/PhosMap_datasets/function_demo_data/profiling_exp_design_info.txt"
load_data <- load_data_with_ftp(ftp_url, 'txt')
head(load_data)

## End(Not run)

ecnuzdd/PhosMap documentation built on Dec. 7, 2022, 4:09 a.m.