MSGFPlus / msgfplus

MS-GF+ (aka MSGF+ or MSGFPlus) performs peptide identification by scoring MS/MS spectra against peptides derived from a protein sequence database.
Other
76 stars 36 forks source link

Suffix instead of Prefix pattern for decoys #66

Closed tivdnbos closed 5 years ago

tivdnbos commented 5 years ago

Hi all,

I was wondering if there's a possibility to use suffix patterns instead of prefix patterns with MS-GF+? And, if not, if there's a way to implement this in the code?

Best wishes,

sangtaekim commented 5 years ago

It's conceptually not difficult but will require code changes. I believe we don't have a plan to change it unless there's a strong need. If you're interested in changing it yourself, https://github.com/MSGFPlus/msgfplus/blob/master/src/main/java/edu/ucsd/msjava/msdbsearch/SuffixArrayForMSGFDB.java will be a good start.

FarmGeek4Life commented 5 years ago

Another option to effectively change the prefix to a suffix is by using a regular expression search and replace tool on the mzid.

One example that will work on a linux command line: sed -i 's/\(accession="\)XXX_\([^"]\+\)/\1\2_REVERSED/g' test.mzid XXX_ and _REVERSED can be changed to whatever they need to be.

tivdnbos commented 5 years ago

Thanks! I was able to fix it.

Best wishes, Tim