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
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        Today, 07:48 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 07:17 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-02-2024, 08:06 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-30-2024, 12:17 PM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-29-2024, 10:49 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Working...
      X