Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Can I use htseq --samout file for subsequent annotation?

    Hi,
    So briefly what I'm doing is that:
    -->I'm annotating my smallRNA sequencing data using htseq-count.
    -->I'm using original.sam to annotate miRNAs and using -o to get the out.sam
    -->From that out.sam I can grep out the 'no_feature' reads/rows.

    The question:
    Maybe a stupid idea but is there any way I could use this out_no_feature.sam file for another round of htseq annotationagainst e.g. rRNA.gtf?

    As the out_no_feature.sam does not have a header, is there any way to reheader it or use the header from the original.sam file? Also, I guess I need to remove the last column "XF:Z:__no_feature" from the out_no_feature.sam

    Thanks ahead for comments and help

  • #2
    Hi Heso,

    You can use RSeQC's bam2fq.py to make a fastq file out of your "out_no_feature.sam".
    In order to get the header into your files, use:
    Code:
    samtools view -SH original.sam > header.txt
    Then use something like:
    Code:
    cat header.txt out_no_feature.sam | samtools view -bSh - > out_no_feature.bam
    . In case it was not sorted according to the position, you may need to include a samtools sort into the pipe.
    The "XF:Z"-field does not influence the downstream analysis. But since you have only alignments with this field will not give you any further information.

    Cheers,
    Michael
    Last edited by Michael.Ante; 05-18-2016, 03:42 AM. Reason: Typo

    Comment


    • #3
      Originally posted by Michael.Ante View Post
      Hi Heso,

      You can use RSeQC's bam2fq.py to make a fastq file out of your "out_no_feature.sam".
      In order to get the header into your files, use:
      Code:
      samtools view -SH original.sam > header.txt
      Then use something like:
      Code:
      cat header.txt out_no_feature.sam | samtools view -bSh - > out_no_feature.bam
      . In case it was not sorted according to the position, you may need to include a samtools sort into the pipe.
      The "XF:Z"-field does not influence the downstream analysis. But since you have only alignments with this field will not give you any further information.

      Cheers,
      Michael

      Thanks Michael, it worked perfectly!!

      /Helena

      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 on Modified Bases...
        Today, 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, 04-11-2024, 12:08 PM
      0 responses
      37 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      35 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      54 views
      0 likes
      Last Post seqadmin  
      Working...
      X