Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HISAT2 / hisat2_extract_snps_haplotypes_VCF.py: only first variant in output

    Dear all,

    I am trying to apply the hisat2_extract_snps_haplotypes_VCF.py script to merged VCF files: one file per human chromosome, all files contains genotypes for the same set of samples.

    A typical command I run is:

    hisat2_extract_snps_haplotypes_VCF.py --non-rs --verbose /scratch/genomes/grch37/84/fasta/Homo_sapiens.GRCh37.dna.primary_assembly.fa vcf/chr14_PASS_vep.vcf.gz HiSat2/extract/chr14_PASS_vep

    Facts:
    • The script typically take between 20min and 2h20min depending on the chromosome length.
    • However, the output SNP and haplotype files both contain a single line (i.e. variant). I compared, and each time it is the first variant in the VCF file processed.
    • I do not see any error or output message , despite the --verbose option.
    • Considering the run time, it seems that the script is processing all variants, just not outputting anything after the first variant


    Is there some aspect of my VCF files that I should check for compatibility with the script?

    Many thanks in advance.

    Kevin

  • #2
    Problem identified (not solved)

    Got it!

    I drilled down into the code of (hisat2_extract_snps_haplotypes_VCF.py)
    and found the following bit of code that ignores variants with duplicated ID (3rd column).

    Code:
    if varID == prev_varID:
        continue
    In my case, the VCF was generated from WGS, and variants are not yet annotated with any RSID (existing or novel).
    As a result they all have ID ".", and leads the code above to skip all variants after the first one (and explains why the script still runs with a time proportional to the chromosome length, as it does properly scan all variants in the VCF file).

    My solution:
    I'll just build a genome index using the UCSC snp146Common.txt file (as the current pre-built index available on the HISAT website seems to be based on dbSNP 144)

    Any comment welcome!
    Kevin

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin


      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
      Yesterday, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    54 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    50 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    44 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    55 views
    0 likes
    Last Post seqadmin  
    Working...
    X