Roestlab / massdash

MassDash: A web-based dashboard for streamlined DIA-MS visualization, analysis, prototyping, and optimization
https://massdash.streamlit.app/
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

Bug/conformer preprocessor #109

Closed singjc closed 8 months ago

singjc commented 8 months ago

Description

When performing peak picking with Conformer, depending on the peptide selected, a value error is thrown due to issues with incorrect dimensions. This is due to the adjust_length method when length < len(self.data):. The current method slices the data 1 point to the left and one point to the right, which results in data with single dimension data point.

I fixed the method to perform proper data trimming on the left and right. I also added unittests for Data1D.

Fixes #108

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Added unittests for Data1D class.

Checklist:

Other