Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • César
    Junior Member
    • Nov 2024
    • 2

    #1

    How to make a heatmap with the exons of a gene with bam file of RNA-seq in R-studio?

    Hi, I´m new in this kind of analysis in RNA-seq but I´m trying to make a heatmap with the exons of a gene. My files are from a public database and first a convert the SRR file to bam file, After that I wanted to make my heatmap in R studio with that bam files but the R-studio console show me this messsage:
    > # Crear el objeto DGEList
    > dge <- DGEList(counts = matriz_conteo, genes = rownames(matriz_conteo))
    Aviso:
    In DGEList.default(counts = matriz_conteo, genes = rownames(matriz_conteo)) :
    At least one library size is zero
    ​

    After that, I had been trying to search what happen and apply the next codes to know the sizes of my files and if the position of the exons corresponds to the positions of the report exon positions in the reference genome that I used (GRCh38/hg38.p14). The size of my file is 0 and the position of my exons do not corresponds with the exon positions of the reference genome. I put the codes:

    > dge$samples$lib.size
    [1] 0 0 0 0 0 0 0 0


    > exones_dmd
    GRangesList object of length 1:
    $ENSG00000198947
    GRanges object with 275 ranges and 2 metadata columns:
    seqnames ranges strand | exon_id exon_name
    <Rle> <IRanges> <Rle> | <integer> <character>
    [1] X 31097677-31098183 - | 1011488 ENSE00001871364
    [2] X 31119219-31121930 - | 1011489 ENSE00001478643
    [3] X 31119219-31121930 - | 1011490 ENSE00003916589
    [4] X 31119221-31121930 - | 1011491 ENSE00001880031
    [5] X 31119222-31121930 - | 1011492 ENSE00003901420
    ... ... ... ... . ... ...
    [271] X 33211282-33211497 - | 1011761 ENSE00003920795
    [272] X 33211282-33211519 - | 1011762 ENSE00003918256
    [273] X 33211282-33211549 - | 1011763 ENSE00001899141
    [274] X 33211282-33211554 - | 1011764 ENSE00001479071
    [275] X 33339259-33339609 - | 1011765 ENSE00001478378
    ------
    ​
  • fchatonnet
    Member
    • Sep 2014
    • 30

    #2
    Hi César,
    it's not very clear how did you get from the bam files to the DGElist object, it seems that you used some kind of counts matrix, but how did you generate it?
    Next, I'm not very familiar with using R to do this kind of analysis, but it would be faster to use bedtools, a command-line tool to manipulated bed (and bam) files) to achieve this. Using bedtools intersect -c with a bed file of your exons of interest as a first input and your bam file as a second input would directly count the reads which overlap the exons. Then you can you this count matrix in R to generate a heatmap.
    Good luck!

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2




      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
      10-30-2026, 06:46 AM
    • 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

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-28-2026, 09:51 AM
    0 responses
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    72 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    48 views
    0 reactions
    Last Post SEQadmin2  
    Working...