peptdeep.spec_lib.library_factory¶
Library classes to predict library from sequences, modified peptides, precursors, or proteins (fasta files).
Classes:
|
For fasta or a list of fasta files |
Factory class for library makers |
|
|
|
|
For input dataframe of modified sequences |
|
For input dataframe of charged modified sequences |
|
Base class to predict libraries |
|
For input dataframe of AA sequences |
Functions:
|
- class peptdeep.spec_lib.library_factory.FastaLibraryMaker(model_manager: ModelManager = None)[source][source]¶
Bases:
PredictLibraryMakerBaseFor fasta or a list of fasta files
- class peptdeep.spec_lib.library_factory.LibraryMakerProvider[source][source]¶
Bases:
objectFactory class for library makers
Methods:
__init__()get_maker(maker_name, *[, model_manager])register_maker(maker_name, maker_class)- get_maker(maker_name: str, *, model_manager=None) PredictLibraryMakerBase[source][source]¶
- class peptdeep.spec_lib.library_factory.PSMReaderLibraryMaker(model_manager: ModelManager = None)[source][source]¶
Bases:
PredictLibraryMakerBase
- class peptdeep.spec_lib.library_factory.PeptideLibraryMaker(model_manager: ModelManager = None)[source][source]¶
Bases:
PrecursorLibraryMakerFor input dataframe of modified sequences
- class peptdeep.spec_lib.library_factory.PrecursorLibraryMaker(model_manager: ModelManager = None)[source][source]¶
Bases:
PredictLibraryMakerBaseFor input dataframe of charged modified sequences
- class peptdeep.spec_lib.library_factory.PredictLibraryMakerBase(model_manager: ModelManager = None)[source][source]¶
Bases:
objectBase class to predict libraries
Methods:
__init__([model_manager])make_library(infiles)Predict a library for the infiles, this function runs the following methods.
translate_library([translate_mod_dict])Translate predicted DataFrames into a single DataFrame in SWATH library format
translate_to_tsv(tsv_path[, translate_mod_dict])Translate the predicted DataFrames into a TSV file
Attributes:
- __init__(model_manager: ModelManager = None)[source][source]¶
- property fragment_intensity_df: DataFrame¶
- property fragment_mz_df: DataFrame¶
- make_library(infiles: str | list | DataFrame)[source][source]¶
Predict a library for the infiles, this function runs the following methods.
self._input(infiles)
self._check_df()
self._predict()
- Parameters:
_input – _input file or source
- Raises:
ValueError – ValueError for some reasons
- property precursor_df: DataFrame¶
- class peptdeep.spec_lib.library_factory.SequenceLibraryMaker(model_manager: ModelManager = None)[source][source]¶
Bases:
PeptideLibraryMakerFor input dataframe of AA sequences