Skip to content

Commit

Permalink
[tests] Update after cli dependency change
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Nov 24, 2019
1 parent cda40e0 commit fbd4e13
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: [1.11, 1.12]

steps:
Expand Down
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

24 changes: 12 additions & 12 deletions cmd/allhic.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,68 +60,68 @@ func main() {
app.Version = allhic.Version

extractFlags := []cli.Flag{
cli.StringFlag{
&cli.StringFlag{
Name: "RE",
Usage: "Restriction site pattern",
Value: "GATC",
},
cli.IntFlag{
&cli.IntFlag{
Name: "minLinks",
Usage: "Minimum number of links for any contig pair",
Value: 3,
},
}

partitionFlags := []cli.Flag{
cli.IntFlag{
&cli.IntFlag{
Name: "minREs",
Usage: "Minimum number of RE sites in a contig to be clustered (CLUSTER_MIN_RE_SITES in LACHESIS)",
Value: allhic.MinREs,
},
cli.IntFlag{
&cli.IntFlag{
Name: "maxLinkDensity",
Usage: "Density threshold before marking contig as repetive (CLUSTER_MAX_LINK_DENSITY in LACHESIS)",
Value: allhic.MaxLinkDensity,
},
cli.IntFlag{
&cli.IntFlag{
Name: "nonInformativeRatio",
Usage: "cutoff for recovering skipped contigs back into the clusters (CLUSTER_NONINFORMATIVE_RATIO in LACHESIS)",
Value: allhic.NonInformativeRatio,
},
}

optimizeFlags := []cli.Flag{
cli.BoolFlag{
&cli.BoolFlag{
Name: "skipGA",
Usage: "Skip GA step",
},
cli.BoolFlag{
&cli.BoolFlag{
Name: "resume",
Usage: "Resume from existing tour file",
},
cli.Int64Flag{
&cli.Int64Flag{
Name: "seed",
Usage: "Random seed",
Value: 42,
},
cli.IntFlag{
&cli.IntFlag{
Name: "npop",
Usage: "Population size",
Value: 100,
},
cli.IntFlag{
&cli.IntFlag{
Name: "ngen",
Usage: "Number of generations for convergence",
Value: 5000,
},
cli.Float64Flag{
&cli.Float64Flag{
Name: "mutpb",
Usage: "Mutation prob in GA",
Value: .2,
},
}

app.Commands = []cli.Command{
app.Commands = []*cli.Command{
{
Name: "extract",
Usage: "Extract Hi-C link size distribution",
Expand Down

0 comments on commit fbd4e13

Please sign in to comment.