Use shortened VCF feature description for some types of insertions and deletions #3901
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The HG002 SV benchmark VCF has a particular way of describing insertions and deletions where it exactly specifies the deletion and insertion sequence in REF and ALT fields, even when these are quite long.
The resulting description strings generated on the VCF track are kind of unreadable as a result. This PR makes it so that insertions and deletions longer than 5bp are turned into just a string saying e.g. "10bp DEL" or "10bp INS"
current main
![image](https://private-user-images.githubusercontent.com/6511937/266351127-d5b44911-2423-4797-9cdf-3f053f584b5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTUxOTAsIm5iZiI6MTczOTM1NDg5MCwicGF0aCI6Ii82NTExOTM3LzI2NjM1MTEyNy1kNWI0NDkxMS0yNDIzLTQ3OTctOWNkZi0zZjA1M2Y1ODRiNWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTAwODEwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWE2NjE1OGI0ZmIyZTgzZTVmMzY4OGM2MGI2ZjlhYTA1MGUwYjljMGI5ZTIwZmY5OWQwOGYyNzM4YTY2ZGQ3YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xpHtEx8UtFUC0CJOqhwDWn4VJ_0F_1vAd0sa8Efx4MM)
this branch
![image](https://private-user-images.githubusercontent.com/6511937/266351232-556772c6-4125-4760-a6fe-6a8cdf713f3e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTUxOTAsIm5iZiI6MTczOTM1NDg5MCwicGF0aCI6Ii82NTExOTM3LzI2NjM1MTIzMi01NTY3NzJjNi00MTI1LTQ3NjAtYTZmZS02YThjZGY3MTNmM2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTAwODEwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGU0NjM3MzQ2M2E1YjFhMDYzOTJiNjU0MjYxYjU3YjFhMWYwYzRiOGE2YmJiNmZmN2ZmNGJiOGZkZWE1MmVjZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.89uWssWjMJNIYxYjX-8y3Bo358WmoOqRt5agKxJVm48)