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
      Understanding Genetic Influence on Infectious Disease
      by seqadmin




      During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

      Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
      09-09-2024, 10:59 AM
    • seqadmin
      Addressing Off-Target Effects in CRISPR Technologies
      by seqadmin






      The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
      08-27-2024, 04:44 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 09-11-2024, 02:44 PM
    0 responses
    11 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-06-2024, 08:02 AM
    0 responses
    145 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-03-2024, 08:30 AM
    0 responses
    152 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 08-27-2024, 04:40 AM
    0 responses
    161 views
    0 likes
    Last Post seqadmin  
    Working...
    X