BioGraph::FileAccess
use BioGraph::FileAccess;
Package for manipulate graphs represented as well as adjacent matrix or adjacent list. Library for read and write different types of graph.
This is the list of the differents functions implemented in this library.
Use this function to read graph from file
SYNOPSIS %G=read_graph(file, representation, symetrisation)
PARAMETERS
the name of the graph file to read ; the recognized formats of graphs are
Note that the format of the graph is detected by checking the name file, so ensure that your file has the correct extension.
the type of representation choosen : 1 = adjacent matrix, and 2 = adjacent list
enable (or not) the symetrisation of the edges of the graph : 0 = disable, 1 = enable
OUTPUT The hash table of the graph read
$G{$s1}{$s2} exists if (and only if) the edge ($s1, $s2) exists
$G{$s1} contains the list of all the vertices connected to $s1
Associate a comment to vertices (ex: associate a function to a protein, ...)
SYNOPSIS %C=read_association(file, representation, graph)
the name of the associations file (format : vertex tabulate comment)
the hash table of the graph
OUTPUT The hash table of the associations : vertex <=> comment
Use this function to write graph to disk in the required format
SYNOPSIS write_graph(representation, file_name, format, graph)
the basename of the output file (ex: graph => graph.dot)
one type of format in : dot, gr, biolayout, net
OUTPUT Nothing else the file written to disk
Use this function to write valuated graph to disk in the required format
SYNOPSIS write_graph(representation, file_name, format, ref_distance, graph)
the reference to the table of distances
Use this function to write graph with clusters to disk in the required format
SYNOPSIS write_graph_clusters(representation, file_name, format, cluster_nb, ref_cluster, graph)
the number of clusters
the table of clusters's elements
Use this function to write clusters to disk in the treedyn format
SYNOPSIS write_treedyn_clusters(file_name, cluster_nb, ref_cluster)
BioGraph::FileAccess is Copyright (C) 2004, Tristan Colombo CNRS - LCB, 31 chemin Joseph Aiguier 13009 Marseille France Email: tristan.colombo@ibsm.cnrs-mrs.fr All rights reserved. You may distribute this package under the terms of the GNU General Public License.
To install BioGraph::Random, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BioGraph::Random
CPAN shell
perl -MCPAN -e shell install BioGraph::Random
For more information on module installation, please visit the detailed CPAN module installation guide.