Skip to content

"locuszoom" error #3

@jjrun-11

Description

@jjrun-11

Thanks for the great tools!
And I am quiet newbie in coding, here is the error when I tried to use the fmt function:
GWASlab version: GWASLab v3.6.5
Python version: 3.12.11

---------------------------------------------------------------------------
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

Actually, metal popcorn and cojo would generate the same ValueError as well.
May I get any idea about how to deal with it?
Thanks again for the great tools!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions