File: TestQuasiMapPerfectHash.cmake

package info (click to toggle)
rapmap 0.12.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: cpp: 38,057; ansic: 2,754; sh: 209; python: 82; makefile: 15
file content (24 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set(QUASI_INDEX_CMD_PH ${CMAKE_BINARY_DIR}/rapmap quasiindex --perfectHash -t transcripts.fasta -i sample_quasi_index_ph)
execute_process(COMMAND ${QUASI_INDEX_CMD_PH}
                WORKING_DIRECTORY ${TOPLEVEL_DIR}/sample_data
                RESULT_VARIABLE QUASI_INDEX_RESULT_PH
                )

if (QUASI_INDEX_RESULT_PH)
    message(FATAL_ERROR "Error running ${QUASI_INDEX_COMMAND_PH}")
endif()

set(MAP_COMMAND_PH ${CMAKE_BINARY_DIR}/rapmap quasimap -t 2 -i sample_quasi_index_ph -1 reads_1.fastq -2 reads_2.fastq -o sample_quasi_map_ph.sam)
execute_process(COMMAND ${MAP_COMMAND_PH}
	            WORKING_DIRECTORY ${TOPLEVEL_DIR}/sample_data
                RESULT_VARIABLE QUASI_MAP_RESULT_PH
                )
if (QUASI_MAP_RESULT_PH)
    message(FATAL_ERROR "Error running ${QUASI_MAP_RESULT_PH}")
endif()

if (EXISTS ${TOPLEVEL_DIR}/sample_data/sample_quasi_map_ph.sam)
    message("RapMap (quasi, perfect-hash) ran successfully")
else()
    message(FATAL_ERROR "RapMap (quasi-index & map) failed to produce output")
endif()