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
        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
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Working...
      X