Output from bcftools consensus in .fq format

Open
#1,670 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

Start with the bcftools consensus command and compare its current FASTA output with the deprecated samtools mpileup, bcftools view, and vcfutils.pl vcf2fq pipeline described in the issue. Determine whether FASTQ output is supported or what command behavior and validation would be needed for a .fq.gz result.

Written by the indexing model from the issue text.

Description

enhancement

I am trying to run PSMC to obtain demographic history, and am looking to call consensus sequences from my study samples.

PSMC requires a ".fq.gz" input which is typically the whole-genome diploid consensus sequence of an individual.

The old pipeline, that is now deprecated that was recommended for generating the input file is:
samtools mpileup -C50 -uf ref.fa aln.bam | bcftools view -c - | vcfutils.pl vcf2fq -d 10 -D 100 | gzip > diploid.fq.gz

I have adapted my pipeline to use bcftools consensus instead but the pipeline seems to only output .fa files and not .fq files.

Is it possible to output a .fq file instead of only a .fa format.

Thanks!

Dominant language
C
Stars
891
Forks
277
Avg merge
2d 23h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samtools/bcftools

All issues in samtools/bcftools

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.