Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angerusso
    Member
    • Oct 2011
    • 47

    #1

    Assigning gene to a chromosome segment from CBS segmentation output:

    Hi All,

    I have an CBS segmentation algorithm output for 10 tumor samples each from 2 different tumors.

    Now, I am in an urgent need to assign gene (followed by all genes) that belong to a particular chromosome segment after I removed all the CNVs from segment data. The format of the data is:

    Sample Chromosome Start End Num_Probes Segment_Mean
    Sample1A-TA 1 51598 76187 15 -1.115

    Could anyone suggest an R library or code or method that I can quickly use to get the genes assigned to CBS output.

    Thanks so much,
    Angel
  • zee
    NGS specialist
    • Apr 2008
    • 249

    #2
    Hi

    You could convert your segment data to bed first and then match genes with Bedtools.
    Start by converting your data to bed format:

    Code:
    perl -lane 'printf "chr$F[1]\t%s\t$F[3]\t$F[0]\t$F[5]\n",$F[2]-1'  segments.txt > segments.bed
    Open a new browser window here and click "Get output"

    Install bedtools.

    Unzip the bed file and match your regions to the genes:

    Code:
    intersectBed -wa -wb -a  segments.bed -b  refseq.bed > result.txt
    You should have a line of matching refseq for regions matching these in the genome

    Comment

    • angerusso
      Member
      • Oct 2011
      • 47

      #3
      Hi Zee,

      Thanks very much for your reply and I used BedTools as you suggested. One quick question:

      I am supposed to report the format of the file as:

      sample chr start end genestart geneend #genesinsegment namesofgenesinsegment

      Now I need to know how "intersectbed" is finding the intersection. I also saw there are options to give the amount of overlap using "-f" option. Should I play with these different amounts of overlap. Are we assuming that all genes that are within the boundaries of the chromosome are the only ones reported?

      Output from one segment leads to 2 genes as below

      The output is from above segment is two genes in the segment:
      chr1 51598 76187 Sample1A-TA 15 -1.115 chr1 52878 53750 ENSG00000205292 AL627309.15-4 pseudogene
      chr1 51598 76187 Sample1A-TA 15 -1.115 chr1 58954 59871 ENSG00000177693 OR4F5 protein_coding

      I can just simply write a perl code to get the format I want and I still will be reporting two lines per gene, as there are two genes in that segment.

      Cheers,
      Angel

      Comment

      • zee
        NGS specialist
        • Apr 2008
        • 249

        #4
        Hi Angel,

        The Bedtools PDF manual has some very clear examples and illustrations of how the different functions work, including intersectBed. Also have a look at the filo package for summing up your data. There is a groupBy function in filo that will collapse the list of genes for you.

        Use the output of BedTools to make the format you need.

        Comment

        • angerusso
          Member
          • Oct 2011
          • 47

          #5
          Hey,
          Thanks so much!

          Angel

          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, 07:41 AM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-31-2026, 02:55 AM
          0 responses
          39 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Working...