Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added mutation_origin/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mutation_origin/__pycache__/util.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions mutation_origin/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import click
import pandas
from tqdm import tqdm
from cogent3 import LoadTable
from cogent3 import make_table
from cogent3.util import parallel
from mutation_origin.cli import (sample_data as mutori_sample,
lr_train as mutori_lr_train,
Expand Down Expand Up @@ -556,7 +556,7 @@ def collate(base_path, output_path, exclude_paths, overwrite):

columns = sorted(keys)
rows = list(map(lambda r: [r.get(c, None) for c in columns], records))
table = LoadTable(header=columns, rows=rows)
table = make_table(header=columns, data=rows)
table = table.sorted(reverse="auc")
table = table.with_new_column("name",
lambda x: model_name_from_features(*x),
Expand Down
4 changes: 2 additions & 2 deletions mutation_origin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy
from tqdm import tqdm
from cogent3.util.misc import open_, get_format_suffixes
from cogent3 import LoadTable
from cogent3 import make_table


__author__ = 'Gavin Huttley'
Expand Down Expand Up @@ -241,7 +241,7 @@ def summary_stat_table(table, factors):
for col in fscore_cols:
header.extend([f'mean_{col}', f'std_{col}'])

table = LoadTable(header=header, rows=rows)
table = make_table(header=header, data=rows)
table = table.sorted(reverse='mean_auc')
return table

Expand Down