Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • breakdancer empty cfg (no output from bam2cfg) - Problem Solved

    I spent hours figuring out why bam2cfg does not work for my bam. Here's what I found. It may not apply to your case depending on what your bam file is like.

    My bam file failed bam2cfg because the @RG header does not have the LB tag.

    Solution 1: change the header line:

    this won't work
    @RG ID:s_1 PL:Illumina SM:88LN
    this will work
    @RG ID:s_1 PL:Illumina SM:88LN LB:LB_88LN

    Solution 2: However, I did not want to change my bam file, so I modified bam2cfg.pl as follows (commenting out the first and add the second):
    #if(/^\@RG/){ #getting RG=>LIB mapping from the bam header
    if (0) {

    AND use the -f flag
    bam2cfg -g -h -f rg.txt ......

    in rg.txt:
    s_1 LB_88LN

    OR, if you like:
    s_1\tLB_88LN(EOF)

    NOTE: s_1 is your ReadGroup. In the sam file, each read comes with an RG tag (among the last columns). If you don't have RG tags on reads, then probably you wouldn't have an error from bam2cfg in the first place.


    THE BUG: -f flag does not work when you have the @RG header line. The header overrides your -f file. That's why i had to modify bam2cfg.pl.

Latest Articles

Collapse

  • seqadmin
    Essential Discoveries and Tools in Epitranscriptomics
    by seqadmin


    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
    Today, 07:01 AM
  • 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

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 04-11-2024, 12:08 PM
0 responses
37 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 10:19 PM
0 responses
41 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 09:21 AM
0 responses
35 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-04-2024, 09:00 AM
0 responses
54 views
0 likes
Last Post seqadmin  
Working...
X