Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glados
    Member
    • Mar 2012
    • 59

    #1

    DESeq - get chromosome

    Hello all.

    I've been searching for this question for hours now, and I give up and post it here instead. It should not be very complicated.

    I have a long list of sig. genes in DESeq I would like to look at in more detail where the genes are located in the genome. How do I receive chromosome number (possibly location) for the genes in DESeq? I know how to get this information in Cuffdiff, but in DESeq I wonder if it's possible.
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    How have you made the count table that you used as input for DESeq? I suppose, by using a GTF file. And that one contains all the information you need.

    Comment

    • glados
      Member
      • Mar 2012
      • 59

      #3
      Yes, by using a reference annotation gtf. How do you suggest I use it? If I have a long list with genes I want to look at. Perhaps I can compare them somehow. I'm new to bioinformatics so it's not intuitive to me yet.

      Comment

      • dariober
        Senior Member
        • May 2010
        • 311

        #4
        Originally posted by glados View Post
        Yes, by using a reference annotation gtf. How do you suggest I use it? If I have a long list with genes I want to look at. Perhaps I can compare them somehow. I'm new to bioinformatics so it's not intuitive to me yet.
        If you want to do it in R, this sample code will read the gtf file and extract the rows matching your list of genes:

        Code:
        ## List (vector) of differentially expr. genes
        degenes<- c('TNFRSF18', 'WASH7P') 
        
        gtf<- read.table('genes.gtf', stringsAsFactors= FALSE, sep= '\t', quote= '')
        gene_id<- sub('.*(gene_name \")', '', gtf$V9, perl= TRUE) ## NOTE: Replace gene_name with the feature to extract (e.g. gene_id, gene_symbol)
        gene_id<- sub('\".*', '', gene_id, perl=TRUE)
        gtf$gene_id<- gene_id
        
        ## All features in the GTF file for each DE gene
        degtf<- gtf[gtf$gene_id %in% degenes,]
        
        ## Get start and end coordinates for each DE gene
        decoords<- data.frame(aggregate(degtf[, c('V1', 'V7', 'V4')], by= list(gene_id= degtf$gene_id), min),
            gene_end= aggregate(degtf$V5, by= list(gene_id= degtf$gene_id), max)$x)
        Hope it helps!
        Dario

        Comment

        • glados
          Member
          • Mar 2012
          • 59

          #5
          Thank you dariober for contributing with your code! It works great!

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Working...