We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11bdb48 commit d2c5013Copy full SHA for d2c5013
src/parse_mzdata.rs
@@ -77,7 +77,7 @@ fn get_charge_from_spectrum(spectrum: &mzdata::spectrum::MultiLayerSpectrum) ->
77
.precursor
78
.as_ref()
79
.and_then(|p| p.ions.first())
80
- .and_then(|i| i.charge.map(|c| c.abs() as usize))
+ .and_then(|i| i.charge.map(|c| c.unsigned_abs() as usize))
81
.or_else(|| {
82
spectrum
83
.description
0 commit comments