uniprot2ids: UniProt IDs to others

View source: R/uniprot2ids.R

uniprot2idsR Documentation

UniProt IDs to others

Description

A function which converts UniProt IDs to others.

Usage

uniprot2ids(uniprotid = "ACC+ID", to, query)

Arguments

uniprotid

Source IDs.

to

To IDs.

query

A query.

Details

This function is based on the Python3 script from UniProt. See https://www.uniprot.org/help/api_idmapping

Value

A UniProt-ID mapping

Note

Adapted from script by UniProt

Examples

## Not run: 
uniprotid <- "ACC+ID"
to <- "CHEMBL_ID"
query <- noquote(gap.datasets::inf1[["uniprot"]])
query <- paste(query,collapse=" ")
r <- pQTLtools::uniprot2ids(uniprotid,to,query)
cat(r,file="INF1.merge.chembl")

## End(Not run)

jinghuazhao/pQTLtools documentation built on Nov. 21, 2024, 3:32 a.m.