Skip to content

How to train a new model? #562

@biocc

Description

@biocc

I retrained a Casanovo model (v5.1.0) using the following command:

CUDA_VISIBLE_DEVICES=1 nohup casanovo train \
  --validation_peak_path /mnt/data_nvme1/data/MassiveIVE/3mod/Human_HCD_Spectral_Library_only3mod_casanovo5_valid5.mgf \
  /mnt/data_nvme1/data/MassiveIVE/3mod/Human_HCD_Spectral_Library_only3mod_casanovo5_train95.mgf \
  --config /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/casanovo.yaml \
  --output_dir /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/train \
  > /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/run.log 2>&1 &

After training finished, I ran de novo sequencing with the trained checkpoint:

CUDA_VISIBLE_DEVICES=1 nohup casanovo sequence \
  /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/denovo/sample_preprocessed_spectra.mgf \
  -c /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/denovo/casanovo.yaml \
  -m /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/train/best.ckpt \
  -d /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/denovo/result \
  > /mnt/data_nvme1/models/casanovo5.1.0/2m/3mod/denovo/run.log 2>&1 &

However, the de novo results look very strange (see attached screenshot). Could you please help us understand what might be going wrong?

casanovo.yaml

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions