wdecoster / NanoPlot

Plotting scripts for long read sequencing data
http://nanoplot.bioinf.be
MIT License
413 stars 47 forks source link

TypeError: string indices must be integers #249

Closed guandailu closed 3 years ago

guandailu commented 3 years ago

Traceback (most recent call last): File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/94cba236/bin/NanoPlot", line 6, in sys.exit(nanoplot.NanoPlot.main()) File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/94cba236/lib/python3.6/site-packages/nanoplot/NanoPlot.py", line 61, in main nanomath.write_stats(datadf, settings["path"] + "NanoStats.txt") File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/94cba236/lib/python3.6/site-packages/nanomath/nanomath.py", line 177, in write_stats stats = [Stats(df) for df in datadfs] File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/94cba236/lib/python3.6/site-packages/nanomath/nanomath.py", line 177, in stats = [Stats(df) for df in datadfs] File "/group/zhougrp/dguan/nanopore_annotation/Chicken/.snakemake/conda/94cba236/lib/python3.6/site-packages/nanomath/nanomath.py", line 31, in init self.number_of_bases = np.sum(df["lengths"]) TypeError: string indices must be integers

wdecoster commented 3 years ago

Would it be very inconvenient to be a bit polite, as well as share some more information for me to figure out what is going on here?