Skip to content

Commit

Permalink
changed cost of 1b reads to 5200.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonleandergrimm committed Nov 17, 2023
1 parent bb3895e commit 4fc7590
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions preprint_stats/cost_required_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ def read_data() -> dict[tuple[str, str, str, str], SummaryStats]:


def get_cost(
reads_required=list, detection_threshold=int, TARGET_INCIDENCE=float
reads_required=list,
detection_threshold=int,
TARGET_INCIDENCE=float,
DOLLAR_PER_1B_READS=int,
weeks_per_year=int,
):
DOLLAR_PER_1B_READS = 8000
weeks_per_year = 52

costs = []

for reads in reads_required:
Expand All @@ -62,6 +63,9 @@ def get_cost(

def start():
data = read_data()
DOLLAR_PER_1B_READS = 8000
weeks_per_year = 52

TARGET_INCIDENCE = 0.01
TARGET_THRESHOLDS = [10, 100, 1000]

Expand All @@ -71,7 +75,11 @@ def start():
"rothman": "Rothman",
"spurbeck": "Spurbeck",
}
with open("cost_estimates.tsv", mode="w", newline="") as file:
with open(
f"cost_estimates_${DOLLAR_PER_1B_READS}_per_b.tsv",
mode="w",
newline="",
) as file:
tsv_writer = csv.writer(file, delimiter="\t")
tsv_writer.writerow(
[
Expand Down Expand Up @@ -110,6 +118,8 @@ def start():
[study_median, study_lower, study_upper],
detection_threshold,
TARGET_INCIDENCE,
DOLLAR_PER_1B_READS,
weeks_per_year,
)

tsv_writer.writerow(
Expand All @@ -135,6 +145,8 @@ def start():
[geomean_median, geomean_lower, geomean_upper],
detection_threshold,
TARGET_INCIDENCE,
DOLLAR_PER_1B_READS,
weeks_per_year,
)

tsv_writer.writerow(
Expand Down

0 comments on commit 4fc7590

Please sign in to comment.