Header Leaderboard Ad

Collapse

Obtain Read Group from Bam file

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MurielGB
    replied
    Oh great !!
    Thanks a lot !

    Leave a comment:


  • dpryan
    replied
    Code:
    samtools view -H ${OUTPUT}.bam | grep "^@RG" >RG_${OUTPUT}
    You only need the header, so no need to output the whole thing.

    Leave a comment:


  • MurielGB
    started a topic Obtain Read Group from Bam file

    Obtain Read Group from Bam file

    Hello,
    Is it possible to obtain the read group of a bam file ?
    I am doing this by converting bam into sam (see below) but I would like to do it directly on the bam file because converting is long !
    Thanks a lot !

    #samtools view -h ${OUTPUT}.bam > ${OUTPUT}.bam.sam
    #grep "^@RG" ${OUTPUT}.bam.sam > RG_${OUTPUT}

Latest Articles

Collapse

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 06-07-2023, 07:14 AM
0 responses
11 views
0 likes
Last Post seqadmin  
Started by seqadmin, 06-06-2023, 01:08 PM
0 responses
11 views
0 likes
Last Post seqadmin  
Started by seqadmin, 06-01-2023, 08:56 PM
0 responses
164 views
0 likes
Last Post seqadmin  
Started by seqadmin, 06-01-2023, 07:33 AM
0 responses
299 views
0 likes
Last Post seqadmin  
Working...
X