-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace data backend and increase flexibility. (#39)
- Loading branch information
Showing
25 changed files
with
1,836 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Data for testing and examples | ||
|
||
This directory contains real data to be used in tests and examples within the Depthcharge documentation. | ||
Currently, they all originate from [PXD000001](http://central.proteomexchange.org/cgi/GetDataset?ID=PXD000001) | ||
|
||
## Notes | ||
|
||
- [TMT10-Trial-8.mzML]( TMT10-Trial-8.mzML) was modified manually such that one "charge state" CV accession was changed to an "assumed charge state" CV accession. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
"""Initialize the depthcharge package.""" | ||
from . import ( | ||
data, | ||
encoders, | ||
feedforward, | ||
tokenizers, | ||
transformers, | ||
) | ||
from .primitives import ( | ||
MassSpectrum, | ||
Molecule, | ||
Peptide, | ||
PeptideIons, | ||
) | ||
from .version import _get_version | ||
# Ignore a bunch of pkg_resources warnings from dependencies: | ||
import warnings | ||
|
||
with warnings.catch_warnings(): | ||
for module in ["psims", "pkg_resources"]: | ||
warnings.filterwarnings( | ||
"ignore", | ||
category=DeprecationWarning, | ||
module=module, | ||
) | ||
|
||
from . import ( | ||
data, | ||
encoders, | ||
feedforward, | ||
tokenizers, | ||
transformers, | ||
) | ||
from .primitives import ( | ||
MassSpectrum, | ||
Molecule, | ||
Peptide, | ||
PeptideIons, | ||
) | ||
from .version import _get_version | ||
|
||
__version__ = _get_version() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
"""The Pytorch Datasets.""" | ||
from . import preprocessing | ||
from .arrow import ( | ||
spectra_to_df, | ||
spectra_to_parquet, | ||
spectra_to_stream, | ||
) | ||
from .fields import CustomField | ||
from .peptide_datasets import PeptideDataset | ||
from .spectrum_datasets import AnnotatedSpectrumDataset, SpectrumDataset | ||
from .spectrum_datasets import ( | ||
AnnotatedSpectrumDataset, | ||
SpectrumDataset, | ||
StreamingSpectrumDataset, | ||
) |
Oops, something went wrong.