Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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