Skip to content

Commit 4ad1830

Browse files
committed
Merge branch 'dev' into dist/streamlit_deployment
2 parents dc1be58 + a159580 commit 4ad1830

8 files changed

Lines changed: 5 additions & 2 deletions

massdash/loaders/access/OSWDataAccess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def getTransitionGroupFeaturesDf(self, run_basename_wo_ext: str, fullpeptidename
670670
return features[self.columns]
671671

672672
def getTopTransitionGroupFeatureDf(self, run_basename_wo_ext: str, fullpeptidename: str, charge: int) -> pd.DataFrame:
673-
columns = ['filename', 'leftBoundary', 'rightBoundary', 'areaIntensity', 'qvalue', 'consensusApex', 'consensusApexIntensity', 'sequence', 'precursor_charge', 'software']
673+
columns = self.columns #['filename', 'leftBoundary', 'rightBoundary', 'areaIntensity', 'qvalue', 'consensusApex', 'consensusApexIntensity', 'sequence', 'precursor_charge', 'software']
674674
run_id = self._runIDFromRunName(run_basename_wo_ext)
675675
precursor_id = self.getPrecursorIDFromPeptideAndCharge(fullpeptidename, charge)
676676

@@ -681,7 +681,7 @@ def getTopTransitionGroupFeatureDf(self, run_basename_wo_ext: str, fullpeptidena
681681

682682
features['sequence'] = fullpeptidename
683683
features['precursor_charge'] = charge
684-
return features[['leftBoundary', 'rightBoundary', 'areaIntensity', 'qvalue', 'consensusApex', 'consensusApexIntensity', 'sequence', 'precursor_charge', 'software']]
684+
return features[self.columns]
685685

686686
def getTransitionGroupFeatures(self, run_basename_wo_ext: str, fullpeptidename: str, charge: int) -> List[TransitionGroupFeature]:
687687
run_id = self._runIDFromRunName(run_basename_wo_ext)

massdash/ui/FileInputRawDataUISettings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def create_ui(self, transition_list_file_path: str=None, raw_file_path: str=None
5252
st.sidebar.subheader("Input Raw file")
5353
self.raw_file_path_input = st.sidebar.text_input("Enter file path", raw_file_path, key='raw_data_file_path', help="Path to the raw file (*.mzML)")
5454

55+
st.sidebar.subheader("Input Feature file")
56+
self.feature_file_path = st.sidebar.text_input("Enter file path", feature_file_path, key='raw_data_feature_file_path', help="Path to the feature file (*.osw / *.tsv)")
57+
5558
def get_mzml_files(self, threads: int=1):
5659
"""
5760
Given a path to a directory or a file, returns a list of full file paths to *.mzML files in the directory or the file itself.

0 commit comments

Comments
 (0)