From: James B. <jk...@sa...> - 2015-08-19 13:36:24
|
On Wed, Aug 19, 2015 at 02:57:47PM +0300, Artem Tarasov wrote: > There's another hack you can use - store information in place of the ending > '\0' of the read name, setting the byte back to zero before writing out. > This requires a bit more care but you get 8 bits of space instead of just 4. That's horrid! Although it reminds me of an equally horrid hack I did to read names in io_lib. For machines without unaligned word access (eg SPARC) I made the cigar ops aligned by varying the number of read-name nul termination bytes in the in-memory BAM representation from 1 to 4. :-) I'm not advising using it as a way to hide information though! James -- James Bonfield (jk...@sa...) | Hora aderat briligi. Nunc et Slythia Tova | Plurima gyrabant gymbolitare vabo; A Staden Package developer: | Et Borogovorum mimzebant undique formae, https://sf.net/projects/staden/ | Momiferique omnes exgrabure Rathi. -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE. |