Closed kiwiroy closed 4 years ago
The barcode expected for the sample can be included in the @RG header line as per Section 1.3 of SAMv1.pdf
@RG
This pull request ensures that bambi adds BC:barcode to each @RG when using the i2b command when a --barcode-file is supplied.
BC:barcode
i2b
--barcode-file
e.g. the following
@RG ID:1#0 DT:2011-03-23T00:00:00+0000 PU:160919_hiseq2500_4966_FC_1#0 LB:TestLibrary PG:SCS SM:TestSample CN:SC PL:ILLUMINA DS:Study TestStudy @RG ID:1#1 DT:2011-03-23T00:00:00+0000 PU:160919_hiseq2500_4966_FC_1#1 LB:TestLibrary1 PG:SCS SM:TestSample1 CN:SC PL:ILLUMINA DS:Study TestStudy
becomes
@RG ID:1#0 DT:2011-03-23T00:00:00+0000 PU:160919_hiseq2500_4966_FC_1#0 LB:TestLibrary PG:SCS SM:TestSample CN:SC PL:ILLUMINA DS:Study TestStudy BC:NN-NN @RG ID:1#1 DT:2011-03-23T00:00:00+0000 PU:160919_hiseq2500_4966_FC_1#1 LB:TestLibrary1 PG:SCS SM:TestSample1 CN:SC PL:ILLUMINA DS:Study TestStudy BC:GT-AG
Thanks for this, I'll review it as soon as I can.
Awesome. Thank you.
The barcode expected for the sample can be included in the
@RG
header line as per Section 1.3 of SAMv1.pdfThis pull request ensures that bambi adds
BC:barcode
to each@RG
when using thei2b
command when a--barcode-file
is supplied.e.g. the following
becomes