AdamaJava / adamajava

Other
14 stars 4 forks source link

fix(qannotate): snpeff records were not being dealt with correctly #342

Closed holmeso closed 7 months ago

holmeso commented 7 months ago

Description

If a vcf record being annotated has more than 1 entry in the alt field, then nanno will split that record into 2 records. eg. chr1 1000 A C,T ..... will become chr1 1000 A C ..... and chr1 1000 A T .....

However, nanno was using the whole of the alt field in snpEff annotation files, which meant that there would not be a match from snpEff (just for records that had more than 1 entry in the alt field).

The fix involves splitting the 'alt' field when it contains more than one value, allowing the VCF record to be annotated to match against each of these values.

Other changes:

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

New unit tests, along with testing on cluster

Are WDL Updates Required?

No

Checklist: