Skip to content

Commit

Permalink
Merge pull request #12 from axelwalter/patch-1
Browse files Browse the repository at this point in the history
Update MS2Query FeatureMatrix annotation
  • Loading branch information
eeko-kon authored Jan 5, 2025
2 parents fd0928d + b99b5fe commit be72ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/ms2query_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def ms2query_annotations(requant, annotated, ms2query_csv):
df_ms2query["feature_id"] = df_ms2query["feature_id"].apply(lambda x: int(x[2:]))
df_ms2query = df_ms2query.set_index("feature_id")

ms2query_columns = ["inchikey", "analog_compound_name", "smiles", "cf_kingdom", "cf_superclass", "cf_class", "cf_subclass", "cf_direct_parent", "npc_class_results", "npc_superclass_results", "npc_pathway_results"]
ms2query_columns = ["ms2query_model_prediction", "precursor_mz_difference", "inchikey", "analog_compound_name", "smiles", "cf_kingdom", "cf_superclass", "cf_class", "cf_subclass", "cf_direct_parent", "npc_class_results", "npc_superclass_results", "npc_pathway_results"]

for i in df.index:
if i in df_ms2query.index:
Expand Down

0 comments on commit be72ebc

Please sign in to comment.