SWAP.MakeTSPTable: Make a table of TSPs in order of TSP score.

Description Usage Arguments Value Author(s) References See Also Examples

Description

Given the output from SWAP.CalculateScores and a number maxk, makes a table of the top maxk pairs. The output of this function can be provided to a k-selection function such as SWAP.Kby.Ttest or SWAP.Kby.Measurement to test out different k-selection methods.

Usage

1
SWAP.MakeTSPTable(Scores, maxk, disjoint = TRUE)

Arguments

Scores

is the output of a scoring function such as SWAP.CalculateScores containing a vector of TSP scores.

maxk

is an integer: the number of pairs to select.

disjoint

a logical indicating whether only disjoint pairs should be selected or not.

Value

A data frame of maxk pairs, their score and tieVote.

Author(s)

Bahman Afsari bahman.afsari@gmail.com, Luigi Marchionni marchion@jhu.edu, Wikum Dinalankara wdinala1@jhmi.edu

References

See switchBox for the references.

See Also

SWAP.Kby.Ttest, SWAP.Kby.Measurement

Examples

1
2
3
4
5
6
7
8
### load gene expression data
data(trainingData)

### calculate scores
scores = SWAP.CalculateScores(matTraining, trainingGroup, featureNo=5)

### make top 5 pair table
SWAP.MakeTSPTable(scores, 5, FALSE)

marchion/switchBox documentation built on May 9, 2019, 4:07 p.m.