Skip to content

Commit

Permalink
isorted a bunch of .py scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonleandergrimm committed Dec 4, 2023
1 parent dd855d7 commit c8be21b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
3 changes: 1 addition & 2 deletions figures/composite_fig_5.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python3

from pathlib import Path
import sys

from pathlib import Path

sys.path.append("..")

Expand Down
2 changes: 1 addition & 1 deletion figures/composite_fig_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from dataclasses import dataclass

import matplotlib.pyplot as plt # type: ignore
import numpy as np
from matplotlib.lines import Line2D # type: ignore
from scipy.stats import gmean
import numpy as np

PERCENTILES = [5, 25, 50, 75, 95]

Expand Down
3 changes: 2 additions & 1 deletion preprint_stats/cost_required_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

import csv
from dataclasses import dataclass
from scipy.stats import gmean

import numpy as np
from scipy.stats import gmean

PERCENTILES = [5, 25, 50, 75, 95]

Expand Down
13 changes: 6 additions & 7 deletions preprint_stats/family_percentage_stat.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import os
import gzip
import json
import os
import subprocess

import matplotlib.pyplot as plt # type: ignore
from matplotlib.gridspec import GridSpec
import matplotlib.ticker as ticker

import pandas as pd
from scipy.stats import gmean
import numpy as np
from PIL import Image
import pandas as pd
import seaborn as sns

from matplotlib.gridspec import GridSpec
from PIL import Image
from scipy.stats import gmean

dashboard = os.path.expanduser("~/code/mgs-pipeline/dashboard/")

Expand Down
4 changes: 2 additions & 2 deletions preprint_stats/preprint_stats.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import json
import os
import subprocess

import numpy as np
from scipy.stats import gmean


dashboard = os.path.expanduser("~/code/mgs-pipeline/dashboard/")

with open(os.path.join(dashboard, "human_virus_sample_counts.json")) as inf:
Expand Down
2 changes: 1 addition & 1 deletion preprint_stats/reads_required_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import csv
from dataclasses import dataclass
from scipy.stats import gmean

import numpy as np
from scipy.stats import gmean

PERCENTILES = [5, 25, 50, 75, 95]

Expand Down
5 changes: 3 additions & 2 deletions preprint_stats/rothman_inter_site_comparison.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import csv
from collections import defaultdict
from math import log

import pandas as pd
from scipy.stats import gmean
from math import log
from collections import defaultdict

PERCENTILES = ["5%", "25%", "50%", "75%", "95%"]

Expand Down
5 changes: 3 additions & 2 deletions preprint_stats/spurbeck_inter_site_comparison.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import csv
from collections import defaultdict
from math import log

import pandas as pd
from scipy.stats import gmean
from math import log
from collections import defaultdict

PERCENTILES = ["5%", "25%", "50%", "75%", "95%"]

Expand Down

0 comments on commit c8be21b

Please sign in to comment.