Created
December 9, 2015 05:22
-
-
Save iracooke/6901daf079b841f91c9c to your computer and use it in GitHub Desktop.
File Cleanup for PRIDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Converts an mzID file from Thermo nativeID format to scan number only nativeID format | |
file=$1 | |
sed -i.bak s/controllerType\=[0-9]\ controllerNumber\=[0-9]\ // $file | |
sed -i.bak s/Thermo\ nativeID\ format/scan\ number\ only\ nativeID\ format/ $file | |
sed -i.back s/MS\:1000768/MS\:1000776/ $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason our MS-GF outputs end up with Thermo native ID. The ontology specifies this as
It can easily be converted to scan number only native ID format which looks like
This script used
sed
to convert the IDs and then update theSpectrumIDFormat
tag to reflect the change