Bug fix - HGSV3 haplo generation script and small patches to metadata gen #53
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.
population_to_haplotype.pyCurrently the script is taking variant where GT is missing. For missing GT (
.) we get-1from the cyvcf2 module which passes throughif gt:condition.We can take the variant only if
gt > 0(-1 for missing, and 0 is for ref). Furthermore we need to take the correct variant allele as mentioned in the GT.Beside this fix also added,
update_variant_id.py. But it would remove variants that are different but has same SPDI notation - see example 1 in this doc. Keep the original node id in theINFO/NODEIDif variant id is updated.update_variant_id.pyINFO/NODEIDto keep the original node id in the INFO field.Other fixes/updates
create_metadata_payload.py: Handle when human haplotype does not have chrom 1 and fails on example variant generation.create_track_api_metadata.py: Add a space in description text.generate_vep_config.py: Fix cache version in VEP config ini. Causes error when running non-vertebrate species.update_fields.py: KeepINFO/NODEIDinfo in the output.bed_to_bigbed.nf: Fixed a bug introduced whentypevariable was switched from nextflow variable to bash variable.