Question: Is there any way to avoid adding the PG tag while creating a SAM output from BWA ?
0
gravatar for lakhujanivijay
9 months ago by
lakhujanivijay5.2k
India
lakhujanivijay5.2k wrote:

Hi

Is there any way to avoid adding the PG tag while creating a SAM output from BWA ? The only option I could think of is to use samtools reheader and adding a new header without the PG tag. I am wondering if that would be possible during the mapping step itself.

bwa sam pg • 197 views
ADD COMMENTlink modified 9 months ago by Devon Ryan96k • written 9 months ago by lakhujanivijay5.2k
1
gravatar for Devon Ryan
9 months ago by
Devon Ryan96k
Freiburg, Germany
Devon Ryan96k wrote:

You can pipe the output through grep and use grep -v @PG, but the question then becomes why you would actually want to do that. It's usually best to keep that information in there in case you need it down the line.

ADD COMMENTlink written 9 months ago by Devon Ryan96k

Yep, I also suggest to keep it in case you mislable the file accidentlly so this entry might help you figuring out what the file actually contains and how it was created.

ADD REPLYlink written 9 months ago by ATpoint38k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 885 users visited in the last hour