[FIX][FEATURE] add zeros to chroms/mobs #66
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context:
Low intensity chromatograms look strange because there are a bunch of zero points per transition that are filtered out.
Solution:
Change to_chromatogram and to_mobilogram methods to function across all transitions. Thus if one transition is present and the rest are 0, a 0 point will be added. This leads to plots that make more sense.
Before:
![image](https://private-user-images.githubusercontent.com/47336288/294306731-2796f315-315c-4950-9684-43d11cadf78b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNzAwMTMsIm5iZiI6MTcyMTI2OTcxMywicGF0aCI6Ii80NzMzNjI4OC8yOTQzMDY3MzEtMjc5NmYzMTUtMzE1Yy00OTUwLTk2ODQtNDNkMTFjYWRmNzhiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDAyMjgzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3MmRjZTU3OGNhYjIxNmU4OWY3Mzk3YTM1MGJiZjg4OWQxNGVmYTU3NTExZTI3NWM1NGU2MzZkMjI5MmMyNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HFTiBzQWyUicEUwv_ppreyhzPiiVzqA9BWozVOhuS-g)
![image](https://private-user-images.githubusercontent.com/47336288/294306144-8d97e876-43e1-4c4d-badc-977872526d80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNzAwMTMsIm5iZiI6MTcyMTI2OTcxMywicGF0aCI6Ii80NzMzNjI4OC8yOTQzMDYxNDQtOGQ5N2U4NzYtNDNlMS00YzRkLWJhZGMtOTc3ODcyNTI2ZDgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDAyMjgzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkYmJmMjYxMzE0ODY4MGQ3NGMzODRiNjlmNzFjMDM4YWRhMDMwYzIyY2VmY2Q1ZDE3NDVmZmZiOGRhNGQwOWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LGyZQuZFcjpvFI5OnloHJfR-KMKxnyPNmdDOlwyZt2c)
After: