Skip to content

Commit

Permalink
Fix random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-dolzhenko committed Dec 9, 2019
1 parent e7fa0e0 commit 2d65678
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/outlier/example_dataset.outlier_locus.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#contig start end unit top_case_zscore high_case_counts all_counts
StrA 1702 2159 AGC 1.57 sample1:42.41 42.41,2.11,15.77,8.41,13.67,14.66,1.06,3.15,20.86,1.06,2.11,4.21,3.17,12.62,7.33,15.71,2.11,11.52
StrA 1702 2159 AGC 1.42 sample1:42.41 42.41,2.11,15.77,8.41,13.67,14.66,1.06,3.15,20.86,1.06,2.11,4.21,3.17,12.62,7.33,15.71,2.11,11.52
2 changes: 1 addition & 1 deletion examples/outlier/example_dataset.outlier_motif.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
motif top_case_zscore high_case_counts all_counts
AGC 1.53 sample1:5.05 5.05
AGC 1.46 sample1:5.05 5.05
2 changes: 2 additions & 0 deletions scripts/casecontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#

import argparse
import numpy as np

import core.common as common
import casecontrol.locusworkflow
Expand Down Expand Up @@ -150,6 +151,7 @@ def run_motif_workflow(args):


def main():
np.random.seed(42)
common.init_logger()
parser = initialize_parser()
subparsers = initialize_subparsers(parser)
Expand Down
2 changes: 2 additions & 0 deletions scripts/outlier.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#

import argparse
import numpy as np

import core.common as common
import outlier.locusworkflow
Expand Down Expand Up @@ -101,6 +102,7 @@ def run_motif_workflow(args):


def main():
np.random.seed(42)
common.init_logger()
parser = initialize_parser()
subparsers = initialize_subparsers(parser)
Expand Down

0 comments on commit 2d65678

Please sign in to comment.