Skip to content

Commit

Permalink
REF: import util from framework
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Jan 13, 2025
1 parent 0b19b96 commit 7cd94ba
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions q2_composition/_ancombc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,11 @@

import qiime2
from qiime2.metadata import NumericMetadataColumn, CategoricalMetadataColumn
from qiime2.sdk.util import run_commands

from ._format import DataLoafPackageDirFmt


def run_commands(cmds, verbose=True):
if verbose:
print('Running external command line application(s). This may print'
' messages to stdout and/or stderr.')
print('The command(s) being run are below. These commands cannot be'
' manually re-run as they will depend on temporary files that no'
' longer exist.')
for cmd in cmds:
if verbose:
print('\nCommand:', end=' ')
print(' '.join(cmd), end='\n\n')
subprocess.run(cmd, check=True)


def ancombc(table: pd.DataFrame, metadata: qiime2.Metadata, formula: str,
p_adj_method: str = 'holm', prv_cut: float = 0.1, lib_cut: int = 0,
reference_levels: str = None,
Expand Down

0 comments on commit 7cd94ba

Please sign in to comment.