We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a291326 commit dbc4b99Copy full SHA for dbc4b99
1 file changed
nanoplot/NanoPlot.py
@@ -32,10 +32,10 @@ def main():
32
from nanoplot.filteroptions import filter_and_transform_data
33
from nanoplotter.plot import Plot
34
utils.make_output_dir(args.outdir)
35
+ import pickle
36
utils.init_logs(args)
37
# args.format = nanoplotter.check_valid_format(args.format)
38
if args.pickle:
- import pickle
39
datadf = pickle.load(open(args.pickle, "rb"))
40
elif args.feather:
41
from nanoget import combine_dfs
@@ -157,7 +157,7 @@ def make_plots(datadf, settings):
157
plotdict_legacy = {}
158
plots = []
159
160
- subdf = utils.subsample_datasets(datadf)
+ subdf = utils.subsample_datasets(datadf) if "start_time" in datadf else None
161
if settings["N50"]:
162
n50 = nanomath.get_N50(np.sort(datadf["lengths"]))
163
else:
0 commit comments