# general usage
hgnc2pfam("TP53")
hgnc2pfam("TP53", output.format = "json")
hgnc2pfam("TP53", output.format = "list")
hgnc2pfam("TP53", output.format = "json", uniprot.id = "P04637") # OK
# for gene mapping to multiple UniProt enties
hgnc2pfam("GNAS", guess = TRUE)
hgnc2pfam("GNAS", guess = FALSE)
hgnc2pfam("GNAS", output.format = "list")
hgnc2pfam("GNAS", output.format = "list", uniprot.id = "P84996")
if (FALSE) {
hgnc2pfam("GNAS", output.format = "list", uniprot.id = "P84997") # , returns FALSE
}
hgnc2pfam("PRAMEF9", output.format = "list") # no Pfam mappings
Run the code above in your browser using DataLab