Skip to content

Commit

Permalink
add plot from 2020-05-11 to 2020-06-10
Browse files Browse the repository at this point in the history
  • Loading branch information
bcorrie committed Jun 10, 2020
1 parent 4bc1d60 commit 454b2f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ADC-API-Performance/adc_api_plot_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def getArguments():
for i in range(len(files)):
#print(files[i])
df = pd.read_csv(files[i],sep=',')
df["IPA#"] = files[i].split("-")[-2]
df["IPA#"] = files[i].split("/")[2].split(".ireceptor.org.csv")[0].split("_")[-1]
all_dfs.append(df)

all_the_data = pd.concat([all_dfs[i] for i in range(len(files))],sort=False)
Expand All @@ -109,11 +109,11 @@ def getArguments():
gene_calls = [item for item in allQueries if "g" in item]
allele_calls = [item for item in allQueries if "a" in item]

all_ipa1 = all_the_data[all_the_data["IPA#"]=="staging_ipa1"]
all_ipa2 = all_the_data[all_the_data["IPA#"]=="staging_ipa2"]
all_ipa3 = all_the_data[all_the_data["IPA#"]=="staging_ipa3"]
all_ipa4 = all_the_data[all_the_data["IPA#"]=="staging_ipa4"]
all_ipa5 = all_the_data[all_the_data["IPA#"]=="ipa5_airr"]
all_ipa1 = all_the_data[(all_the_data["IPA#"]=="ipa1-staging") | (all_the_data["IPA#"]=="ipa1")]
all_ipa2 = all_the_data[(all_the_data["IPA#"]=="ipa2-staging") | (all_the_data["IPA#"]=="ipa2")]
all_ipa3 = all_the_data[(all_the_data["IPA#"]=="ipa3-staging") | (all_the_data["IPA#"]=="ipa3")]
all_ipa4 = all_the_data[(all_the_data["IPA#"]=="ipa4-staging") | (all_the_data["IPA#"]=="ipa4")]
all_ipa5 = all_the_data[(all_the_data["IPA#"]=="airr-ipa5") | (all_the_data["IPA#"]=="ipa5")]
gold_ipa = all_the_data[all_the_data["IPA#"]=="ipa5_airr"]

t1 = all_ipa1[["filters.content.field","filters.content.value","TimeTaken(s)","Date/TimeConverted"]]
Expand Down Expand Up @@ -151,5 +151,5 @@ def getArguments():
y="TimeTaken(s)",
x="filters.content.field: filters.content.value",
marginal_x="rug", marginal_y="histogram",template="plotly_dark",facet_col="Service")
pio.write_html(hmap,"HMAP_ADC_API_performance " + str(s_date) + " " + str(e_date) + ".html",
pio.write_html(hmap,"HMAP_ADC_API_performance_" + str(s_date) + "_" + str(e_date) + ".html",
auto_open=True)

0 comments on commit 454b2f6

Please sign in to comment.