Skip to content

Commit

Permalink
Merge branch 'fix_220' of github.com:mboudet/flaskomics into fix_220
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Jun 12, 2023
2 parents baa595b + 9064d0f commit c143f38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,8 @@ This changelog was started for release 4.2.0.
- These enable 'anonymous query' mode, allowing anonymous users to send 'full queries'. See documentation
- Added 'overview' button in the query page. This button will show all 'selected' attributes, and allow users to quickly select the related entity.
- Added 'Abstraction' tab on the navbar. This will print the whole abstraction as a 2d/3d graph.
- Added 'distance' notion, using attribute link. This allows user to filter a value based on another value, with an optional modifier.
- Added 'custom distance' option for faldo relation (instead of just 'included_in' and 'overlap_with')

### Fixed

Expand All @@ -23,6 +25,7 @@ This changelog was started for release 4.2.0.
- Fixed profile update & password reset tab in user profile page
- Fixed Gff Faldo integration (was only integrating the last selected entity)
- Fixed an issue when using filters and an 'UNION' node
- Fixed an issue when launching a query with a 'linked' attribute toggled but unselected

### Changed

Expand Down
26 changes: 23 additions & 3 deletions docs/query.md
Expand Up @@ -53,12 +53,20 @@ From left to right :

- <i class="fa fa-bookmark"></i>: Mark the attribute as a **form** attribute. More information [here](template.md#forms).
- <i class="fa fa-link"></i>: Link this attribute to another (on a different entity or the same one).
- *This will only show rows where both attributes have the same value*.
- *This will filtrer based on the linked attribute value, with an optional modifier (See note)*.
- <i class="fa fa-question-circle"></i>: Show all values for this attribute, including empty values.
- <i class="fa fa-ban"></i>: Exclude one or more categories, instead of including.
- *Select where the attribute is not XXX*.
- <i class="fa fa-eye"></i>: Display the attribute value in the results.

!!! note "Info"
The 'link' attribute allows you to filter based on an equality/inequality to the linked query value, with optional modifier depending on the attribute type.
- *Numbers have optional numerical modifier*
- *Dates have an optional days modifier*
- *String have a custom regex, using '$1' as a placeholder for the linked value (ex: $1-suffix)*
- *Boolean do not have a modifier*
This allows you to do query such as : *All entities where the end position <= start position + 300*

# Filtering on related entities

To query on a linked entity, simple click on a suggested node. The linked node will be surrounded in a red circle, and the list of attributes on the right-hand side will change to show the new node's attributes.
Expand All @@ -74,7 +82,7 @@ Explicit relations between entities (defined by the "@" symbol in CSV files, and

## FALDO relations

All *FALDO* entities will be linked by an implicit *Included_in* relation. This relation is slightly different than *explicit* relations: it relies on the *FALDO* attributes of both entities for the query, instead of a direct link.
All *FALDO* entities will be linked by an implicit *Included in* relation. This relation is slightly different than *explicit* relations: it relies on the *FALDO* attributes of both entities for the query, instead of a direct link. This relation can be customized to either *Included in*, *Overlap with*, or *Distant from*.

FALDO entities are represented with a green circle and FALDO relations have a green arrow.

Expand All @@ -86,10 +94,22 @@ All *FALDO* entities will be linked by an implicit *Included_in* relation. This
!!! note "Info"
Entity A is *Included_in* Entity B means:

- **Entity A Start > Entity B Start** *AND* **Entity B End < Entity B End.**
- **Entity A Start > Entity B Start** *AND* **Entity A End < Entity B End.**

By default, the inequalities are **Strict**, but it can be changed from the interface.

!!! note "Info"
Entity A *Overlap_with* Entity B means:

- **(Entity B Start > Entity A Start** *AND* **Entity B Start < Entity A End)** *OR*
- **(Entity B End > Entity A Start** *AND* **Entity B End < Entity A End)**

By default, the inequalities are **Strict**, but it can be changed from the interface.

!!! note "Info"
*Distant from* is a special relation, that allows you to customize the position of the *start* & *stop* of your entity relative to the linked entity, with an optional modifier. This allows you to make queries such as:
- *Entity A Start < Entity B End + 300*

!!! Tip
If both entities have a defined *Reference* and/or *Strand* attribute, you will be able to select the **Same reference** and/or **Same strand** options. (Both are selected by default if available)

Expand Down

0 comments on commit c143f38

Please sign in to comment.