-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add mzml contains peak udf (#202)
* test: add mzml contains peak udf * feat: fix test path * test: use all features * feat: fixup fixture tests
- Loading branch information
Showing
6 changed files
with
280 additions
and
11 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
237 changes: 237 additions & 0 deletions
237
exon/test-data/datasources/mzml-pyoteomics/pyoteomics.mzML
Large diffs are not rendered by default.
Oops, something went wrong.
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,26 @@ | ||
control substitution on | ||
|
||
statement ok | ||
CREATE EXTERNAL TABLE mzml_table STORED AS MZML LOCATION '$CARGO_MANIFEST_DIR/test-data/datasources/mzml-pyoteomics/pyoteomics.mzML' | ||
---- | ||
|
||
query I | ||
SELECT contains_peak(mz.mz, 200.0, 1.0) AS has_peak FROM mzml_table LIMIT 1; | ||
---- | ||
true | ||
|
||
query I | ||
SELECT contains_peak(mz.mz, 0.0, 1.0) AS has_peak FROM mzml_table LIMIT 1; | ||
---- | ||
false | ||
|
||
statement error | ||
SELECT contains_peak(mz.mz) AS has_peak FROM mzml_table LIMIT 1; | ||
|
||
query I | ||
SELECT bin_vectors(mz.mz, intensity.intensity, 200.0, 10, 1.0) AS bins FROM mzml_table LIMIT 1; | ||
---- | ||
0,0,0,0,203667.40002441406,0,0,0,0,0 | ||
|
||
statement ok | ||
DROP TABLE mzml_table |