Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rndouglas
    Member
    • Jun 2012
    • 23

    SeqTrimMap mapping issue

    I have Illumina smallRNA-RNAseq reads that have already had their adapters removed and have been filtered for tRNA/rRNA.

    I'm trying to use SeqTrimMap to align these reads to my reference genome with the following command:

    Code:
    $SeqTrimMap -b -S -i -v 1 -o ~/seqtrimmap_B_output_496_1 -s -u 18 -t 28 ~/496_1_filtered_18_28nt.fa  ~/zma_b.fa
    The program runs well and gives me output in SAM format as requested, but the program will only map reads at lengths 20-24 nt. Does anyone have a suggestion that might allow me to map reads at additional lengths?
  • mbayer
    Member
    • Mar 2009
    • 31

    #2
    Hi rndouglas,

    it sounds like SeqTrimMap is suppressing anything that isn't small RNA.

    Here is what I would do:

    1. Convert the SAM file that SeqTrimMap produced to BAM format.

    2. Extract the unmapped reads from this. You can do that with samtools like so:

    samtools view -f4 sample.bam > sample.unmapped.sam

    3. Extract the unmapped reads from the sam file you just created and convert these into FASTQ format. I don't know if there is a tool for this so you may have to script it yourself.

    4. Map those reads with another mapping tool that will map regardless of length, e.g. Bowtie, BWA etc. Convert your output into BAM if it isn't that already.

    5. Merge the two BAM files with samtools merge (see http://samtools.sourceforge.net/samtools.shtml) using the -r flag. This will produce a single BAM file which contains both the shorter and the longer reads, but they will be distinguishable because samtools merge adds a read group tag to each read. This will give you a trail of where each read came from.

    6. You can visualise this quite nicely in Tablet (http://bioinf.scri.ac.uk/tablet/). It includes a "colour by read group" colouring scheme which colours each read according to which read group it belongs to. If you select a contig and then click on the 4th tab in the left hand panel you will see a list of the read groups. The check boxes allow you to switch colour for each read group on and off individually so you can grey out one lot and make the other one stand out.

    Hope this helps.

    Micha

    Comment

    • rndouglas
      Member
      • Jun 2012
      • 23

      #3
      Thanks for the suggestion!

      I also contacted the program author directly and was told that this sort of thing has popped up with Illumina data before.

      With Illumina input the program uses the length of the first line in the input FASTA as the maximum length. In my case, the first line always happened to be a 24nt sRNA.

      When I moved a 28nt sRNA to the top of the list the program ran as desired.

      Comment

      • toni_marco
        Junior Member
        • Nov 2009
        • 5

        #4
        I'm glad you got around it. Let me know if any other issue appears.
        Toni

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by SEQadmin2


          I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


          Here are nine questions we think about, in roughly the order they matter, before...
          06-18-2026, 07:11 AM
        • SEQadmin2
          From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
          by SEQadmin2


          Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


          The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
          ...
          06-02-2026, 10:05 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-09-2026, 11:58 AM
        0 responses
        96 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-05-2026, 10:09 AM
        0 responses
        117 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-04-2026, 08:59 AM
        0 responses
        109 views
        0 reactions
        Last Post SEQadmin2  
        Working...