Closed lcougnaud closed 5 years ago
@lcougnaud this would be a nice addition. Can you add a small test file in inst/extdata and a unit test? Thanks, Valerie
I added a small test file and a corresponding unit test.
The example vcf data has been created with mpileupbcftools
(version 1.9) on a subset of the 'ex1.bam' example dataset (only region 'seq1:90') from the Rsamtools
package.
Please let me know if you need extra modifications or updates!
Thanks @lcougnaud . Merged.
@lcougnaud Unfortunately the pull request broke the unit tests in VariantAnnotation. I've reverted the merge.
Before you submit the new pull request please make sure
When you submit your next request, you should see a "no merge conflicts" message.
Thanks. Valerie
The current
expand
function only expands the AD genotype field to ALT/REF pairs. It would be useful to also expand any FORMAT field with information field Number set to 'R', which also contains one value for each possible allele (including the reference) as mentioned in VCF documentation. I encounter this scenario when annotating also the allele depth in the forward/revert strand with thesamtools mpileup
function with--annotate FORMAT/AD,FORMAT/ADF,FORMAT/ADR
in SamTools >= 1.3. Example:Please let me know if there is an alternative way to retrieve/expand the same information. Thanks in advance!