Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Library Htsjdk to query a vcf file

    I'm using
    Code:
    VCFFileReader file= new VCFFileReader(file.vcf, file.vcf.gz.tbi, true)
    to open a file and then
    Code:
     CloseableIterator<VariantContext> vc = file.query("10", 77162995, 131048262)
    to query specific regions of the file.
    The problem is that when I choose a region in the middle or the end of the chromosome the method doesn't return anything. For the region starting at position 77162995 and end at 131048262 it doesn't work.

  • #2
    Which organism is it? What is actually the length of your chromosome 10? For Human, it should work, for mouse, since you are requesting out of the chromosome 10, I am not surprised it doesn't...
    Last edited by SylvainL; 02-23-2016, 05:09 AM.

    Comment


    • #3
      It's for human. Chromosome is from 47588 to 133787425. If I search in the beginning of the chromosome, it gives no problem. But if I search in the middle it does not return anything.
      Last edited by binfoUser; 02-23-2016, 05:16 AM.

      Comment


      • #4
        Where did you get the genome? ENSEMBL (names of chromosomes without "chr"), UCSC (then it should be "chr10")?

        Does this function work if you request for example?
        vc = file.query("10", 995, 48262)

        edit: our posts got crossed...

        Did you try to request a shorter sequence?

        Comment


        • #5
          Yes it does. The first result is 47588 and the last 48249.

          Comment


          • #6
            Are you sure you have variant in this region?

            Comment


            • #7
              Each line represents a variant found in the DNA sequence, so if I specify a region present in the file the algorithm has to return that region.
              It's strange not to work for the whole file.
              Last edited by binfoUser; 02-23-2016, 10:00 AM.

              Comment

              Latest Articles

              Collapse

              • 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
              • seqadmin
                Selecting and Optimizing mRNA Library Preparations
                by seqadmin



                Sequencing mRNA provides a snapshot of cellular activity, allowing researchers to study the dynamics of cellular processes, compare gene expression across different tissue types, and gain insights into the mechanisms of complex diseases. “mRNA’s central role in the dogma of molecular biology makes it a logical and relevant focus for transcriptomic studies,” stated Sebastian Aguilar Pierlé, Ph.D., Application Development Lead at Inorevia. “One of the major hurdles for...
                08-07-2024, 12:11 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 08-27-2024, 04:40 AM
              0 responses
              16 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 08-22-2024, 05:00 AM
              0 responses
              293 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 08-21-2024, 10:49 AM
              0 responses
              135 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 08-19-2024, 05:12 AM
              0 responses
              124 views
              0 likes
              Last Post seqadmin  
              Working...
              X