Skip to contents

Retrieve Protein Sequence in FASTA Format from the KEGG Database

Usage

getFASTAFromKEGG(id, parallel = 5)

Arguments

id

A character vector, as the protein ID.

parallel

An integer, the parallel parameter, indicates how many process the user would like to use for retrieving the data (using RCurl), default is 5. For regular cases, we recommend a number less than 20.

Value

A list, each component contains one of the protein sequences in FASTA format.

Details

This function retrieves protein sequences in FASTA format from the KEGG database.

See also

See getSeqFromKEGG for retrieving protein represented by amino acid sequence from the KEGG database. See readFASTA for reading FASTA format files.

Examples

id = c('hsa:10161', 'hsa:10162')
# \donttest{
getFASTAFromKEGG(id)# }
#> Iterating ■■■■■■■■■■■■■■■■                  50% | ETA:  1s
#> Iterating ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■  100% | ETA:  0s
#> Error in httr2::resp_body_string(resp[[i]]): `resp` must be an HTTP response object, not a <httr2_failure> object.