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

ValueError: min() arg is an empty sequence #92

Open
altuffin opened this issue Jan 23, 2025 · 1 comment
Open

ValueError: min() arg is an empty sequence #92

altuffin opened this issue Jan 23, 2025 · 1 comment

Comments

@altuffin
Copy link

After plotrs command:

plotsr \
  --sr ../syri_out.Hall2021.T05_6D/Hall2021.T05_6D.syri.out \
  --genomes genomes.txt \
  -o Hall2021.T05_6D.CH1_60896-74189.png \
  --reg T05_6D:CH1S_RagTag:60896-74189

Gave me the error ValueError: min() arg is an empty sequence, after this:

Traceback (most recent call last):
  File "/mnt/apps/users/atuffin/conda/envs/syri_env/bin/plotsr", line 6, in <module>
    main(sys.argv[1:])
  File "/mnt/apps/users/atuffin/conda/envs/syri_env/lib/python3.8/site-packages/plotsr/scripts/plotsr.py", line 334, in main
    plotsr(args)
  File "/mnt/apps/users/atuffin/conda/envs/syri_env/lib/python3.8/site-packages/plotsr/scripts/plotsr.py", line 181, in plotsr
    alignments, chrs, chrgrps = selectregion(REG, RTR, chrlengths, alignments, chrids)
  File "/mnt/apps/users/atuffin/conda/envs/syri_env/lib/python3.8/site-packages/plotsr/scripts/func.py", line 1163, in selectregion
    if min(syncrd['astart']) < s:
ValueError: min() arg is an empty sequence

When using options --itx or --chr CH1S_RagTag instead of --reg, plotsr works fine.

The first 10 lines of syri.out are as follows:

CH1S_RagTag     1       60895   -       -       -       -       -       NOTAL1  -       NOTAL   -
CH1S_RagTag     60896   68327   -       -       CH1S_RagTag     159094242       159104006       TRANS7628       -       TRANS   -
CH1S_RagTag     60896   62914   -       -       CH1S_RagTag     159094242       159096263       TRANSAL19951    TRANS7628       TRANSAL -
CH1S_RagTag     61077   61077   C       G       CH1S_RagTag     159094423       159094423       SNP40278        TRANS7628       SNP     -
CH1S_RagTag     61106   61106   G       A       CH1S_RagTag     159094452       159094452       SNP40279        TRANS7628       SNP     -
CH1S_RagTag     61152   61152   A       G       CH1S_RagTag     159094498       159094498       SNP40280        TRANS7628       SNP     -
CH1S_RagTag     61252   61252   A       G       CH1S_RagTag     159094598       159094598       SNP40281        TRANS7628       SNP     -
CH1S_RagTag     61256   61256   T       C       CH1S_RagTag     159094602       159094602       SNP40282        TRANS7628       SNP     -
CH1S_RagTag     61293   61293   T       C       CH1S_RagTag     159094639       159094639       SNP40283        TRANS7628       SNP     -
CH1S_RagTag     61309   61309   A       C       CH1S_RagTag     159094655       159094655       SNP40284        TRANS7628       SNP     -

Python 3.8.15

@mnshgl0110
Copy link
Member

I suspect that the current parameters are filtering out everything. Try increasing the selected region (--reg) and decreasing the minimum SR size (-s) parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants