load_peptides_func#
- skfp.datasets.lrgb.load_peptides_func(data_dir: str | PathLike | None = None, mol_type: str = 'SMILES', as_frame: bool = False, verbose: bool = False) DataFrame | tuple[list[str]] | ndarray #
Load and return the Peptides-func dataset.
The task is to predict functional properties (binary classes) for a set of peptides (small proteins) [1].
Tasks
10
Task type
classification
Total samples
15535
Recommended split
stratified random
Recommended metric
AUPRC
- Parameters:
data_dir ({None, str, path-like}, default=None) – Path to the root data directory. If
None
, currently set scikit-learn directory is used, by default $HOME/scikit_learn_data.mol_type ({"SMILES", "aminoseq"}, default="SMILES") – Which molecule representation to return, either SMILES strings or aminoacid sequences.
as_frame (bool, default=False) – If True, returns the raw DataFrame with columns: “SMILES”/”aminoseq” and “label”. This depends on the
mol_type
parameter. Otherwise, returns molecules as a list of strings (either SMILES or aminoacid sequences), and labels as a NumPy array (2D integer array).verbose (bool, default=False) – If True, progress bar will be shown for downloading or loading files.
- Returns:
data – Depending on the
as_frame
andmol_type
parameters, one of: - Pandas DataFrame with columns: “SMILES”/”aminoseq”, “label” - tuple of: list of strings (SMILES / aminoacid sequences), NumPy array (labels)- Return type:
pd.DataFrame or tuple(list[str], np.ndarray)
References