Learn R Programming

BALCONY (version 0.2.10)

find_seq: Find sequence by id in alignment.

Description

This function allows to search for a sequence with its id. Useful for browsing a larg multiple sequence alignment data or for automatization purposes.

Usage

find_seq(sequence_id, alignment)

Arguments

sequence_id

identifier of desired sequence from alignment

alignment

alignment file loaded with read.alignment

Value

sequence

A string, the desired aligned sequence form alignment

Examples

Run this code
# NOT RUN {
data("alignment")
#creating library uniprot - PDB
lib=list(  c("Q84HB8","4I19","4QA9"),
  c("P34913","4JNC"),
  c("P34914","1EK2","1CR6","1EK1","1CQZ"))
sequence_id=find_seqid("1CQZ",lib)
sequence=find_seq(sequence_id, alignment)

# }

Run the code above in your browser using DataLab