defer wg.Done()
consargs := []string{"bcftools", "consensus", "--fasta-ref", cmd.refFile, "-H", fmt.Sprint(phase)}
if maskfile != nil {
- consargs = append(consargs, "--mask", "/dev/fd/3")
+ consargs = append(consargs, "--mask", "/dev/stdin")
}
consargs = append(consargs, infile)
indexsuffix := ".tbi"
consensus.Stderr = os.Stderr
consensus.Stdout = gzipw
if maskfile != nil {
- consensus.ExtraFiles = []*os.File{maskfile}
+ consensus.Stdin = maskfile
}
log.Printf("running %v", consensus.Args)
err = consensus.Run()