Skip to content

Commit

Permalink
fixing error in postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
JeeH-K committed May 15, 2024
1 parent fe6f85b commit f353227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/FileUpload.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def showUploadedFilesTable() -> bool:
def postprocessingAfterUpload_FD(uploaded_files: list) -> None:
initializeWorkspace(input_file_types, parsed_df_types)
handleInputFiles(uploaded_files)
parseUploadedFiles(reparse=True)
parseUploadedFiles()
showUploadedFilesTable()


Expand Down
6 changes: 4 additions & 2 deletions src/Workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from os.path import join, splitext, basename, exists, dirname
from os import makedirs
from shutil import copyfile, rmtree
from pathlib import Path

class Workflow(WorkflowManager):
# Setup pages for upload, parameter, execution and results.
Expand Down Expand Up @@ -357,14 +358,15 @@ def pp(self) -> None:
out_anno = join(base_path, 'anno-mzMLs', f'{current_base}_{current_time}_annotated.mzML')
out_deconv = join(base_path, 'deconv-mzMLs', f'{current_base}_{current_time}_deconv.mzML')

#uploaded_files.append(out_db)
uploaded_files.append(out_anno)
uploaded_files.append(out_deconv)

st.session_state['deconv-mzMLs'].append(Path(out_deconv).name)
st.session_state['anno-mzMLs'].append(Path(out_anno).name)

# make directory to store deconv and anno mzML files & initialize data storage
postprocessingAfterUpload_FD(uploaded_files)


def execution(self) -> None:
# Get mzML input files from self.params.
# Can be done without file manager, however, it ensures everything is correct.
Expand Down

0 comments on commit f353227

Please sign in to comment.