Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Resorting chromosome order in a VCF file to match reference

    Hi, thank you in advance for any help.

    I am trying to re-order the chromosome order in a VCF file to match that of the reference file.

    I have tried vcftools -sort, but I want my order to go back to the 'unnatural' order and this appears to only sort to the natural order.

    I have also tried vcfsorter.pl, but this simply resulted in the output having the header and nothing else.

    Any ideas? As simple as possible please....!

  • #2
    use picard SortVcf http://broadinstitute.github.io/pica...w.html#SortVcf

    "Sorts one or more VCF files according to the order of the contigs in the header/sequence dictionary and then by coordinate. Can accept an external sequence dictionary. If no external dictionary is supplied, multiple inputs' headers must have the same sequence dictionaries. Multiple inputs must have the same sample names (in order)"

    Comment


    • #3
      Thank you - that looks perfect.

      I am very new at this, and just have one more question. I have downloaded and unzipped picard but can not find any examples on their github site of how to put in and execute the command for this.....

      Comment


      • #4
        Originally posted by acedraper1 View Post
        Thank you - that looks perfect.

        I am very new at this, and just have one more question. I have downloaded and unzipped picard but can not find any examples on their github site of how to put in and execute the command for this.....


        java -jar picard.jar SortVcf INPUT=in.vcf OUTPUT=out.vcf

        Comment

        Latest Articles

        Collapse

        • 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
        • seqadmin
          Quality Control Essentials for Next-Generation Sequencing Workflows
          by seqadmin




          Like all molecular biology applications, next-generation sequencing (NGS) workflows require diligent quality control (QC) measures to ensure accurate and reproducible results. Proper QC begins at nucleic acid extraction and continues all the way through to data analysis. This article outlines the key QC steps in an NGS workflow, along with the commonly used tools and techniques.

          Nucleic Acid Quality Control
          Preparing for NGS starts with isolating the...
          02-10-2025, 01:58 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 03-03-2025, 01:15 PM
        0 responses
        46 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 02-28-2025, 12:58 PM
        0 responses
        167 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 02-24-2025, 02:48 PM
        0 responses
        525 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 02-21-2025, 02:46 PM
        0 responses
        256 views
        0 likes
        Last Post seqadmin  
        Working...
        X