You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
panic: runtime error: slice bounds out of range [-7:] #533
I have recently run a rather large meta-proteomics search. Unfortunately, FragPipe fails during the report generation step, stating the above error. Moreover, there is a reference to a folder located on drive E, which does not exist on the computer in concern.
The prot.xml file seems quite large (68 Gb) but there are 320 raw files and a database of approx. 13 Gb. so I guess this makes sense.
I still do not really have an idea what was the reason, but it worked perfectly fine when I repeated the filter command and all subsequent commands from the command line. Executing it from the FragPipe interface repeatedly failed with the same error as before.
This error is typically caused by an irregular fasta file format. Could you please share the fasta file and one pep.xml file with me so I can help locate the issue?
In my case, we created a metaproteomics database that should be compatible with metaX later. So the format for our files is e.g. '>genome123-456_protein876-432-456' I could also share our database and a result file but the file is large and I would need you to open a box folder for me.
Dear Juergen,
I also encountered the same problem. Thank you for submitting the issue, which helped me solve it. In my case, the reason was that the sequence names were duplicated. I think you can check that. I hope this helps you.
Best,
Jin
Thank you very much for your comment. It took me a while until the server was free but meanwhile I checked the database and, unfortunately, every header is unique. There might be some non-unique sequences in the database but these proteins should be treated as protein groups in the downstream-processing, so I can not remove them or would need to edit the result files and merge the duplicated proteins back after the analysis.
@AimeeD90 : Do you have any idea whether such sequences could cause the error? Is it worth to repeat the search with a non-redundant database and create a parser for mapping back afterwards?
I had the similar issue with my customized protein datatabase. The database works well with FragPipe 22.0 and MS-Fragger 4.1, but not work with FragPipe 23.1 and MS-Fragger 4.3. Any updates on this issue?
time="15:43:02" level=info msg="Assigning protein identifications to layers"
panic: runtime error: slice bounds out of range [:8] with length 0
Thank you for the fixed version. I have downloaded it and started the analysis again. It will likely need a few days to see (or hopefully not) the issue.
I will keep you updated.
@JB91451 You were still using the bug version 'C:\FragPipe\FragPipe-23.1\tools\Philosopher\philosopher-v5.1.2.exe'. To test the fixed version, you can uncheck all previous steps (including ProteinProphet) and just start the run from Philosopher to save time.
No, I just replaced the original version with the fixed version in that folder and renamed the file so that I could use the gui without taking care of the correct file location. The log files states:
The first part is the renamed file downloaded from your dropbox: philosopher-v5.1.2.exe
The filter command than shows that this is actually the fixed version: Executing Filter v5.1.3
While the error message - pasted below - does not look correct, a negative value should no longer occur because I added a check for this, and the slicing crash points to line 595 - which is the old line index from before the fix. Not sure what's happening, but I just recompiled the tool and put it the same place. Let's have another try.
panic: runtime error: slice bounds out of range [-7:]
The newly compiled version run over the weekend and worked perfectly fine. I think, it might have been the restart of FragPipe. I did not do that before.
Activity
Bondada20 commentedon Jun 5, 2025
Hi!
I got the same "panic: runtime error: slice bounds out of range [-6:]" as above:
time="16:21:15" level=info msg="Converged to 0.05 % FDR with 10849 PSMs" decoy=5 threshold=0.682943 total=10854
time="16:21:15" level=info msg="Converged to 0.09 % FDR with 5589 Peptides" decoy=5 threshold=0.683257 total=5594
time="16:21:15" level=info msg="Converged to 0.07 % FDR with 6929 Ions" decoy=5 threshold=0.683257 total=6934
time="16:21:15" level=info msg="Post processing identifications"
time="16:21:15" level=info msg="Assigning protein identifications to layers"
panic: runtime error: slice bounds out of range [-6:]
goroutine 1 [running]:
github.com/Nesvilab/philosopher/lib/rep.(*Evidence).UpdateLayerswithDatabase(0xc000264008, {0xc000024190, 0x48}, {0xc00000a168, 0x4})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/rep/updater.go:579 +0x254a
github.com/Nesvilab/philosopher/lib/fil.Run({{0xc00001a870, 0x24}, {0xc0000244b0, 0x48}, {0xc000024500, 0x43}, {0xc0000ae2a0, 0x57}, {0xc000024550, 0x4e}, ...})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/fil/fil.go:178 +0x1085
github.com/Nesvilab/philosopher/cmd.init.func6(0xc000038600?, {0x8107cf?, 0x4?, 0x8107d3?})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/filter.go:47 +0x4b7
github.com/spf13/cobra.(*Command).execute(0x2468b00, {0xc0002580f0, 0xf, 0xf})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:920 +0x867
github.com/spf13/cobra.(*Command).ExecuteC(0x246aaa0)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:968
github.com/Nesvilab/philosopher/cmd.Execute()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/root.go:35 +0x1a
main.main()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/main.go:23 +0x85
Process 'PhilosopherFilter' finished, exit code: 2
Process returned non-zero exit code, stopping
JB91451 commentedon Jun 18, 2025
Dear all,
I still do not really have an idea what was the reason, but it worked perfectly fine when I repeated the filter command and all subsequent commands from the command line. Executing it from the FragPipe interface repeatedly failed with the same error as before.
Best regards,
Juergen
fengx90 commentedon Jul 3, 2025
Hi all,
I got a similar error repeatedly. Any solution? Thanks!
panic: runtime error: slice bounds out of range [-1:]
goroutine 1 [running]:
github.com/Nesvilab/philosopher/lib/rep.(*Evidence).UpdateLayerswithDatabase(0xc000260008, {0xc00014a9c0, 0x32}, {0xc00012a0f8, 0x4})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/rep/updater.go:540 +0x28b6
github.com/Nesvilab/philosopher/lib/fil.Run({{0xc0001465a0, 0x24}, {0xc00014a8c0, 0x32}, {0xc00014e320, 0x45}, {0xc00014e370, 0x41}, {0xc00014a900, 0x38}, ...})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/fil/fil.go:178 +0x1085
github.com/Nesvilab/philosopher/cmd.init.func6(0xc000152500?, {0x13e17ef?, 0x4?, 0x13e17f3?})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/filter.go:47 +0x4b7
github.com/spf13/cobra.(*Command).execute(0x303ab00, {0xc0001604d0, 0xb, 0xb})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:920 +0x867
github.com/spf13/cobra.(*Command).ExecuteC(0x303caa0)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:968
github.com/Nesvilab/philosopher/cmd.Execute()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/root.go:35 +0x1a
main.main()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/main.go:23 +0x85
Process 'PhilosopherFilter' finished, exit code: 2
Process returned non-zero exit code, stopping
AimeeD90 commentedon Jul 3, 2025
This error is typically caused by an irregular fasta file format. Could you please share the fasta file and one pep.xml file with me so I can help locate the issue?
JB91451 commentedon Jul 3, 2025
In my case, we created a metaproteomics database that should be compatible with metaX later. So the format for our files is e.g. '>genome123-456_protein876-432-456' I could also share our database and a result file but the file is large and I would need you to open a box folder for me.
AimeeD90 commentedon Jul 3, 2025
Please upload to https://www.dropbox.com/scl/fo/mu7pew3yk1xkk6c8167ho/ALtBMmoyP1jJp_JSpjmCH3o?rlkey=20ytp2jaedghq3am7u9ggun8v&st=07xfjovc&dl=0, thanks!
JB91451 commentedon Jul 3, 2025
Thank you for sharing the folder. The files are currently uploading. I also added the prot.xml and the workflow file.
Best,
Juergen
kintilin commentedon Jul 5, 2025
Dear Juergen,
I also encountered the same problem. Thank you for submitting the issue, which helped me solve it. In my case, the reason was that the sequence names were duplicated. I think you can check that. I hope this helps you.
Best,
Jin
JB91451 commentedon Jul 24, 2025
Dear Jin,
Thank you very much for your comment. It took me a while until the server was free but meanwhile I checked the database and, unfortunately, every header is unique. There might be some non-unique sequences in the database but these proteins should be treated as protein groups in the downstream-processing, so I can not remove them or would need to edit the result files and merge the duplicated proteins back after the analysis.
@AimeeD90 : Do you have any idea whether such sequences could cause the error? Is it worth to repeat the search with a non-redundant database and create a parser for mapping back afterwards?
Best,
Juergen
wenronchen commentedon Jul 28, 2025
Hi all,
I had the similar issue with my customized protein datatabase. The database works well with FragPipe 22.0 and MS-Fragger 4.1, but not work with FragPipe 23.1 and MS-Fragger 4.3. Any updates on this issue?
time="15:43:02" level=info msg="Assigning protein identifications to layers"
panic: runtime error: slice bounds out of range [:8] with length 0
goroutine 1 [running]:
github.com/Nesvilab/philosopher/lib/rep.(*Evidence).UpdateLayerswithDatabase(0xc0001de008, {0xc0001a0150, 0x26}, {0xc00000a1a0, 0x4})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/rep/updater.go:540 +0x28be
github.com/Nesvilab/philosopher/lib/fil.Run({{0xc00001c8a0, 0x24}, {0xc00001c8d0, 0x26}, {0xc0000283c0, 0x47}, {0xc000020a00, 0x35}, {0xc00001c900, 0x2c}, ...})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/fil/fil.go:178 +0x1085
github.com/Nesvilab/philosopher/cmd.init.func6(0xc0000c6500?, {0x12217ef?, 0x4?, 0x12217f3?})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/filter.go:47 +0x4b7
github.com/spf13/cobra.(*Command).execute(0x2e7ab00, {0xc0001ba120, 0x11, 0x12})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:920 +0x867
github.com/spf13/cobra.(*Command).ExecuteC(0x2e7caa0)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/vendor/github.com/spf13/cobra/command.go:968
github.com/Nesvilab/philosopher/cmd.Execute()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/cmd/root.go:35 +0x1a
main.main()
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/main.go:23 +0x85
Process 'PhilosopherFilter' finished, exit code: 2
Process returned non-zero exit code, stopping
Above is the error section from the log file.
Best,
Wenrong
AimeeD90 commentedon Jul 29, 2025
@JB91451 Sorry but I wasn't able to test it on my computer because the file size is too large, but I add an additional check to avoid this crash, please download the fixed version: https://www.dropbox.com/scl/fo/wi9u900jdw08vhkh5zqe0/APvIfPw1koglO-jRICad2U4?rlkey=xk2nmpf09u6ox0vsc7pe9pdie&st=7l8v58d7&dl=0. Also, redundant sequences are totally fine.
JB91451 commentedon Jul 29, 2025
Dear Yamei,
Thank you for the fixed version. I have downloaded it and started the analysis again. It will likely need a few days to see (or hopefully not) the issue.
I will keep you updated.
Best,
Juergen
Bondada20 commentedon Jul 30, 2025
I've tried the fixed command-line version by @AimeeD90 and it worked!
Thanks!
JB91451 commentedon Jul 31, 2025
Dear Yamei,
in my case it, unfortunately, did not work:
log_2025-07-31_03-51-01.txt
AimeeD90 commentedon Jul 31, 2025
@JB91451 You were still using the bug version 'C:\FragPipe\FragPipe-23.1\tools\Philosopher\philosopher-v5.1.2.exe'. To test the fixed version, you can uncheck all previous steps (including ProteinProphet) and just start the run from Philosopher to save time.
JB91451 commentedon Jul 31, 2025
No, I just replaced the original version with the fixed version in that folder and renamed the file so that I could use the gui without taking care of the correct file location. The log files states:
C:\FragPipe\FragPipe-23.1\tools\Philosopher\philosopher-v5.1.2.exe filter --sequential --prot 0.01 --picked --psm 0.01 --pep 0.01 --tag rev_ --pepxml D:\ATS\HoloR_LUKE_2024_016\all_samples_result_new\Holoruminant_2024_020_423_102_P1 --dbbin D:\ATS\HoloR_LUKE_2024_016\all_samples_result_new\Holoruminant_2024_013_11273 --protxml D:\ATS\HoloR_LUKE_2024_016\all_samples_result_new\combined.prot.xml --probin D:\ATS\HoloR_LUKE_2024_016\all_samples_result_new\Holoruminant_2024_013_11273 --razor
time="02:17:05" level=info msg="Executing Filter v5.1.3"
The first part is the renamed file downloaded from your dropbox: philosopher-v5.1.2.exe
The filter command than shows that this is actually the fixed version: Executing Filter v5.1.3
AimeeD90 commentedon Jul 31, 2025
While the error message - pasted below - does not look correct, a negative value should no longer occur because I added a check for this, and the slicing crash points to line 595 - which is the old line index from before the fix. Not sure what's happening, but I just recompiled the tool and put it the same place. Let's have another try.
panic: runtime error: slice bounds out of range [-7:]
goroutine 1 [running]:
github.com/Nesvilab/philosopher/lib/rep.(*Evidence).UpdateLayerswithDatabase(0xc000292008, {0xc000024140, 0x4d}, {0xc00000a198, 0x4})
E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/rep/updater.go:595 +0x27dd
AimeeD90 commentedon Jul 31, 2025
BTW, it's not necessary to rename it, just delete the old one and put the new one there, better to restart FragPipe and run it.
JB91451 commentedon Aug 4, 2025
Dear Yamei,
The newly compiled version run over the weekend and worked perfectly fine. I think, it might have been the restart of FragPipe. I did not do that before.
Thank you again!
Juergen
AimeeD90 commentedon Aug 5, 2025
Thanks for the update, I will close this issue as it's now resolved.