Is there any way to avoid adding the PG tag while creating a SAM output from BWA ?
1
0
Entering edit mode
4.4 years ago

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 • 837 views
ADD COMMENT
1
Entering edit mode
4.4 years ago

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 COMMENT
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 1997 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6