PretextView
Paired REad TEXTure Viewer. OpenGL Powered Pretext Contact Map Viewer.
PretextView is a desktop application for viewing pretext contact maps.
Usage
Use the middle mouse button or the 'u' key to bring up the GUI. Pan by holding down the right mouse button. Click and drag with the left mouse button to select an are to zoom to. Scroll to zoom. A three button mouse is recomended.
Version 0.04 or later: Edit mode and Waypoint mode
Activate edit mode with the GUI, or use the 'e' key. Pickup a region of a contig with the left mouse button, pickup a whole contig with the middle mouse button or spacebar. Place a region with the left mouse button. Invert a selected region with the middle mouse button or spacebar. Undo the last edit with the 'q' key. Exit edit mode with the 'e' key. Use the GUI to see a list of completed edits.
Activate waypoint mode with the GUI, or use the 'w' key. Place a waypoint with the left mouse button, delete a waypoint with the middle mouse button or spacebar. Exit waypoint mode with the 'w' key. Use the GUI to see a list of waypoints, click on a waypoint in the list to vist it.
Enter scaffolding mode with the 's' key.
Saving
Map state is automatically saved ($XDG_CONFIG_DIR
or ~/.config
on Unix, and the %APPDATA%
folder on Windows) while the app runs, and is loaded on map load.
You can also manually save/load state via the UI.
AGP Output
Map state can be output in AGP format via the UI. Objects are first created according to the scaffolds defined in scaffolding mode, with remaining sequences output as singletons.
AGP Correction
Note that object/part sizes will only be accurate up to the size of an individual map texel, and that any input sequences smaller than an individual texel will not be output.
AGP files can be corrected by the included python script AGPCorrect, which requires access to the input sequences in (gzipped) FASTA format.
AGPCorrect ref.fa(.gz) map.agp >corrected_scaffs.agp
The script requires
- Python >= 3.8
- Biopython
Requirments, running
OpenGL 3.3
2G of RAM
Windows, Mac and Linux Builds
The prebuilt apps for Windows, Mac and Linux are available here.
The Mac app was built on MacOS 10.13.6
The Linux app was built on kernel 3.13
The Windows app was build on Windows 10, and is known to work on at least Windows 7.
Third-Party acknowledgements
PretextView uses the following third-party libraries:
- glfw
- libdeflate
- FontStash
- Nuklear
- glad
- stb_image
- stb_image_write
- stb_truetype
- stb_sprintf
- Fonts from the 'Droid Serif' font set
- Icons from open-iconic
Installation
Requires:
- clang >= 11.0.0 [Unix]
- clang-cl >= 11.0.0 [Windows]
- meson >= 0.57.1
- cmake >= 3.0.0
git submodule update --init --recursive
./install [Unix]
install.bat [Windows]
Application will be installed to the 'app' folder in the source directory.