Skip to content

Commit

Permalink
Change description of subset depth function
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Dec 14, 2020
1 parent a07c0e8 commit 16d4b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trycycler/subsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def calculate_subsets(read_count, read_bases, genome_size, min_depth):
sys.exit('Error: input reads are too shallow to subset')

log('Calculating subset sizes:')
log(f' subset_depth = {min_depth} * log(4 * total_depth / {min_depth}) / (2 * log(2))')
log(f' subset_depth = {min_depth} * log_2(4 * total_depth / {min_depth}) / 2')
subset_depth = min_depth * math.log(4 * total_depth / min_depth) / (2 * math.log(2))
log(f' = {subset_depth:.1f}x')

Expand Down

0 comments on commit 16d4b9d

Please sign in to comment.