Skip to content

Commit

Permalink
indent execution command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sann5 committed Apr 12, 2024
1 parent ae2c5d1 commit e470449
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions q2_moshpit/prodigal/prodigal.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _process_fasta_files(fasta_files: list, prefix: str, input_path: str):
genes.path, f"{prefix}{file_id}_genes.fasta"
)
])
run_command(cmd)
run_command(cmd)

if isinstance(mags, MAGSequencesDirFmt):
# Get paths to fasta files in input dir
Expand All @@ -67,12 +67,14 @@ def _process_fasta_files(fasta_files: list, prefix: str, input_path: str):
elif isinstance(mags, MultiMAGSequencesDirFmt):
# List all directories / samples
for sample_dir in os.listdir(mags.path):
if os.path.isdir(os.path.join(mags.path, sample_dir)):
fasta_files = os.listdir(os.path.join(mags.path, sample_dir))
sample_dir_path = os.path.join(mags.path, sample_dir)
if os.path.isdir(sample_dir_path):
fasta_files = os.listdir(sample_dir_path)
print(fasta_files)
_process_fasta_files(
fasta_files,
f"{sample_dir}_",
os.path.join(mags.path, sample_dir)
sample_dir_path
)

# Return output directories
Expand Down

0 comments on commit e470449

Please sign in to comment.