Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • #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


    • #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


      • #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


        • #5
          Hey,
          Thanks so much!

          Angel

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM
          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          31 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          32 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          53 views
          0 likes
          Last Post seqadmin  
          Working...
          X