Skip to content

Parsing sample names as external variable are not recognized in the Sample field. #16

@acontrerasg

Description

@acontrerasg

Given a multisample VCF file with different samples, if the sample name is given as a external variable, such as

sample_name="NA00001"
zcat MULTI_VCF | vawk -v ext_var=$sample_name '{print S$ext_var$GT}'

will not work.

However when manually typing the name at the field, it does:

zcat MULTI_VCF | vawk '{print S$NA00001$GT}'

Any workaround?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions