Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • hina
    Junior Member
    • Dec 2023
    • 1

    extract list ids from a vcf file for Fst calculation

    I would like to calculate Fst from the short-paired reads. For that, I did mapping with minimap2.

    ./minimap2 -ax sr ref.fa read1.fq.gz read2.fq.gz > aln.sam

    # Converted to bam file
    samtools view -Sb aln.sam > aln.bam

    # Sorted the bam file
    samtools sort aln.bam > aln_sorted.bam

    # created an index file of sorted bam
    samtools index aln_sorted.bam

    # created an index file of reference
    samtools faidx ref.fa

    extracted the raw variants using freebayes.
    freebayes -f ref.fa aln_sorted.bam > out_var.vcf

    extracted SNPs using vcf tools
    vcftools --vcf out_var.vcf --remove-indels --recode --recode-INFO-all --out snps_only.vcf

    for getting the ids from the vcf file for Fst calculation, I used bcf tools

    bcftools query -l snps_only.vcf

    I got the output​ `unknown`. How to retrieve the list ids? your suggestions would be appreciated.

Latest Articles

Collapse

  • seqadmin
    New Genomics Tools and Methods Shared at AGBT 2025
    by seqadmin


    This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

    The Headliner
    The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
    03-03-2025, 01:39 PM
  • seqadmin
    Investigating the Gut Microbiome Through Diet and Spatial Biology
    by seqadmin




    The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
    02-24-2025, 06:31 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 03-20-2025, 05:03 AM
0 responses
17 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-19-2025, 07:27 AM
0 responses
18 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-18-2025, 12:50 PM
0 responses
19 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-03-2025, 01:15 PM
0 responses
185 views
0 reactions
Last Post seqadmin  
Working...