| Import Excel workbook in Additional File 3 into Mathematica | |
|---|---|
| 1.1 | Import sheet 1, AF3A, (rows 1-268) and sheet 4, AF3D, (rows 1-77). |
| 1.2 | Remove blank text cells from AF3D. |
| Build and display Host distributions-PAMs bimultigraphs | |
|---|---|
| 2.1 |
Load module buildBimultigraphNetwork
Arguments: |
| 2.2 |
For each marker "CCHC array", "P3 consensus", "GPY/F":
|
| Build and display retroelement phylogeny branches-PAMs bimultigraphs | |
|---|---|
| 3.1 |
Load module buildBimultigraphNetwork.
Arguments: |
| 3.2 | For each marker "CCHC array", "P3 consensus", "GPY/F":
|
| Construct MCs as feature vectors: MC → 8-dimensional integer vector | |
|---|---|
| 4.1 | Load auxiliary module featureMap. |
| 4.2 | Load main module featureVectors.
Arguments: |
| 4.3 | Assign to featureList a list of PAMs to use as they appear in the header of AF3A and run {fvs, fm} = featureVectors[excelAF3A, "Species", featureList]. |
| 4.4 | Remove duplicate MCs from fvs to get a unique list of 76 feature vectors. |
| Join MCs in a network according to PAM state changes | |
| 4.5 | Load auxiliary module similarityMatrix. |
| 4.6 |
Load main module buildDistanceGraph.
Arguments: |
| 4.7 |
Load auxiliary module addVirtualNodes.
Algorithm outline: |
| 4.8 | Plot graph returned by addVirtualNodes[buildDistanceGraph[Sort[Union[fvs]],True]] with visualization modules setEdgeColor and setVertex. |
| 4.9 | Plot graph returned by addVirtualNodes[buildDistanceGraph[Sort[Union[fvs]],False]] with visualization modules setEdgeColor and setVertex. |
| 4.10 |
Load auxiliary module addMultiLabeledEdges.
Algorithm outline: |
| 4.11 | Plot graph returned by addMultiLabeldEdges[addVirtualNodes[buildDistanceGraph [Sort[Union[fvs]],False]]] with visualization modules setEdgeColor2 and setVertex. |
| Computation of degree distribution and average clustering coefficient of phenotypic neighbors networks | |
|---|---|
| 5.1 | Obtain adjacency matrix |
| 5.2 | Transform graph into Combinatorica format from adjacency matrix |
| 5.3 |
Load module degreeDistribution.
Arguments: Where N(i) → Nodes of degree i ; N → Number of nodes ; K → Maximum degree |
| 5.4 | Run degreeDistribution(graph). |
| 5.5 |
Load auxiliary module clusteringCoefficient.
Arguments:
Where δ(ni) → Degree of node ni ; μ(ni) → Number of edges between distance 1 neighbors of ni |
| 5.6 |
Load main module averageClusteringCoefficients.
Arguments:
|
| 5.7 | Run averageClusteringCoefficients(graph). |
| 5.8 |
Calculate the mean shortest path length :Run Mean[Mean[AllPairsShortestPath[graph]]] |