-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from MannLabs/development
Development
- Loading branch information
Showing
45 changed files
with
2,712 additions
and
1,535 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
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,6 +1,23 @@ | ||
import os | ||
import numpy as np | ||
|
||
from alphabase.yaml_utils import load_yaml | ||
|
||
CONST_FILE_FOLDER = os.path.join( | ||
os.path.dirname(__file__), | ||
'const_files' | ||
) | ||
"const_files" | ||
) | ||
|
||
common_const_dict:dict = load_yaml( | ||
os.path.join(CONST_FILE_FOLDER, "common_constants.yaml") | ||
) | ||
|
||
# Only applied in peak and fragment dataframes to save RAM. | ||
# Using float32 still keeps 0.1 ppm precision in any value range. | ||
# Default float dtype is "float64" for value calculation and other senarios. | ||
PEAK_MZ_DTYPE:np.dtype = np.dtype( | ||
common_const_dict["PEAK_MZ_DTYPE"] | ||
).type | ||
PEAK_INTENSITY_DTYPE:np.dtype = np.dtype( | ||
common_const_dict["PEAK_INTENSITY_DTYPE"] | ||
).type |
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
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
Oops, something went wrong.