Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cliff
    Member
    • Oct 2009
    • 41

    #1

    Question about BED format - chromStart and End

    I am a bit confused about the chromStart and chromEnd positions in the BED format.

    According to UCSC:
    chromStart - The starting position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0.
    chromEnd - The ending position of the feature in the chromosome or scaffold. The chromEnd base is not included in the display of the feature. For example, the first 100 bases of a chromosome are defined as chromStart=0, chromEnd=100, and span the bases numbered 0-99.

    Assuming I download a bed file for a gene from UCSC as below:

    chromStart: 300
    chromEnd: 500

    Now, I get a set of SNPs by mapping reads to hg18 and calling SNPs using whatever SNPcaller. I want to know how many SNPs were called within the above gene. Should I compare each SNP position with the gene range as

    300<=SNP_POSITION<=500

    or

    301<=SNP_POSITION<=500

    or

    301<=SNP_POSITION<=499

    ?

    Does anyone know which is correct?

    Thanks
  • ffinkernagel
    Senior Member
    • Oct 2009
    • 110

    #2
    300 <= x < 500

    so the first base is no. 300, the last base is no .499, and the range covers 200 bases.
    Just as the doc says. You may imagine the mark being between the bases.

    Comment

    • lh3
      Senior Member
      • Feb 2008
      • 686

      #3
      301st<=snp_position<=500th

      EDIT:

      BED is always 0-based. The first base in a sequence has coordinate 0 and therefore coordinate 300 denotes the 301st base. A more obvious example is

      0 1

      which denotes the first base.
      Last edited by lh3; 10-25-2010, 04:14 AM.

      Comment

      • Hena
        Member
        • Nov 2009
        • 19

        #4
        It depends on how the range is defined: 0 based or 1 based positions? If one based, then 301 <= SNP_POSITION <= 500 is the range you had in the bed file.
        Last edited by Hena; 10-25-2010, 03:43 AM.

        Comment

        • ndaniel
          Member
          • Feb 2009
          • 33

          #5
          300 <= x < 500

          Comment

          • ndaniel
            Member
            • Feb 2009
            • 33

            #6
            Originally posted by lh3 View Post
            301st<=snp_position<=500th

            EDIT:

            BED is always 0-based. The first base in a sequence has coordinate 0 and therefore coordinate 300 denotes the 301st base. A more obvious example is

            0 1

            which denotes the first base.
            In case that everything is zero-based one has for example for range 3 (instead of 300) to 5 (instead of 500):


            0123456789 <-- positions
            ---gg----- <-- gene in range [3,5)


            therefore the correct answer is 300<=x<500!

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
              by SEQadmin2



              CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

              Despite this, “CRISPR helped turn genome editing from a specialized technique into
              ...
              07-31-2026, 11:01 AM
            • SEQadmin2
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 10:13 AM
            0 responses
            13 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-31-2026, 02:55 AM
            0 responses
            26 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            19 views
            0 reactions
            Last Post SEQadmin2  
            Working...