Closed HenrikBengtsson closed 8 years ago
This is because the read group CL
in the BAM header carries information of the full system call used to call bowtie2
and they differ when called with compressed and non-compress FASTQ files, e.g.
> all.equal(getHeader(bamZ), getHeader(bam))
[1] "Component \"text\": Component \"@PG\": 1 string mismatch"
> getHeader(bam)$text$`@PG`
[1] "ID:bowtie2"
[2] "PN:bowtie2"
[3] "VN:2.2.6"
[4] "CL:\"/home/shared/cbc/software/bowtie2-latest/bowtie2-align-s --wrapper basic-0 -x src/refIndex/lambda_virus -S reads_1.sam -U src/reads_1.fq\""
> getHeader(bamZ)$text$`@PG`
[1] "ID:bowtie2"
[2] "PN:bowtie2"
[3] "VN:2.2.6"
[4] "CL:\"/home/shared/cbc/software/bowtie2-latest/bowtie2-align-s --wrapper basic-0 -x src/refIndex/lambda_virus -S reads_1.sam -U /tmp/386553.unp\""
This is an example of a problem behind Issue #25.
Package test
tests/Bowtie2Alignment,SE.R
now gives an error:with