topdownproteomics / sdk

Software solution for common top-down proteomics tasks
http://www.topdownproteomics.org/
MIT License
9 stars 4 forks source link

Trimming white space left of values in parsing? #35

Open acesnik opened 6 years ago

acesnik commented 6 years ago

See discussion here https://github.com/topdownproteomics/sdk/pull/33

rfellers commented 6 years ago

My vote is to "aggressively trim" the whitespace when parsing. This means to trim from both sides of the descriptor and from both sides of the colon (if present).

This has the downside of losing whitespace information when potentially writing the ProForma back out, but I think this is a small price to pay for simple rule of "we remove all extra whitespace"