Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSEA Error #62

Open
HGmin1159 opened this issue Dec 19, 2024 · 1 comment
Open

GSEA Error #62

HGmin1159 opened this issue Dec 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@HGmin1159
Copy link

While running the GSEA, I keep encountering the following error. It works for some numbers of factors and libraries, but it fails about half the time:

Traceback (most recent call last):
File"/proj/hyejunglab/cropseq/Jiseok/analysis/SCZcropseq_paper_2/Supp_Analysis/Script/gene_program_evaluation/evaluation_pipeline.py", line 243, in <module>
    main(args.config)
File"/proj/hyejunglab/cropseq/Jiseok/analysis/SCZcropseq_paper_2/Supp_Analysis/Script/gene_program_evaluation/evaluation_pipeline.py", line 112, in main
    res = compute_geneset_enrichment(
File"/proj/hyejunglab/cropseq/Jiseok/analysis/SCZcropseq_paper_2/Supp_Analysis/Script/gene_program_evaluation/src/evaluation/enrichment_geneset.py", line 394, in compute_geneset_enrichment
    loadings = get_program_gene_loadings(
File"/proj/hyejunglab/cropseq/Jiseok/analysis/SCZcropseq_paper_2/Supp_Analysis/Script/gene_program_evaluation/src/evaluation/enrichment_geneset.py", line 66, in get_program_gene_loadings
    gene_names = get_idconversion(mdata[prog_key].uns['var_names'], organism=organism)
File"/proj/hyejunglab/cropseq/Jiseok/analysis/SCZcropseq_paper_2/Supp_Analysis/Script/gene_program_evaluation/src/evaluation/enrichment_geneset.py", line 35, in get_idconversion
    bm = Biomart()
  File "/nas/longleaf/home/mhg/.conda/envs/anaconda_env/lib/python3.8/site-packages/gseapy/biomart.py", line 76, in init
    self._marts = self.get_marts()["Mart"].to_list()
  File "/nas/longleaf/home/mhg/.conda/envs/anaconda_env/lib/python3.8/site-packages/gseapy/biomart.py", line 157, in get_marts
    marts = [e.attrib for e in ET.XML(resp.text)]
File"/nas/longleaf/home/mhg/.conda/envs/anaconda_env/lib/python3.8/xml/etree/ElementTree.py", line 1320, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 62, column 2
Thu Dec  5 16:34:09 EST 2024
@aron0093
Copy link
Collaborator

Would you be able to send me a minimal example to reproduce the error? A mdata object subset from your full data that reproduces the error would help me in diagnosing the problem.

@aron0093 aron0093 self-assigned this Dec 20, 2024
@aron0093 aron0093 added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants