Skip to content

Commit

Permalink
Merge branch 'main' into simon-ra-variability-fig
Browse files Browse the repository at this point in the history
  • Loading branch information
simonleandergrimm committed Nov 28, 2023
2 parents f00ff05 + 66c052c commit 121f272
Show file tree
Hide file tree
Showing 5 changed files with 2,208 additions and 2,203 deletions.
8 changes: 5 additions & 3 deletions figures/counts-by-pathogen-and-study.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@


def start():
mgs_data = mgs.MGSData.from_repo()

branch = "simon-validation-exclusion-run"
# ref = "ref"
mgs_data = mgs.MGSData.from_repo(ref=branch)
pathogen_taxids_by_name = defaultdict(list)
for (
pathogen_name,
Expand Down Expand Up @@ -150,7 +151,8 @@ def start():
cellLoc="center",
loc="upper left",
)
fig.savefig("matching-reads-table.png", dpi=180)
fig.show()
fig.savefig(f"matching-reads-table_from{branch}.png", dpi=180)
plt.clf()


Expand Down
4 changes: 3 additions & 1 deletion fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def summarize_output(coeffs: pd.DataFrame) -> pd.DataFrame:


def start(num_samples: int, plot: bool) -> None:
branch = "simon-validation-exclusion-run"
print("Using mgs-pipeline branch simon-validation-exclusion-run")
figdir = Path("fig")
if plot:
figdir.mkdir(exist_ok=True)
mgs_data = MGSData.from_repo()
mgs_data = MGSData.from_repo(ref=branch)
input_data = []
output_data = []
for (
Expand Down
Loading

0 comments on commit 121f272

Please sign in to comment.