Dear David,
to generate my library I have done a couple of steps:
1) modified the file utils.py from seq2ms to contain my modifications:
# C H N O S P
# mods = {"ox" : [0,0,0,1,0,0], ## changed this line to enable sulfatase modification prediction se=serine; al=formylglycine-aldehyd; do=formylglycine-diol; ds=diol-sulfate; ss=serine-sulfate
mods = {"ox" : [0,0,0,1,0,0], "se" : [0,0,1,0,-1,0], "al" : [0,-2,1,0,-1,0], "do" : [0,0,2,0,-1,0], "ds" : [0,-1,5,0,0,0], "ss" : [0,0,4,0,0,0],
"ph" : [0,1,0,3,0,1],
"cam" : [2,3,1,1,0,0] , "ac": [2,2,0,1,0,0], "me": [1,2,0,0,0,0], "hy": [0,0,0,1,0,0], "gly": [4,6,2,2,0,0],
"bi" : [10,14,2,2,1,0], "cr": [4,4,0,1,0,0], "di": [2,4,0,0,0,0], "ma": [3,2,0,3,0,0], "ni": [0,-1,1,2,0,0],
"bu" : [4,6,0,1,0,0], "fo": [1,0,0,1,0,0], "glu": [5,6,0,3,0,0], "hyb": [4,6,0,2,0,0], "pr": [3,4,0,1,0,0],
"su" : [4,4,0,3,0,0], "tr": [3,6,0,0,0,0], "ci": [0,-1,-1,1,0,0]}
2) I run the prediction by executing 'predict.py' with the a modified input.tsv and (I think) the pretrained_model. The input file looked like the following but contained more peptides:
Sequence Charge Mass Modified sequence Modification Protein
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3332.613578 _DILTPELDNLAQNGSIFTSAYVAHPFCGPSR_ Unmodified
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3332.613576 _DILTPELDNLAQNGSIFTSAYVAHPFCGPSR_ Unmodified
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3332.613576 _DILTPELDNLAQNGSIFTSAYVAHPFCGPSR_ Unmodified
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3316.636422 _DILTPELDNLAQNGSIFTSAYVAHPFC(se)GPSR_ Serine (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3316.636422 _DILTPELDNLAQNGSIFTSAYVAHPFC(se)GPSR_ Serine (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3316.63642 _DILTPELDNLAQNGSIFTSAYVAHPFC(se)GPSR_ Serine (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3314.620772 _DILTPELDNLAQNGSIFTSAYVAHPFC(al)GPSR_ FGAldehyd (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3314.62077 _DILTPELDNLAQNGSIFTSAYVAHPFC(al)GPSR_ FGAldehyd (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3314.620772 _DILTPELDNLAQNGSIFTSAYVAHPFC(al)GPSR_ FGAldehyd (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3332.631336 _DILTPELDNLAQNGSIFTSAYVAHPFC(do)GPSR_ FGDiol (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3332.631336 _DILTPELDNLAQNGSIFTSAYVAHPFC(do)GPSR_ FGDiol (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3332.631336 _DILTPELDNLAQNGSIFTSAYVAHPFC(do)GPSR_ FGDiol (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3411.580326 _DILTPELDNLAQNGSIFTSAYVAHPFC(ds)GPSR_ DiolSulfat (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3411.580326 _DILTPELDNLAQNGSIFTSAYVAHPFC(ds)GPSR_ DiolSulfat (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3411.580324 _DILTPELDNLAQNGSIFTSAYVAHPFC(ds)GPSR_ DiolSulfat (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 2 3396.593236 _DILTPELDNLAQNGSIFTSAYVAHPFC(ss)GPSR_ SerinSulfat (C)
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 3 3396.593235 _DILTPELDNLAQNGSIFTSAYVAHPFC(ss)GPSR_ Unmodified
DILTPELDNLAQNGSIFTSAYVAHPFCGPSR 4 3396.593236 _DILTPELDNLAQNGSIFTSAYVAHPFC(ss)GPSR_ Unmodified
3) I imported the generated .msp file into spectraST format using the command line and the following options:
C:\TPP\bin\spectrast.exe -cNPredicted_Sec2MS.splib -MSec2MS.usermods Predicted.msp
4) I tried to visualise this library by Lib2HTML from the within Petunia
For the files I will send you a link via the ISB contact form to our university's nextcloud where I have uploaded them.
Best regards,
Juergen