---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[3], line 1
----> 1 sumstats.to_format("~/GWAS/results/gwaslab.sumstats",fmt="locuszoom",build="38")
File ~/.pyenv/versions/gwaslab/lib/python3.12/site-packages/gwaslab/g_Sumstats.py:983, in Sumstats.to_format(self, path, build, verbose, **kwargs)
981 if build is None:
982 build = self.meta["gwaslab"]["genome_build"]
--> 983 _to_format(self.data, path, log=self.log, verbose=verbose, meta=self.meta, build=build, **kwargs)
File ~/.pyenv/versions/gwaslab/lib/python3.12/site-packages/gwaslab/io_to_formats.py:82, in _to_format(sumstats, path, fmt, tab_fmt, extract, exclude, cols, id_use, hapmap3, exclude_hla, hla_range, build, n, no_status, output_log, float_formats, xymt_number, xymt, chr_prefix, meta, ssfmeta, md5sum, gzip, bgzip, tabix, tabix_indexargs, to_csvargs, to_tabular_kwargs, log, verbose)
80 onetime_log.write("Start to convert the output sumstats in: ",fmt, " format",verbose=verbose)
81 else:
---> 82 raise ValueError("Please select a format to output")
83 suffix=fmt
85 #######################################################################################################
86 # filter
ValueError: Please select a format to output
Thanks for the great tools!
And I am quiet newbie in coding, here is the error when I tried to use the
fmtfunction:GWASlab version: GWASLab v3.6.5
Python version: 3.12.11
Actually,
metalpopcornandcojowould generate the sameValueErroras well.May I get any idea about how to deal with it?
Thanks again for the great tools!