Skip to content

Commit

Permalink
Minor output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Dec 20, 2023
1 parent 5f2cd70 commit adbf338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions vamb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ def calc_rpkm(
else:
assert isinstance(path, list)
logger.info(f"\tParsing {len(path)} BAM files with {nthreads} threads")
logger.info(f"\tMin identity: {abundance_options.min_alignment_id}")

abundance = vamb.parsebam.Abundance.from_files(
path,
Expand All @@ -621,10 +622,9 @@ def calc_rpkm(
)
abundance.save(outdir.joinpath("abundance.npz"))

logger.info(f"\tMin identity: {abundance.minid}")
logger.info("\tOrder of columns is:")
for samplename in abundance.samplenames:
logger.info(f"\t\t{samplename}")
for i, samplename in enumerate(abundance.samplenames):
logger.info(f"\t{i:>6}: {samplename}")

elapsed = round(time.time() - begintime, 2)
logger.info(f"\tProcessed RPKM in {elapsed} seconds.\n")
Expand Down
2 changes: 1 addition & 1 deletion vamb/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def trainepoch(
epoch_absseloss += ab_sse.data.item()

logger.info(
"\t\tEpoch: {:>3} Loss: {:.5e} CE: {:.5e} AB: {:.5e} SSE: {:.5e} KLD: {:.5e} Batchsize: {}".format(
"\t\tEpoch: {:>3} Loss: {:.5e} CE: {:.5e} AB: {:.5e} SSE: {:.5e} KLD: {:.5e} Batchsize: {:>4}".format(
epoch + 1,
epoch_loss / len(data_loader),
epoch_celoss / len(data_loader),
Expand Down

0 comments on commit adbf338

Please sign in to comment.