Tool complains that contig does not exist when using Glow pipe transformer
1
0
Entering edit mode
3.9 years ago

I am getting errors from the software that contig chr1 does not exist within the header. Does anybody have any insight as to why the infer function might not be inferring contigs?

glow spark pyspark • 544 views
ADD COMMENT
0
Entering edit mode
3.9 years ago

As of release 0.4.1, Glow can only infer FORMAT and INFO header lines from a variant dataframe.

However, you can tell Glow to use the header from the input VCF when calling the command line tool.

Example:

import glow
vcf_path = "<path>"
df = spark.read.format("vcf").load(vcf_path)
glow.transform(
    "pipe",
    df,
    cmd=["tool"],
    input_formatter="vcf",
    in_vcf_header=vcf_path,
    output_formatter="vcf"
)
ADD COMMENT
0
Entering edit mode

If this supposed to be an answer for your original question? How would one actually use this in a command line?

Otherwise edit your original question and add this information there.

ADD REPLY

Login before adding your answer.

Traffic: 2931 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6