Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kevinrue
    Member
    • Jan 2013
    • 25

    HISAT2 / hisat2_extract_snps_haplotypes_VCF.py / --genotype-vcf & VCF_fnames

    Dear all,

    I would like to use the Python script hisat2_extract_snps_haplotypes_VCF.py.

    I cannot fully understand some of the command line options from the description printed using the --help option.

    I am confused about the role of the positional argument VCF_fnames and the optional argument --genotype-vcf.

    Here is a copy paste of those two argument descriptions (let me know if I should paste the complete output of --help, it is not so long):
    VCF_fnames A comma-seperated VCF files (plain text or gzipped
    file is accepted: GRCh38_dbSNP_no_SVs.vcf or
    GRCh38_dbSNP_no_SVs.vcf.gz


    --genotype-vcf GENOTYPE_VCF
    VCF file name for genotyping (default: empty)



    I have access to merged VCF files: one per human chromosome, each file contains genotypes and VEP predictions for the same set of samples.
    I thought these files should go as the positional argument VCF_fnames, however, I would like to know:
    1. whether my files contain the right information for the positional argument
    2. what kind of VCF file should go in the optional argument --genotype-vcf


    Many thanks in advance!

    Kevin
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Can you provide a reference for where you got the said script from?

    Comment

    • kevinrue
      Member
      • Jan 2013
      • 25

      #3

      Comment

      • kevinrue
        Member
        • Jan 2013
        • 25

        #4
        Just to clarify, in my previous message I sent the link to the Python script itself.
        However, I installed the software from the source code availabe at https://ccb.jhu.edu/software/hisat2/...html#options-1

        Thanks in advance for looking into this!

        Comment

        • xris
          Junior Member
          • Feb 2017
          • 1

          #5
          Hi Did you resolve your question? I have the same doubt.

          If I run

          hisat2_extract_snps_haplotypes_VCF.py -v path/to/.fa path/to/.vcf test

          I get only empty output files .snp .haplotype

          Thanks
          Last edited by xris; 02-23-2017, 05:39 AM.

          Comment

          • kevinrue
            Member
            • Jan 2013
            • 25

            #6
            Hi xris,

            Sorry, no, never sorted that one out. Ended up using using the UCSC snp146Common.txt file.

            Regarding you empty .snp and .haplotype issue, does this other post help you in any way?

            You say empty, but in my case, I had one entry in the output, because the script relies on the rsid field to uniquely identify variants, while in my case all the variants had "." and therefore all variants after the first one were skipped. However, that was over a year ago, and the script may behave differently now.

            Best wishes,
            Kevin

            Comment

            Latest Articles

            Collapse

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 06-09-2026, 11:58 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-04-2026, 08:59 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 12:03 PM
            0 responses
            61 views
            0 reactions
            Last Post SEQadmin2  
            Working...