Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Cannot get specific sample IDs in SAM alignment using Bowtie2

    Hi,
    I am trying to map WGS sample data to a set of reference genomes (bacterial) using Bowtie2. I have read the manual and have included the --rg-id option but if I am understanding it correctly, this requires that you specify a specific sample ID. I have hundreds of samples and cannot imagine that this is the only way to include that information in the alignment file.

    This is what I am doing:
    bowtie2 -D 20 -R 3 -N 0 -L 20 -i S,1,0.50 -q --rg-id <text?> -x ref.Index -1 reads_1.fastq -2 reads_2.fastq -S reads_mapped.sam

    Whatever is written after --rg-id is included verbatim after @RG and RG:Z: Is there some way to reference the correct position in the fastq file in the command above to include the specific sample ids?

    Thank you!

  • #2
    Read group IDs are independent of positions in a file, so no, that's not possible and would rather defeat the purpose of read groups. The purpose of read groups is to be able to keep groups of alignments together for downstream processing (in practice, this just means variant calling) depending on the original sample they came from, library batch, machine used to sequence them, etc.. None of those things would vary within an alignment file.

    Comment


    • #3
      Thank you for your answer. I apologize that I am slow, and perhaps I am asking the wrong question. I would like to be able to identify the sample identities within the read groups because I am hoping to be able to link the identity/location of specific variants with other sample qualities.

      Comment


      • #4
        You have the nesting reversed. Read groups are nested in samples, not samples in read groups (though a read group can be a sample).

        Comment


        • #5
          Or rather, read group IDs are nested within sample IDs.

          Comment

          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...
            04-22-2024, 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-25-2024, 11:49 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-24-2024, 08:47 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          62 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Working...
          X