Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
reednel committed Jan 17, 2024
1 parent 616a275 commit 342d487
Show file tree
Hide file tree
Showing 25 changed files with 182 additions and 182 deletions.
8 changes: 4 additions & 4 deletions example/README.md → examples/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Examples

The purpose of this folder is to provide worked example of MiNAA's inputs, execution, and outputs.
The purpose of this directory is to provide worked example of MiNAA's inputs, execution, and outputs.

`g.csv` is the adjacency matrix for the network G.
`h.csv` is the adjacency matrix for the network H.
Expand All @@ -10,23 +10,23 @@ Once MiNAA is successfully compiled, the examples below can be run from this pro

## Example 1

`./minaa.exe example/g.csv example/h.csv -a=0.6 -g`
`./minaa.exe examples/g.csv examples/h.csv -a=0.6 -g`

Output to: `g-h-a0.6/`

Here we align network **g** with network **h** using no biological data. `-a=0.6` sets alpha equal to 0.6, meaning 60% of the topological cost function comes from similarity calculated by GDVs, and 40% from simpler node degree data.

## Example 2

`./minaa.exe example/g.csv example/h.csv -B=example/bio.csv -b=0.85 -st=0.5 -s`
`./minaa.exe examples/g.csv examples/h.csv -B=examples/bio.csv -b=0.85 -st=0.5 -s`

Output to: `g-h/`

Here we align network **g** with network **h** using topological information and the given biological similarity matrix, **bio**. Since we've provided a similarity matrix instead of a cost matrix (the default), we have to flag that with `-s`. Since alpha was unspecified, it defaults to 1. Since beta was set to 0.85, 85% of the cost weight is from the calculated topological cost matrix, and 15% is from **bio**. Since the similarity threshold `-st=` was set to 0.5, any aligned pair with similarity score less than or equal to 0.5 is excluded from the alignment results.

## Example 3

`./minaa.exe example/g.csv example/h.csv -Galias=nonsmoker -Halias=smoker -p -t`
`./minaa.exe examples/g.csv examples/h.csv -Galias=nonsmoker -Halias=smoker -p -t`

Output to: `nonsmoker-smoker-2024_01_16-22_05_34/`

Expand Down
348 changes: 174 additions & 174 deletions example/bio.csv → examples/bio.csv

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/g-h-a0.6/log.txt → examples/g-h-a0.6/log.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Executing: ./minaa.exe example/g.csv example/h.csv -a=0.6 -g
Executing: ./minaa.exe examples/g.csv examples/h.csv -a=0.6 -g
Y_M_D-H_M_S: 2024_01_16-22_02_40

INPUTS
G File: g.csv
H File: h.csv
Alpha: 0.600
Beta: 1.000
Similarity threshold: 0.0000
Similarity threshold: 0.000

BEGINNING ALIGNMENT
Reading graph files............................done. (9ms)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example/g-h/log.txt → examples/g-h/log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Executing: ./minaa.exe example/g.csv example/h.csv -B=example/bio.csv -b=0.85 -st=0.5 -s
Executing: ./minaa.exe examples/g.csv examples/h.csv -B=examples/bio.csv -b=0.85 -st=0.5 -s
Y_M_D-H_M_S: 2024_01_16-22_00_30

INPUTS
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Executing: ./minaa.exe example/g.csv example/h.csv -Galias=nonsmoker -Halias=smoker -p -t
Executing: ./minaa.exe examples/g.csv examples/h.csv -Galias=nonsmoker -Halias=smoker -p -t
Y_M_D-H_M_S: 2024_01_16-23_10_14

INPUTS
Expand Down

0 comments on commit 342d487

Please sign in to comment.