Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Method for detecting soft clipped read pileup?

    I'm looking for a way to detect positions in the genome where there is a pileup of soft clipped reads. I've attached an image with an example of what this situation would look like in IGV. Essentially, I'm looking for a tool similar to samtools mpileup, but with the important difference that I want to see soft-clipped reads. I think the issue is that soft-clipped based are not technically aligned at these positions. I know that I could write a script to parse the CIGAR string for each read and detect locations like these, but I'm wondering, is there a tool that can quickly report the locations where reads start getting soft-clipped?


    I'm imagining a version of samtools mpileup that would report something like this:
    10 141352 N 105 a$A$A$a$aSASASaSaaaaAAaAAaAaAaaaAaAaAAAaAAaaAAaAAaaAaAaAAaAAAaAAaAaAAAAAAaAAaaAaaaaaaaaaAaaaAaAAaAaaAaaAAaaaaAaA^]a @<@?;?>A@@=@????A>@@B@@?A???@@@?>@:>?@@?A@?A?@@>A?@@@?AB??@?@?@?@@?>A@?@>>@>?@@@?A>@>?A>A@A=?>=??>=?=C>9>

    where the "$", as usual, means that reads are ending at this position, whereas the "S" would mean that bases are "aligned" and soft-clipped at this position.
    Attached Files

  • #2
    This is implemented as part of the REAPR pipeline.
    Wellcome Sanger Institute tools directory


    You can run the pipeline with:
    reapr pipeline reference.fasta mapped_reads.bam output_directory

    Note that it assumes that the orientation of the reads in the input bam is to point towards each other.

    One of its early stages is to write a file of stats at each base of the reference:
    01.stats.per_base.gz
    (If you don't care about other results, then you can kill the pipeline when it starts writing files with names beginning with 02.)

    Columns 1-2 are the chromosome name and position.
    Columns 17-20 have the number of reads that had their ends soft-clipped at that position. 4 columns because it's broken down into the 4 combinations from reads mapped to the fwd or rev strand and clipped at their start or end (w.r.t to the reference).

    Hope that helps,
    Martin

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin




      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
      04-22-2024, 07:01 AM
    • 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

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 11:49 AM
    0 responses
    15 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-24-2024, 08:47 AM
    0 responses
    16 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    62 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    60 views
    0 likes
    Last Post seqadmin  
    Working...
    X