Dataset
SpectrumDataset(df, s2i, n_peaks=200, min_mz=50.0, max_mz=2500.0, min_intensity=0.01, remove_precursor_tol=2.0, reverse_peptide=True, eos_symbol='</s>', annotated=True, return_str=False)
Bases: Dataset
Spectrum dataset class supporting .ipc
and .csv
.
Source code in instanovo/transformer/dataset.py
collate_batch(batch)
Collate batch of samples.