Skip to content

Commit

Permalink
test for json output, fix futurewarnings, and use nanomath from withi…
Browse files Browse the repository at this point in the history
…n nanoplot
  • Loading branch information
wdecoster committed Nov 5, 2024
1 parent e7250da commit e0065eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions nanocomp/compplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def compare_sequencing_speed(df, path, settings, title=None):
dfs.loc[dfs["dataset"] == sample, "lengths"]
/ dfs.loc[dfs["dataset"] == sample, "duration"]
)
.resample("30T")
.resample("30min")
.median()
)
data.append(
Expand Down Expand Up @@ -264,7 +264,7 @@ def compare_cumulative_yields(df, path, settings, title=None):
data = []
annotations = []
for sample, color in zip(df["dataset"].unique(), palette):
cumsum = dfs.loc[dfs["dataset"] == sample, "lengths"].cumsum().resample("10T").max() / 1e9
cumsum = dfs.loc[dfs["dataset"] == sample, "lengths"].cumsum().resample("10min").max() / 1e9
data.append(
go.Scatter(
x=cumsum.index.total_seconds() / 3600,
Expand All @@ -278,10 +278,10 @@ def compare_cumulative_yields(df, path, settings, title=None):
dict(
xref="paper",
x=0.99,
y=cumsum[-1],
y=cumsum.iloc[-1],
xanchor="left",
yanchor="middle",
text=f"{round(cumsum[-1], ndigits=2)}Gb",
text=f"{round(cumsum.iloc[-1], ndigits=2)}Gb",
showarrow=False,
)
)
Expand Down Expand Up @@ -509,7 +509,7 @@ def active_pores_over_time(df, path, settings, title=None):
)
data = []
for sample, color in zip(df["dataset"].unique(), palette):
pores = dfs.loc[dfs["dataset"] == sample, "channelIDs"].resample("10T").nunique()
pores = dfs.loc[dfs["dataset"] == sample, "channelIDs"].resample("10min").nunique()
data.append(
go.Scatter(
x=pores.index.total_seconds() / 3600,
Expand Down
2 changes: 1 addition & 1 deletion nanocomp/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.24.0"
__version__ = "1.24.1"
3 changes: 2 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ NanoComp --fastq nanotest/reads.fastq.gz nanotest/reads.fastq.gz --colors red bl
NanoComp --feather nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather -n A B C --outdir tests
NanoComp --arrow nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather -n A B C --outdir tests
#NanoComp --feather nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather -n A B C --outdir tests -f pdf png jpeg
NanoComp --feather nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather -n A B C --color red blue green --outdir tests
NanoComp --feather nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather -n A B C --color red blue green --outdir tests
NanoComp --feather nanotest/summary1.feather nanotest/summary2.feather nanotest/summary3.feather --format json -n A B C --outdir tests
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"pandas",
"numpy>=1.16.5",
"nanoget>=1.19.0",
"nanomath>=1.0.0",
"NanoPlot>=1.39.0",
"NanoPlot>=1.43.0",
"psutil",
"plotly>=3.4.2",
"pyarrow",
Expand Down

0 comments on commit e0065eb

Please sign in to comment.