Skip to content

Commit 6a9e50b

Browse files
committed
fix for #376
and also fixing a deprecation warning in timeplots
1 parent 5a14ba2 commit 6a9e50b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

nanomath/nanomath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, df):
5858
25,
5959
30,
6060
] # needs 5 elements in current implementation
61-
self.mean_qual = ave_qual(df["quals"].astype("int").to_list())
61+
self.mean_qual = ave_qual(df["quals"].to_list())
6262
self.median_qual = np.median(df["quals"])
6363
self._top5_lengths = get_top_5(
6464
df=df, col="lengths", values=["lengths", "quals"]

nanoplot/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.43.1"
1+
__version__ = "1.44.0"

nanoplotter/timeplots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def add_time_bins(dfs, bin_length=3):
205205
def plot_over_time(dfs, path, title, settings, color="#4CB391"):
206206
num_reads = Plot(path=path + "NumberOfReads_Over_Time.html",
207207
title="Number of reads over time")
208-
s = dfs.loc[:, "lengths"].resample('10T').count()
208+
s = dfs.loc[:, "lengths"].resample('10min').count()
209209

210210
fig = px.scatter(
211211
data_frame=None,
@@ -228,7 +228,7 @@ def plot_over_time(dfs, path, title, settings, color="#4CB391"):
228228
if "channelIDs" in dfs:
229229
pores_over_time = Plot(path=path + "ActivePores_Over_Time.html",
230230
title="Number of active pores over time")
231-
s = dfs.loc[:, "channelIDs"].resample('10T').nunique()
231+
s = dfs.loc[:, "channelIDs"].resample('10min').nunique()
232232

233233
fig = px.scatter(
234234
data_frame=None,
@@ -254,7 +254,7 @@ def cumulative_yield(dfs, path, title, color, settings):
254254
cum_yield_gb = Plot(path=path + "CumulativeYieldPlot_Gigabases.html",
255255
title="Cumulative yield")
256256

257-
s = dfs.loc[:, "lengths"].cumsum().resample('10T').max() / 1e9
257+
s = dfs.loc[:, "lengths"].cumsum().resample('10min').max() / 1e9
258258

259259
fig = px.scatter(
260260
x=s.index.total_seconds() / 3600,
@@ -274,7 +274,7 @@ def cumulative_yield(dfs, path, title, color, settings):
274274
cum_yield_reads = Plot(path=path + "CumulativeYieldPlot_NumberOfReads.html",
275275
title="Cumulative yield")
276276

277-
s = dfs.loc[:, "lengths"].resample('10T').count().cumsum()
277+
s = dfs.loc[:, "lengths"].resample('10min').count().cumsum()
278278

279279
fig = px.scatter(
280280
x=s.index.total_seconds() / 3600,

0 commit comments

Comments
 (0)