Skip to content

Commit d76130f

Browse files
committed
Fixes #51
1 parent cb0c3e2 commit d76130f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

structure_threader/plotter/structplot.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ def plotk(self, kvals, output_dir):
780780
else:
781781
filename = "ComparativePlot_{}".format("-".join(
782782
[str(x) for x in kvals]))
783-
filepath = join(output_dir, filename)
783+
filepath = join(output_dir, filename) + ".html"
784784

785785
pdiv = plot(fig, include_plotlyjs=False, output_type='div')
786786
# Remove plotly div
@@ -891,17 +891,3 @@ def main(result_files, fmt, outdir, bestk=None, popfile=None, indfile=None,
891891
if bestk:
892892
bestk = [x for x in bestk if x >= 1]
893893
klist.plotk(bestk, outdir)
894-
895-
896-
if __name__ == "__main__":
897-
kdir = "/home/diogo/Diogo/Science/PhD/Tasks/Hemileia_RADs/" \
898-
"2_RADs_full/Assembly/ipyrad/Ingroup/Var1/Analyses/" \
899-
"Structure/RandSNP/R2/"
900-
files = ["HvFullSample_ingroup_v1_MM50_mafRandSNP.5.meanQ",
901-
"HvFullSample_ingroup_v1_MM50_mafRandSNP.4.meanQ",
902-
"HvFullSample_ingroup_v1_MM50_mafRandSNP.3.meanQ",
903-
"HvFullSample_ingroup_v1_MM50_mafRandSNP.2.meanQ"]
904-
indfile = join(kdir, "indfile2.txt")
905-
kfiles = [join(kdir, f) for f in files]
906-
907-
main(kfiles, "faststructure", "./", indfile=indfile)

0 commit comments

Comments
 (0)