Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Aman Mahajan
    replied
    SAM Format

    I have converted my alignment file to SAM format using samtools. I am not sure if it is correct. It looks like this. Any idea about it?..Thanks

    HWI-ST141_0380:5:1101:1213:2108#TGACCA 65 199172 35 30 50M * 0 0 CGTCTATAAACCTCTCACATGCTGGTGGATACTTGGTCATGGAAAAATCC hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh NM:i:2 MD:Z:40C1C7
    HWI-ST141_0380:5:1101:1176:2150#TGACCA 81 57103 30 30 50M * 0 0 TCTCCGTCGTCGCAGACGAGTTCATGGCCAGGGACATCACATTCGAGAAC

    Leave a comment:


  • son_nexg
    replied
    Hi I am experiencing problems using .sam output by Tophat with Cufflink.
    My first question is : What options should I use to generate a .bam file with Tophat ?

    If thats not possible, could someone please help me fix the error I am getting when I try to run Cufflink on the .sam file:

    You are using Cufflinks v1.0.3, which is the most recent release.
    [bam_header_read] EOF marker is absent.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    File Sample_1001645_9/accepted_hits.sam doesn't appear to be a valid BAM file, trying SAM...
    [15:21:47] Loading reference annotation.
    [15:21:51] Inspecting reads and determining fragment length distribution.
    > Processing Locus chrY:59330251-59343488 [************************ ] 97%
    Error: this SAM file doesn't appear to be correctly sorted!
    current hit is at chrX:145287, last one was at chrM:16469
    Cufflinks requires that if your file has SQ records in
    the SAM header that they appear in the same order as the chromosomes names
    in the alignments.
    If there are no SQ records in the header, or if the header is missing,
    the alignments must be sorted lexicographically by chromsome
    name and by position.





    I also tried to sort the sam output using samtools but that also gives and error that '@SQ header is missing' hence can not sort it using samtools!!

    Thank you.

    Leave a comment:


  • ben.weisburd
    replied
    I was seeing this error also ("Error: Segment join failed with err = 1").
    Turned out the problem was that I was running more than one tophat process simultaneously in the same directory (I wanted to process multiple fastq files in parallel). When I launched the processes in separate directories, everything worked fine.

    -Ben

    Originally posted by iloveneworleans View Post
    I just downloaded the latest Tophat-1.0.10, and found there is an segment join failed error at the last.
    And Tophat cannot generate the output files.
    But the previous version did not have this error.
    Is this a new incompatibility or anything else?

    [Fri Jul 31 13:58:04 2009] Beginning TopHat run (v1.0.10)
    -----------------------------------------------
    [Fri Jul 31 13:58:04 2009] Preparing output location ./tophat_out/
    [Fri Jul 31 13:58:04 2009] Checking for Bowtie index files
    [Fri Jul 31 13:58:04 2009] Checking for reference FASTA file
    [Fri Jul 31 13:58:04 2009] Checking for Bowtie
    Bowtie version: 0.10.0.0
    [Fri Jul 31 13:58:04 2009] Checking reads
    seed length: 50bp
    format: fastq
    quality scale: --phred33-quals
    [Fri Jul 31 13:59:06 2009] Reading known junctions from GFF file
    Splitting reads into 2 segments
    [Fri Jul 31 14:00:21 2009] Mapping reads against h_sapiens_asm with Bowtie
    [Fri Jul 31 14:05:34 2009] Mapping reads against h_sapiens_asm with Bowtie
    [Fri Jul 31 14:10:42 2009] Searching for junctions via segment mapping
    [Fri Jul 31 14:22:10 2009] Retrieving sequences for splices
    [Fri Jul 31 14:24:18 2009] Indexing splices
    Warning: Encountered reference sequence with only gaps
    Warning: Encountered reference sequence with only gaps
    .....

    [Fri Jul 31 14:24:41 2009] Mapping reads against segment_juncs with Bowtie
    [Fri Jul 31 14:26:35 2009] Mapping reads against segment_juncs with Bowtie
    [Fri Jul 31 14:28:30 2009] Joining segment hits
    [FAILED]
    Error: Segment join failed with err = 1

    Leave a comment:


  • b1nu
    replied
    My bad. Hadn't specified the '-S' option to samtools to indicate that input is in SAM format. Works perfectly now.

    Originally posted by b1nu View Post
    I am using tophat 1.0.13 & bowtie 0.12.2, but still get the error
    "[bam_pileup] fail to read the header: non-exisiting file or wrong format."

    The tophat output does mark the quality scale as 'phred33'.

    Code:
    [Tue Feb 23 13:18:51 2010] Checking reads
    	seed length:	 42bp
    	format:		 fastq
    	quality scale:	 phred33 (default)

    Leave a comment:


  • b1nu
    replied
    I am using tophat 1.0.13 & bowtie 0.12.2, but still get the error
    "[bam_pileup] fail to read the header: non-exisiting file or wrong format."

    The tophat output does mark the quality scale as 'phred33'.

    Code:
    [Tue Feb 23 13:18:51 2010] Checking reads
    	seed length:	 42bp
    	format:		 fastq
    	quality scale:	 phred33 (default)

    Leave a comment:


  • Cole Trapnell
    replied
    This is a bug in 1.0.12, and is fixed in the upcoming 1.0.13. 1.0.12 was simply propogating the unconverted quality scores, where 1.0.13 converts them to Phred-33, as required by the SAM spec.

    Leave a comment:


  • kch
    replied
    Originally posted by griffon42 View Post

    I'm using version 1.0.10 with the "--solexa1.3-quals" flag...can you (or anyone) confirm that Tophat outputs Phred-scaled (ASCII -33 offset) base quality scores (as described in the SAM specifications)? I seem to be getting impossibly high base qualities which could be contributing to my problems in SNP filtering.

    Thanks.
    I am using TopHat version 1.0.12 and Bowtie version 0.11.3 with the "--solexa1.3-quals" flag as well. Similarly, I'm not sure whether the output in my accepted_hits.sam file is reporting ASCII-33 quality values. For example, in the following output:

    EAS306_9079:7:69:745:1129 0 chr1 1442 1 50M * 0 0 CAGAATTGTACTGTTCTGTATCCCACCAGCAATGTCTAGGAATACCTGTT abbbbbbaabbbaababaabbbbbbbaaaabbbaaabaaaaaaaaaaaaa NM:i:1

    The quality string is the same as my Illumina fastq input file and I expected the quality string to be "BCCCCCCBBCCCBBCBCBBCCCCCCCBBBBCCCBBBCBBBBBBBBBBBBB" (as converted using `maq ill2sanger`).

    Any input would be appreciated, thanks!

    Leave a comment:


  • choy
    replied
    TopHat v1.0.12 SAM output question

    I am running TopHat v1.0.12 with 40mer paired-end reads, and am having difficulty interpreting the SAM output file (accepted_hits.sam). Here is an example of a pair of output lines that correspond to the mates of a single paired-end read:

    PATHBIO-SOLEXA2:2:58:734:942#0 145 chr1 554416 255 40M = 3836 0 ATAATACACACCCTCACCACTACAATCTTCCTAGGAACAA _QS_\^H^`W^Z[Ua^``M`^Jb_UNVZ\a`]baaaaV`K NM:i:1

    PATHBIO-SOLEXA2:2:58:734:942#0 97 chrM 3836 255 40M = 554416 0 CCATCATGAACCTTGGCCATAATATGATTTATCTCCACAC `bbbbbbaVX`]aa`Y\X`Y]S_a\a_^XZ_bb`bbaT`` NM:i:1

    My question is regarding the MNRM field (the 7th field, set to '=' here). The SAM format specification states that this field is set to the reference of the mate, and will only be set to '=' if the reference of the query sequence is the same as the reference of the mate sequence. In this case the mates map to different contigs, so why is this field set to '='?

    When computing coverage (as in the coverage.wig file), do you eliminate mate pairs that have an MPOS field (the 8th field) that does not correspond to its mate?

    Also, would it be possible for you to set the ISIZE parameter in the accepted_hits.sam file?

    Thanks very much!

    Leave a comment:


  • griffon42
    replied
    Great! Looking forward to the update.

    I can still email you sample data if necessary...just let me know.

    Thanks again.

    Leave a comment:


  • Cole Trapnell
    replied
    Ah, I see where I'm going wrong. I'll have this fixed shortly.

    Leave a comment:


  • Cole Trapnell
    replied
    It should be, although TopHat lets Bowtie handle the actual conversion to base 33 Phred scale. Can you email me a handful of reads that wind up with bad qualities after the mapping?

    Leave a comment:


  • griffon42
    replied
    Thanks Cole.

    Sorry for the sequential posting, but...Taking a closer look, it looks like the issue could be the base qualities returned in the 'accepted_hits.sam' output from Tophat.

    I'm using version 1.0.10 with the "--solexa1.3-quals" flag...can you (or anyone) confirm that Tophat outputs Phred-scaled (ASCII -33 offset) base quality scores (as described in the SAM specifications)? I seem to be getting impossibly high base qualities which could be contributing to my problems in SNP filtering.

    Thanks.

    Leave a comment:


  • Cole Trapnell
    replied
    I'll see what I can do for the next release

    Leave a comment:


  • griffon42
    replied
    Is there any way to have Tophat output an appropriate value for the "Mapping Qualities" field in the SAM format? At present, it outputs a straight "255" (which the SAM specification suggests when there is no value available), but this seems to be interfering with SNP calling in SAMtools (ie varFilter doesn't 'filter' much of anything...I end up with LOTS of false positives).

    Alternatively, can anyone comment on an appropriate method of calling quality-aware, reliable cSNPs from Tophat output without a 'mapping quality' value?

    Thanks!

    Leave a comment:


  • griffon42
    replied
    Tophat 1.0.10

    Hi Cole-

    The new version (1.0.10) seems to be working fine for me. Strand orientation in the output SAM file looks good, as far as I can tell.

    Thanks so much for the rapid turnaround!

    Leave a comment:

Latest Articles

Collapse

  • 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
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
35 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
25 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
41 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
45 views
0 reactions
Last Post SEQadmin2  
Working...