Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EmilioKolo
    Junior Member
    • Jan 2024
    • 4

    #1

    Problem with ONT sequencing pipeline. Probably in the Samtools part

    Hi everyone. I have two sets of .fastq files from two ONT sequencing runs and one of them isn't working after generating .bam files.

    The .bam files are generated and recognised by samtools, and they have reasonable sizes given the number of sequences they have, but they seem to not be mapped to the custom amplicon sequence I'm using as a reference, even though samtools tells me both sets of files are mapped to the same reference.

    I ran "samtools view -H" on files from either experiment and both have the same reference (799yT32), plus they both seem to not have any other differences in versions nor upstream scripts.
    Code:
    $ samtools view -H ./file_from_exp1.bam
    @HD     VN:1.6  SO:coordinate
    @SQ     SN:799yT32      LN:8546
    @PG     ID:minimap2     PN:minimap2     VN:2.26-r1175   CL:minimap2 -ax map-ont -t 12 /[path]/ref_seq/779yT32.fa /[path]/barcode03_concat.fastq
    @PG     ID:samtools     PN:samtools     PP:minimap2     VN:1.10 CL:samtools view -H ./file_from_exp1.bam
    $ samtools view -H ./file_from_exp2.bam
    @HD     VN:1.6  SO:coordinate
    @SQ     SN:799yT32      LN:8546
    @PG     ID:minimap2     PN:minimap2     VN:2.26-r1175   CL:minimap2 -ax map-ont -t 12 /[path]/ref_seq/779yT32.fa /[path]/barcode06_concat.fastq
    @PG     ID:samtools     PN:samtools     PP:minimap2     VN:1.10 CL:samtools view -H ./file_from_exp2.bam​
    Despite that, when I run "samtools view -c" on them to see the number of reads, it seems to stop recognising the reference sequence, though it still shows the file as having 100k reads in it.
    Code:
    $ samtools view -c ./file_from_exp1.bam 799yT32
    2944​
    $ samtools view -c ./file_from_exp2.bam
    114145
    $ samtools view -c ./file_from_exp2.bam 799yT32
    [main_samview] region "779yT32" specifies an invalid region or unknown reference. Continue anyway.
    0​
    I'm guessing the problem stems from not recognising the custom reference sequence name, but I don't know how can it work with one set of reads and not the other.

    I also tried using IGV, which shows no reads and a "Junctions" row on the .bam file from experiment 2 which hadn't appeared previously in other .bam files I opened before (screencap attached).

    The .fastq files come from two different experiments with different chemistries (experiment 1 was done with r9.4.1 while experiment 2 was done with r10), but look functionally the same. I don't think that can cause any problems but I point it out in case it might be relevant.

    Do you know anything about this problem? Is there any way to solve this?

    Thanks in advance.
    Attached Files

Latest Articles

Collapse

  • SEQadmin2
    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by SEQadmin2




    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
    10-30-2026, 06:46 AM
  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
41 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-28-2026, 09:51 AM
0 responses
25 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
74 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
48 views
0 reactions
Last Post SEQadmin2  
Working...