🚨 WARNING: this is a clone of the tripal_map module that is developed by the Main Bioinformatics Lab. The original repository can be found here
- Introduction
- Requirements
- Version
- Download
- Installation
- Configuration
- Use Cases
- Problems/Suggestions
TripalMap is a Drupal module that provides interactive visualization of genetic maps. The TripalMap module extends the Tripal suite of Drupal modules and can be added to any website that uses Tripal, where genetic map visualization functionality is desired.
Representing the next generation of the existing CMap tool, TripalMap MapViewer is a browser based tool for visualizing comparison of genetic maps from numerous species, and curating map data.
The TripalMap MapViewer provides a modernized user interface to display chromosomes of different species and view pair-wise comparisons of known correspondences of genetic map features. The TripalMap module integrates with Drupal websites using the Tripal API and Chado tables from a PostgreSQL database.
- Drupal 7.x
- Tripal 7.x-2.x or Tripal 7.x-3.x
Please refer to this page to install Drupal.
Please refer to this page and here to install Tripal v2 or here to install Tripal v3.
1.0.0
The TripalMap module can be downloaded from GitLab: https://gitlab.com/mainlabwsu/tripal_map
- Install the tripal_map module on your Tripal site
- Configure the Materialized views:
- Go to the Tripal menu and choose the Chado Schema option. Then select Materialized Views.
- In the Materialized Views page, find the tripal_map_genetic_markers_mview materialized view and select "populate" in the right column
- Populate the tripal_map_qtl_and_mtl_mview also. This submits the job to populate the materialized views.
- Use drush to manually run the job to populate the materialized views:
cd /var/www/html
drush trp-run-jobs --user=administrator
- Refresh the Materialized Views page and both materialized views should show a status of "populated".
- Editing the Materialized Views:
- Depending on your specific Chado table naming scheme, it may be necessary to edit certain parts of the materialized views.
- To do this go to Materialized Views page and choose the Edit option beside the tripal_map_genetic_markers_mview materialized and tripal_map_qtl_and_mtl_mview.
- You should not need to modify the schema, but in the query you may change the table names if they differ from your Chado naming scheme.
- For example, it is likely that in the tripal_map_genetic_markers_mview materialized view, in this statement on line cv_id = (SELECT cv_id FROM {cv} WHERE name = 'MAIN'), the name of the controlled vocabulary (cv) will be something different than 'MAIN'.
- On uninstall, any changes made to the materialized views will be deleted.
- When data in the Chado tables is updated, those changes are reflected by TripalMap only after re-populating the materialized views.
For Tripal version 3, TripalMap offers two fields that can be added and configured, the MapViewer overview field and the MapViewer Marker Map Positions field:
To add the Map Overview field to the Map page, visit the Structure option in the Drupal Administration and select the Tripal Content Types options. Select the Map content type:
In the Map content type page, add a new field by specifying the MapViewer Overview field type:
Create the MapViewer Overview field by completing the settings form as specified here:
To add the Marker Map Positions field to the Genetic Marker, Heritable Phenotypic Marker or QTL markers, visit the Structure option in the Drupal Administration and select one of these Tripal Content Types:
Add a new MapViewer Marker Map Positions field in one of these marker content type pages and complete the settings form as specified here:
To configure aspects of TripalMap, visit the Administration page by going to the Tripal menu, selecting the Extensions option and then choosing MapViewer.
In the General section, the Tutorial Links manipulate the link values at the top of the MapViewer page. Changes in the Video and Text tutorial fields here in this dialog will be dynamically reflected in MapViewer Tutorial links.
In the Toolbar section there are two settings, the Linkage Group Display and the Organism Selector Display Preferences.
The Linkage Group Display section controls the setting for whether or not marker names for QTL and heritable phenotypic markers are abbreviated. The abbreviated names appear beside the linkage group, and the full name appears on the marker label popup on the top right.
The Organism Selector Display Preference specifies whether the common name or the genus and species name will be used to refer to the Organisms shown in the toolbar selector list. Here is an example of the Genus and Species:
the Common Name:
Or both the Common Name and the Genus and Species:
can be customized here if a different terminology is used by the marker fields. The names in these fields are accessed dynamically and used in the code that determines the positioning of markers on the linkage groups.
View the map from the Map Overview

Specify the map id in the URL path, for example, https://yoursite.org/featuremap/439 or navigate to it from a Drupal node.
View a linkage group from the MapViewer
Click on one of the glyphs in the Map Overview page or specify the map id in the URL path,
and optional linkage group for example, https://yoursite.org/mapviewer/194/LG1, to open the MapViewer

Configure linkage group from MapViewer
Select an organism from the organism selector list, wait until the map and linkage group selection list options
are updated as dependencies.
or map from the map selector list, and wait until the linkage group selection list options are updated
or linkage group from the linkage group selector list.

View correspondences between two linkage groups in the MapViewer
Select the "Show Comparison Map" checkbox. Two linkage groups will be drawn, the reference linkage group on the left,
and the comparison linkage group on the right. Scroll the zoomed section on each linkage group to view various areas
of each linkage group and adjust the orientation of the correspondences.

Change color of markers in the MapViewer. In the Marker color toolbar, select a marker type, then a color and press Submit.
To default to original settings, click the Reset button.

Change marker type visibility in the MapViewer. In the Marker visibility toolbar, select one or more marker types,
choose to Show or Hide the marker type(s) and press Submit. To default to original settings, press Reset.

TripalMap MapViewer is under active development. For questions or bug reports, please contact the developers at the Main Bioinformatics Lab by email: [email protected]










