Learn R Programming

Bios2cor (version 1.2)

create_network: Creates network structure of top elements

Description

Given a top_contact structure (result of the corr_contact function), creates a network to visualize the elements involved in the top scoring pairs and their links

Usage

create_network(top_contact_struct, filepath)

Arguments

top_contact_struct

An object created by the corr_contact function

filepath

The full path name of the output file

Value

A network representing links between elements in the top scoring pairs

Examples

Run this code
# NOT RUN {
  msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
  align <- import.msf(msf)

  #Creating OMES object
  omes <- omes(align,fileHelix= NULL , diag= 0, fileCSV= NULL, gap_val= 0.8, z_score= TRUE)
  omes <-omes$normalized
   
  contact <- corr_contact(omes, top= 25, "contact_file.txt","top_scores.txt")

  create_network(contact, "network_file.pdf")
  
# }

Run the code above in your browser using DataLab