merge_vcfs
Merge a minos VCF with a GVCF at certain positions (driven by the catalogue). Will only include null calls from the GVCF.
check_gvcf_row(row, min_dp)
Check if a GVCF row is just a null call (and so should be included).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
row
|
str
|
The VCF row. |
required |
min_dp
|
int
|
Minimum DP to consider a call valid. |
required |
Returns: bool: True if the row is just null calls, False otherwise.
Source code in gnomonicus/merge_vcfs.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
fetch_minos_positions(minos_path, min_dp)
Given a minos VCF, return the positions to exclude from the gvcf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
minos_vcf
|
Path
|
Path to the minos VCF file. |
required |
min_dp
|
int
|
Minimum DP to consider a call valid. |
required |
Returns: set[int]: The positions to exclude.
Source code in gnomonicus/merge_vcfs.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |