"Could not convert string '-nan'" error

22 views
Skip to first unread message

Erik Johnson

unread,
Oct 16, 2025, 2:02:40 PM (9 days ago) Oct 16
to crux-users
Hello,

I'm using `crux assign-confidence` and getting the following std out with the error at the bottom:

INFO: Assigning index 2 to results/250812_Updated_Files_with_NeoHIP/1A/hybrid_run/HuIslets_250620_1A_Baseline_20hrNoTreatment_AspN_Fxn5.comet.target.txt.
INFO: Found 38977 PSMs in results/250812_Updated_Files_with_NeoHIP/1A/hybrid_run/HuIslets_250620_1A_Baseline_20hrNoTreatment_AspN_Fxn5.comet.target.txt.
INFO: Score type=xcorr score, sorting in descending order
FATAL: An exception occurred: Could not convert string '-nan'

I don't see any weirdness with the xcorrs in the offending file. Any thoughts on what's happening? Thanks! I'm attaching the offending *.target.txt file and here's the full command I'm running:

crux assign-confidence --overwrite T --output-dir tmp results/250812_Updated_Files_with_NeoHIP/1A/hybrid_run/HuIslets_250620_1A_Baseline_20hrNoTreatment_AspN_Fxn5.comet.target.txt 

Best,
Erik
HuIslets_250620_1A_Baseline_20hrNoTreatment_AspN_Fxn5.comet.target.txt

William Stafford Noble

unread,
Oct 17, 2025, 12:21:57 PM (8 days ago) Oct 17
to crux-users

Hi Erik,

Can you send the decoy file (the one that ends in comet.decoy.txt)?  I suspect that the -nan is in there.

Bill

Erik Johnson

unread,
Oct 21, 2025, 6:08:36 PM (4 days ago) Oct 21
to crux-users
Hi Bill,

Oi, you're absolutely right. There was a -nan in there that I changed to 0. Thanks for catching that.

Best,
Erik

Attila Kertesz-Farkas

unread,
Oct 22, 2025, 1:52:07 AM (3 days ago) Oct 22
to Erik Johnson, crux-users
Hi Erik,

Im glad you found the issue. But nan is still not accepted in the search results. Could you please let us know how did you run comet so that it produced nan? 

Attila 

--
You received this message because you are subscribed to the Google Groups "crux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crux-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/crux-users/da64327e-23dd-4e5b-86a9-87291abc4a6en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages