diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ca19c8a..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Docker Build Test - -on: - push: - branches: - - master - pull_request: - branches: - - master - schedule: - - cron: '0 0 * * *' - -jobs: - build-test: - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.8] -# TODO: We probably should switch to using the Docker version. - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Build Docker Dash - run: | - cd dash && docker build . diff --git a/massql/msql.ebnf b/massql/msql.ebnf index 47fdc28..1f6f03f 100644 --- a/massql/msql.ebnf +++ b/massql/msql.ebnf @@ -153,7 +153,7 @@ divide: "/" plus: "+" minus: "-" -moleculeformula: /[A-Z][A-Za-z1-9]*/ +moleculeformula: /[A-Z][A-Za-z0-9]*/ aminoacids: /[A-Z][A-Z]*/ peptide: /[A-Z][A-Z]*/ peptidecharge: /[1-9]/ diff --git a/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_226.18TOLERA___765966e9867749f2dee435696d06aca4.json b/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_226.18TOLERA___765966e9867749f2dee435696d06aca4.json new file mode 100644 index 0000000..3a731ab --- /dev/null +++ b/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_226.18TOLERA___765966e9867749f2dee435696d06aca4.json @@ -0,0 +1,27 @@ +{ + "conditions": [ + { + "conditiontype": "where", + "qualifiers": { + "qualifierexcluded": { + "name": "qualifierexcluded" + }, + "qualifierppmtolerance": { + "name": "qualifierppmtolerance", + "unit": "ppm", + "value": 5.0 + }, + "type": "qualifier" + }, + "type": "ms2productcondition", + "value": [ + 226.18 + ] + } + ], + "query": "QUERY scaninfo(MS2DATA) WHERE MS2PROD=226.18:TOLERANCEPPM=5:EXCLUDED", + "querytype": { + "datatype": "datams2data", + "function": "functionscaninfo" + } +} \ No newline at end of file diff --git a/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_formula_C10____43e7a8234211481785e7b5087b076430.json b/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_formula_C10____43e7a8234211481785e7b5087b076430.json new file mode 100644 index 0000000..d984b7f --- /dev/null +++ b/tests/reference_parses/QUERY_scaninfo_MS2DATA__WHERE_MS2PROD_formula_C10____43e7a8234211481785e7b5087b076430.json @@ -0,0 +1,16 @@ +{ + "conditions": [ + { + "conditiontype": "where", + "type": "ms2productcondition", + "value": [ + 120.0 + ] + } + ], + "query": "QUERY scaninfo(MS2DATA) WHERE MS2PROD=formula(C10)", + "querytype": { + "datatype": "datams2data", + "function": "functionscaninfo" + } +} \ No newline at end of file diff --git a/tests/test_queries.txt b/tests/test_queries.txt index 355f490..cc8464d 100644 --- a/tests/test_queries.txt +++ b/tests/test_queries.txt @@ -44,3 +44,4 @@ QUERY scannum(MS2DATA) WHERE MS2PROD=85.0284:TOLERANCEMZ=0.005 QUERY scaninfo(MS2DATA) WHERE MS2PREC=X AND MOBILITY=range(min=X*0.0006775+0.40557, max=X*0.00078231+0.48817) AND X=massdefect(min=0.9, max=0.99) QUERY scaninfo(MS2DATA) WHERE MS2PROD=(58.06513 OR 60.04439 OR 70.06513 OR 72.08078 OR 74.06004 OR 84.04439 OR 84.08078 OR 86.09643 OR 87.05529 OR 88.0393 OR 88.07569 OR 100.11208 OR 101.07094 OR 101.10732 OR 102.05495 OR 102.09134 OR 104.05285 OR 110.07127 OR 114.12773 OR 115.08659 OR 115.12297 OR 116.0706 OR 118.0685 OR 120.08078 OR 124.08692 OR 129.10224 OR 129.11347 OR 129.13862 OR 130.08625 OR 132.08415 OR 134.09643 OR 136.07569 OR 138.10257 OR 143.12912 OR 148.11208 OR 150.09134 OR 157.14477 OR 159.09167 OR 164.10699 OR 173.10732 OR 187.12297):CARDINALITY=range(min=2,max=5):TOLERANCEPPM=10:INTENSITYPERCENT=5 QUERY scaninfo(MS2DATA) WHERE MS2PROD=226.18:TOLERANCEPPM=5:EXCLUDED +QUERY scaninfo(MS2DATA) WHERE MS2PROD=formula(C10) \ No newline at end of file