Learn R Programming

aphylo (version 0.3-3)

write_pli: Write pli files used by SIFTER

Description

Write pli files used by SIFTER

Usage

write_pli(
  family_id,
  protein_name,
  protein_number,
  go_number,
  moc = "EXP",
  file = ""
)

Value

A string with the XML file.

Arguments

family_id

Character scalar. Name of the family

protein_name, protein_number, go_number, moc

Vectors of the same length

file

Character scalar passed to cat.

Examples

Run this code
set.seed(882)
atree <- raphylo(5)
write_pli(
  family_id      = "a family",
  protein_name   = atree$tree$tip.label,
  protein_number = 1:Ntip(atree),
  go_number      = "GO:123123123123"
)
# Possible outcome:
#
#
#  a family
#  
#    1
#    1
#    [GO:123123123123]
#    [EXP]
#  
#  
#    2
#    2
#    [GO:123123123123]
#    [EXP]
#  
#  
#    3
#    3
#    [GO:123123123123]
#    [EXP]
#  
#  
#    4
#    4
#    [GO:123123123123]
#    [EXP]
#  
#  
#    5
#    5
#    [GO:123123123123]
#    [EXP]
#  
#

Run the code above in your browser using DataLab