diff --git a/bin/create_library/main.py b/bin/create_library/main.py index a6fb7ae..20967f1 100755 --- a/bin/create_library/main.py +++ b/bin/create_library/main.py @@ -26,7 +26,7 @@ def create_library(compound_df, feature_df, # Merge the compound and feature tables df = merge_compound_feature_tables(compound_df, feature_df) - if not df: + if df is None or df.empty: return None, None if filter_library: diff --git a/workflowinput.yaml b/workflowinput.yaml index 140c942..0db7ef4 100644 --- a/workflowinput.yaml +++ b/workflowinput.yaml @@ -1,7 +1,7 @@ workflowname: reverse_metabolomics_create_library_workflow workflowdescription: This is to create MS/MS libraries using reverse metabolomics. workflowlongdescription: This is the workflow to create a tsv library from a set of mzML files and compound csv files. The tsv file is ready to be uploaded to GNPS library. -workflowversion: "2024.09.04" +workflowversion: "2024.09.05" workflowfile: nf_workflow.nf workflowautohide: false adminonly: false