Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix headings filter field #268

Closed
khituras opened this issue Jul 3, 2024 · 0 comments
Closed

Fix headings filter field #268

khituras opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels

Comments

@khituras
Copy link
Member

khituras commented Jul 3, 2024

The filter field for the section heading search contains non-heading text. Example query:

{
  "from": 0,
  "size": 10,
  "query": {
    "bool": {
      "must": [
        {
          "bool": {
            "must": [
              {
                "simple_query_string": {
                  "query": "methods",
                  "fields": [
                    "paragraph.headings^1.0"
                  ],
                  "flags": -1,
                  "default_operator": "or",
                  "lenient": false,
                  "analyze_wildcard": false,
                  "auto_generate_synonyms_phrase_query": true,
                  "fuzzy_prefix_length": 0,
                  "fuzzy_max_expansions": 50,
                  "fuzzy_transpositions": true,
                  "boost": 1
                }
              }
            ],
            "adjust_pure_negative": true,
            "boost": 1
          }
        }
      ],
      "filter": [
        {
          "terms": {
            "alleventtypes": [
              "Regulation",
              "Positive_regulation",
              "Negative_regulation",
              "Positive_regulation",
              "Negative_regulation",
              "Binding",
              "Localization",
              "Phosphorylation"
            ],
            "boost": 1
          }
        },
        {
          "term": {
            "numarguments": {
              "value": 2,
              "boost": 1
            }
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "_source": false,
  "stored_fields": "*",
  "highlight": {
    "fields": {
      "sentence.text_arguments": {
        "pre_tags": [
          "<mark class=\"hl-argument\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_arguments": {
              "value": "xargumentx",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_trigger": {
        "pre_tags": [
          "<mark class=\"hl-trigger\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_trigger": {
              "value": "xtriggerx",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_likelihood_1": {
        "pre_tags": [
          "<mark class=\"hl-like1\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_likelihood_1": {
              "value": "xlike1x",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_likelihood_2": {
        "pre_tags": [
          "<mark class=\"hl-like2\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_likelihood_2": {
              "value": "xlike2x",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_likelihood_3": {
        "pre_tags": [
          "<mark class=\"hl-like3\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_likelihood_3": {
              "value": "xlike3x",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_likelihood_4": {
        "pre_tags": [
          "<mark class=\"hl-like4\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_likelihood_4": {
              "value": "xlike4x",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text_likelihood_5": {
        "pre_tags": [
          "<mark class=\"hl-like5\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "highlight_query": {
          "term": {
            "sentence.text_likelihood_5": {
              "value": "xlike5x",
              "boost": 1
            }
          }
        },
        "force_source": false
      },
      "sentence.text": {
        "pre_tags": [
          "<mark class=\"hl-filter\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 0,
        "number_of_fragments": 1,
        "force_source": false
      },
      "paragraph.text": {
        "pre_tags": [
          "<mark class=\"hl-filter\">"
        ],
        "post_tags": [
          "</mark>"
        ],
        "fragment_size": 80,
        "number_of_fragments": 1,
        "force_source": false
      }
    }
  }
}

Example result:

{
        "_index": "gepi_1.0_2",
        "_type": "_doc",
        "_id": "PMC4502726_FE99_0.0_1.0",
        "_score": 6.831766,
        "fields": {
          "genesource": [
            "GNormPlus"
          ],
          "mixedgenesource": [
            false
          ],
          "paragraph.likelihood": [
            6
          ],
          "genemappingsource": [
            "GNormPlus"
          ],
          "argumentprefnames": [
            "MAP1LC3B",
            "AMBRA1"
          ],
          "relationsource": [
            "BioSemEventAnnotatorST11"
          ],
          "sentence.text_likelihood_1": [
            "To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods."
          ],
          "sentence.text_likelihood_3": [
            "To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods."
          ],
          "sentence.text_trigger": [
            "To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods."
          ],
          "sentence.text_likelihood_2": [
            "To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods."
          ],
          "paragraph.headings": [
            "(See previous page). SIRT5 controls ammonia-induced autophagy. (A) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cellular extracts. Alternatively, WT, SIRT5+ and SIRT5− cells were treated with 100 nM bafilomycinA1 for 2 and 17 h and processed. Finally, also MDA-MB-231 WT, SIRT3+ and SIRT3− cells were used. Autophagy induction was measured by using an anti-MAP1LC3B antibody as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (B) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cell extracts. SQSTM1, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods. In addition, cells were treated with bafilomycinA1 for 17 h and SQSTM1 levels measured by western blot. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (C) MDA-MB-231 WT cells were either left untreated or treated with NH4Cl 1 or 2 mM for 24 h. Subsequently, cells were processed to obtain whole extracts. MAP1LC3B, GABARAPL2, GABARAP and, SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (D) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were treated with either BPTES or dimethyl-α-ketoglutarate. Cells were then processed to obtain whole extracts. MAP1LC3B, GABARAPL2, and, SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (E) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were cultured withoutL-glutamine for 24 h. Cells were then processed to obtain whole extracts. MAP1LC3B and SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (F) C2C12 WT cells treated in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cell extracts. Cells were also treated with NH4Cl 1 or 2 mM for 24 h. To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05.\n",
            "Ammonia-induced autophagy is regulated by SIRT5",
            "Results",
            "SIRT5 regulation of ammonia-induced autophagy and mitophagy"
          ],
          "paragraph.text": [
            "(See previous page). SIRT5 controls ammonia-induced autophagy. (A) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cellular extracts. Alternatively, WT, SIRT5+ and SIRT5− cells were treated with 100 nM bafilomycinA1 for 2 and 17 h and processed. Finally, also MDA-MB-231 WT, SIRT3+ and SIRT3− cells were used. Autophagy induction was measured by using an anti-MAP1LC3B antibody as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (B) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cell extracts. SQSTM1, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods. In addition, cells were treated with bafilomycinA1 for 17 h and SQSTM1 levels measured by western blot. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (C) MDA-MB-231 WT cells were either left untreated or treated with NH4Cl 1 or 2 mM for 24 h. Subsequently, cells were processed to obtain whole extracts. MAP1LC3B, GABARAPL2, GABARAP and, SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (D) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were treated with either BPTES or dimethyl-α-ketoglutarate. Cells were then processed to obtain whole extracts. MAP1LC3B, GABARAPL2, and, SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (E) MDA-MB-231 WT cells in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were cultured withoutL-glutamine for 24 h. Cells were then processed to obtain whole extracts. MAP1LC3B and SQSTM1 levels were measured by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05. (F) C2C12 WT cells treated in the presence or absence of MC3482, as well as SIRT5+ and SIRT5− clones were processed to obtain whole cell extracts. Cells were also treated with NH4Cl 1 or 2 mM for 24 h. To asses autophagy induction MAP1LC3B, GABARAPL2, and GABARAP levels were determined by western blot as indicated under Materials and Methods. Densitometric analysis of the gels was performed as described under Materials and Methods. ACTB was used as loading control. *Significantly different from WT cells. Significance was set atP < 0.05."
          ],

Working theory: figure captions are added to the heading field for some reason.

@khituras khituras added the bug label Jul 3, 2024
@khituras khituras self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant