Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • nilshomer
    replied
    Originally posted by gen2prot View Post
    Hello,

    I was wondering if there was a score associated with each read in the SAM file, that would give an indication on the strength of the match between the read and the subject sequence. The CIGAR string helps to some extent, but since "M" denotes match or mismatch, I was wondering if there was a way to differentiate between the two. Sort of like an E-value or a blast score.

    Abhijit
    Probably a good idea to create a new thread (this one is getting long!).
    See the mapping quality field.

    Originally posted by JohnK View Post
    Hi guys,

    Had a quick question regarding the SAM- CIGAR column. I understand the M attribute designates both matches and mismatches. Is there a way to get at the literal number of mismatches without resorting to comparing the tags or sequence to the reference using the SAM format? Sorry if this question is a re-post. I tried searching, but couldn't find anything.
    Probably a good idea to create a new thread (this one is getting long!).
    Try the NM optional tag if it is available (aligner specific).

    Leave a comment:


  • JohnK
    replied
    Hi guys,

    Had a quick question regarding the SAM- CIGAR column. I understand the M attribute designates both matches and mismatches. Is there a way to get at the literal number of mismatches without resorting to comparing the tags or sequence to the reference using the SAM format? Sorry if this question is a re-post. I tried searching, but couldn't find anything.

    Leave a comment:


  • gen2prot
    replied
    Hello,

    I was wondering if there was a score associated with each read in the SAM file, that would give an indication on the strength of the match between the read and the subject sequence. The CIGAR string helps to some extent, but since "M" denotes match or mismatch, I was wondering if there was a way to differentiate between the two. Sort of like an E-value or a blast score.

    Abhijit

    Leave a comment:


  • gen2prot
    replied
    Hello nilshomer,

    I specified the SQ field but I still get an error, probably because the reference sequences are drosophila gene sequences. Therefore the names of the reference sequences are different unless 2 or more reads match to the same gene. I cannot convert the names to a single reference sequence name, since I will loose information. I am stuck. Maybe I need to do the traditional perl sort (very time consuming for a 6GB file). Any better way of doing this?

    Thanks
    Abhijit

    Leave a comment:


  • nilshomer
    replied
    Originally posted by gen2prot View Post
    Hello,

    I gave the following command using the Picard tool Sortsam

    java -jar SortSam.jar I=../test/testsam.sam O=../test/sortedtest.sam SO=queryname

    My Input file looks like this:

    @HD VN:1.0 SO:sorted
    @PG ID:TopHat VN:1.0.13 CL:/share/apps/bin/tophat -o ./s1 --solexa1.3-quals -p 2 GeneIndex /home/asanyal/data/Flydata/Exp_100423/100423_HWI-EAS313_0001_61G2CAAXX.birchlerj/s_1_sequence.txt
    HWI-EAS313_0001:1:80:8942:6680#0 0 FBgn0000003 1 3 42M * 0 0 CGGACTGGAAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGA GGGFGGGGGGGFFEGGGGGGGFGGGGGGDDGFGGGGGGGGFE NM:i:2
    HWI-EAS313_0001:1:108:8254:11808#0 0 FBgn0000003 9 3 42M * 0 0 AAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGAGGTCTGAT C::?>ACCCCD?EDEB=EEEEEECEE?:E??@C@CEBED=4? NM:i:0

    However, I get the following error message.

    Exception in thread "main" net.sf.samtools.SAMFormatException: Error parsing text SAM file. Empty sequence dictionary.; Line 3
    Line: HWI-EAS313_0001:1:80:8942:6680#0 0 FBgn0000003 1 3 42M * 0 0 CGGACTGGAAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGA GGGFGGGGGGGFFEGGGGGGGFGGGGGGDDGFGGGGGGGGFE NM:i:2

    Do I have to give the program the reference sequences? Or do I need to create a sequence dictionary using CreateSequenceDictionary

    Thanks
    Abhijit

    There are no "SQ" fields in your SAM file. You could try giving it the reference sequence if they are not present.

    Leave a comment:


  • gen2prot
    replied
    Hello,

    I gave the following command using the Picard tool Sortsam

    java -jar SortSam.jar I=../test/testsam.sam O=../test/sortedtest.sam SO=queryname

    My Input file looks like this:

    @HD VN:1.0 SO:sorted
    @PG ID:TopHat VN:1.0.13 CL:/share/apps/bin/tophat -o ./s1 --solexa1.3-quals -p 2 GeneIndex /home/asanyal/data/Flydata/Exp_100423/100423_HWI-EAS313_0001_61G2CAAXX.birchlerj/s_1_sequence.txt
    HWI-EAS313_0001:1:80:8942:6680#0 0 FBgn0000003 1 3 42M * 0 0 CGGACTGGAAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGA GGGFGGGGGGGFFEGGGGGGGFGGGGGGDDGFGGGGGGGGFE NM:i:2
    HWI-EAS313_0001:1:108:8254:11808#0 0 FBgn0000003 9 3 42M * 0 0 AAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGAGGTCTGAT C::?>ACCCCD?EDEB=EEEEEECEE?:E??@C@CEBED=4? NM:i:0

    However, I get the following error message.

    Exception in thread "main" net.sf.samtools.SAMFormatException: Error parsing text SAM file. Empty sequence dictionary.; Line 3
    Line: HWI-EAS313_0001:1:80:8942:6680#0 0 FBgn0000003 1 3 42M * 0 0 CGGACTGGAAGGTTGGCAGCTTCTGTAATCACGCTTCTGTGA GGGFGGGGGGGFFEGGGGGGGFGGGGGGDDGFGGGGGGGGFE NM:i:2

    Do I have to give the program the reference sequences? Or do I need to create a sequence dictionary using CreateSequenceDictionary

    Thanks
    Abhijit

    Leave a comment:


  • gen2prot
    replied
    Thank you.

    Leave a comment:


  • nilshomer
    replied
    Originally posted by gen2prot View Post
    Hello nilshomer,

    I downloaded picard. I have the .jar files on MAC osx 10.6. Yet these jar files won't open. I have them saved on the Desktop. How do I run it?

    Thanks
    Abhijit
    I am assuming you have familiarity with the Terminal and a Unix-based environment. If this is wrong, you need to become familiar with these environments (search this site for recommended books and tutorials). I cannot teach you how to use the Terminal and such basic questions.

    Use the command for the respective jar:
    Code:
    java -jar SortSam.jar

    Leave a comment:


  • gen2prot
    replied
    Hello nilshomer,

    I downloaded picard. I have the .jar files on MAC osx 10.6. Yet these jar files won't open. I have them saved on the Desktop. How do I run it?

    Thanks
    Abhijit

    Leave a comment:


  • nilshomer
    replied
    Originally posted by gen2prot View Post
    Hello All,

    Does anybody know how can I sort the .sam file on the basis of the first column? That is the column containing the unique read identifiers? Right now its sorted on the 3rd.

    Thanks
    Abhijit
    SAMtools and Picard will both sort by read name. See their documentation.

    Leave a comment:


  • gen2prot
    replied
    Hello All,

    Does anybody know how can I sort the .sam file on the basis of the first column? That is the column containing the unique read identifiers? Right now its sorted on the 3rd.

    Thanks
    Abhijit

    Leave a comment:


  • bair
    replied
    denovo on sam format

    Dear all,

    I have alignment results in bam file which includes pair-end, mate-pair reads in different length (101 and 35, 36bp). Does anybody know that Soap or other denovo program can handle with bam format directly or I have to use the raw reads files?

    Many thanks!

    Leave a comment:


  • menenuh
    replied
    non-unique reads

    Hello,
    In my sam file I have both unique and non-unique reads. What happens to non-unique reads when I call SNPs from the sam file? Are they included in the SNP calling process?

    thanks

    Leave a comment:


  • RockChalkJayhawk
    replied
    Originally posted by nilshomer View Post
    Perfect!
    Thanks Nils! Youre the best!

    Leave a comment:


  • nilshomer
    replied
    Originally posted by RockChalkJayhawk View Post
    So in that case, my MRNM does not equal "=" OR MRNM equals "=" and the difference between POS and MPOS > 1 million.

    Is this correct?
    Perfect!

    Leave a comment:

Latest Articles

Collapse

  • SEQadmin2
    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
    by SEQadmin2


    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

    The systematic characterization of the human proteome has
    ...
    07-20-2026, 11:48 AM
  • SEQadmin2
    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
    by SEQadmin2



    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
    ...
    07-09-2026, 11:10 AM
  • SEQadmin2
    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
    by SEQadmin2



    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
    07-08-2026, 05:17 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 07-24-2026, 12:17 PM
0 responses
19 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-23-2026, 11:41 AM
0 responses
18 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-20-2026, 11:10 AM
0 responses
25 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-13-2026, 10:26 AM
0 responses
38 views
0 reactions
Last Post SEQadmin2  
Working...