read_structure {BALCONY}R Documentation

Read structure data from a text file

Description

By using this function you can read text file and create an structure list which can be used in further evolutionary analysis with BALCONY package. Text file should comprise 2 or 3 columns: first one should contain indices (positions) of amino acids in the protein, the second one should contain amino acid symbols on specified positions and the third one (optionally) the numeric property of given residue.

Usage

read_structure(file_names)

Arguments

file_names

A vector of strings with structure file(s) name(s)

Details

The files should be formatted as follows:

2 ASP 100
6 TYR 80
11 PHE 30
6 TYR 30

Value

strucure_list

A list with read structure data. Number of elements of this list equals to the number of files specified.

Author(s)

Alicja Pluciennik & Michal Stolarczyk

Examples

#Generating exemplary input files for the function

fileConn<-file("exemplary_input1.txt")
writeLines(c("2 TYR 100","3 LEU 100", "7 VAL 50", "10 PHE 30", "20 SER 20"), fileConn)
close(fileConn)
fileConn<-file("exemplary_input2.txt")
writeLines(c("5 ALA 100","6 ILE 100", "18 GLY 100", "40 PHE 100"), fileConn)
close(fileConn)

structure_list = read_structure(file_names = c("exemplary_input1.txt", "exemplary_input2.txt"))


[Package BALCONY version 0.2.10 Index]