AdamaJava / adamajava

Other
14 stars 4 forks source link

feat(qsv): use ref index to determine positions #319

Closed holmeso closed 2 years ago

holmeso commented 2 years ago

Description

This change allows qsv to be used with the GRCh38 reference genome. It was previously hard-coded to run against GRCh37

The chromosome positions map that is used by the tiled aligner is now built up from the reference index file. The reference index file can be specified in the ini file that is passed to qsv (reference_index in general section). If the reference file is not specified in the ini file, an attempt to locate it will be made by examining the reference file. If the index is in the same directory as the reference file, has the same name as the reference file and ends with .fai then it will be used. Otherwise an exception will be thrown.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Existing unit tests pass. Additional unit tests have been created and pass

Are WDL Updates Required?

Although WDL updates are not required, if the reference index is not sitting next to the reference file and correctly named, qsv will not pick it up and an exception will be thrown.

Checklist: