pax_global_header00006660000000000000000000000064136662205170014522gustar00rootroot0000000000000052 comment=b642639117eafedc760d8b84c0d2c4872b0da084 samblaster-v.0.1.26/000077500000000000000000000000001366622051700142115ustar00rootroot00000000000000samblaster-v.0.1.26/LICENSE.txt000066400000000000000000000021001366622051700160250ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2013-2020 Gregory G. Faust Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. samblaster-v.0.1.26/Makefile000066400000000000000000000010271366622051700156510ustar00rootroot00000000000000# Determine the samblaster build number BUILDNUM = 26 # INTERNAL = TRUE OBJS = samblaster.o sbhash.o ifdef INTERNAL PROG = samblaster$(BUILDNUM) CCFLAGS = -Wall -Winline -Wliteral-suffix -O0 -g -D BUILDNUM=$(BUILDNUM) else PROG = samblaster CCFLAGS = -Wall -O3 -D BUILDNUM=$(BUILDNUM) endif CC = gcc CPP = g++ CFLAGS = $(CCFLAGS) -std=gnu99 CPPFLAGS = $(CCFLAGS) SAMBLASTER: $(PROG) $(PROG): $(OBJS) $(CPP) $(LDFLAGS) -o $@ $(OBJS) %.o: %.cpp $(CPP) $(CPPFLAGS) -c $< -o $@ clean: rm -f $(PROG) *.o *.co *.linkinfo samblaster-v.0.1.26/README.md000066400000000000000000000272171366622051700155010ustar00rootroot00000000000000# *samblaster* **Written by:** Greg Faust (gf4ea@virginia.edu) [Ira Hall Lab, University of Virginia](http://faculty.virginia.edu/irahall/) **Please cite:** [Faust, G.G. and Hall, I.M., “*SAMBLASTER*: fast duplicate marking and structural variant read extraction,” *Bioinformatics* Sept. 2014; **30**(17): 2503-2505.](http://bioinformatics.oxfordjournals.org/content/30/17/2503) **Also see:** [SAMBLASTER_Supplemental.pdf](https://www.dropbox.com/s/s7vvdtf2gmytvay/SAMBLASTER_Supplemental.pdf?dl=0) for additonal discussion and statistics about the duplicates marked by *samblaster* vs. *Picard* using the NA12878 sample dataset. Click the preceeding link or download the file from this repository. --- **Current version:** 0.1.26 Support for Linux and OSX (Version 10.7 or higher). ## Summary *samblaster* is a fast and flexible program for marking duplicates in __read-id grouped1__ paired-end SAM files. It can also optionally output discordant read pairs and/or split read mappings to separate SAM files, and/or unmapped/clipped reads to a separate FASTQ file. When marking duplicates, *samblaster* will require approximately 20MB of memory per 1M read pairs. ## Installation *samblaster* is self contained and therefore has no installation dependencies beyond **g++** and **make**. *samblaster* can be downloaded from the **_releases_** tab or manually downloaded via *git clone*. Afterwards, simply use *make* and copy *samblaster* to a directory in your path. For example: ~~~~~~~~~~~~~~~~~~ git clone git://github.com/GregoryFaust/samblaster.git cd samblaster make cp samblaster /usr/local/bin/. ~~~~~~~~~~~~~~~~~~ ## Usage See the [SAM File Format Specification](http://samtools.sourceforge.net/SAMv1.pdf) for details about the SAM alignment format. By default, *samblaster* reads SAM input from **stdin** and writes SAM to **stdout**. Input SAM files usually contain paired end data (see [Duplicate Identification](#DupIdentification) below), must contain a sequence header, and must be __read-id grouped1__. By default, the output SAM file will contain all the alignments in the same order as the input, with duplicates marked with SAM FLAG 0x400. The **--removeDups** option will instead remove duplicate alignments from the output file. __1A read-id grouped__ SAM file is one in which all alignments for a read-id (QNAME) are grouped together in adjacent lines. Aligners naturally produce such files. They can also be created by sorting a SAM file by read-id. But as shown below, sorting the input to *samblaster* by read-id is not required if the alignments are already grouped. **COMMON USAGE SCENARIOS:** To take input alignments directly from _bwa mem_ and output to _samtools view_ to compress SAM to BAM: ``` bwa mem samp.r1.fq samp.r2.fq | samblaster | samtools view -Sb - > samp.out.bam ``` When using the *bwa mem* **-M** option, also use the *samblaster* **-M** option: ``` bwa mem -M samp.r1.fq samp.r2.fq | samblaster -M | samtools view -Sb - > samp.out.bam ``` To additionally output discordant read pairs and split read alignments: ``` bwa mem samp.r1.fq samp.r2.fq | samblaster -e -d samp.disc.sam -s samp.split.sam | samtools view -Sb - > samp.out.bam ``` To pull split reads and discordants read pairs from a pre-existing BAM file with duplicates already marked: ``` samtools view -h samp.bam | samblaster -a -e -d samp.disc.sam -s samp.split.sam -o /dev/null ``` To process a BAM file of singleton long reads to pull split and/or unmapped reads with/without marking duplicates: ``` samtools view -h samp.bam | samblaster --ignoreUnmated [-e] --maxReadLength 100000 [-s samp.split.sam] [-u samp.umc.fasta] | samtools view -Sb - > samp.out.bam samtools view -h samp.bam | samblaster --ignoreUnmated -a [-e] [-s samp.split.sam] [-u samp.umc.fasta] -o /dev/null ``` --- **OPTIONS:** Default values enclosed in square brackets []
Input/Output Options:
-i --input           FILE Input sam file [stdin].
-o --output          FILE Output sam file for all input alignments [stdout].
-d --discordantFile  FILE Output discordant read pairs to this file. [no discordant file output]
-s --splitterFile    FILE Output split reads to this file abiding by paramaters below. [no splitter file output]
-u --unmappedFile    FILE Output unmapped/clipped reads as FASTQ to this file abiding by parameters below. [no unmapped file output].
                          Requires soft clipping in input file.  Will output FASTQ if QUAL information available, otherwise FASTA.

Other Options:
-a --acceptDupMarks       Accept duplicate marks already in input file instead of looking for duplicates in the input.
-e --excludeDups          Exclude reads marked as duplicates from discordant, splitter, and/or unmapped file.
-r --removeDups           Remove duplicates reads from all output files. (Implies --excludeDups).
   --addMateTags          Add MC and MQ tags to all output paired-end SAM lines.
   --ignoreUnmated        Suppress abort on unmated alignments. Use only when sure input is read-id grouped,
                          and either paired-end alignments have been filtered or the input file contains singleton reads.
                          --ignoreUnmated is not recommended for general use on paired-end data. It disables checks that detect incorrectly sorted input.
-M                        Compatibility mode (details below); both FLAG 0x100 and 0x800 denote supplementary (chimeric). Similar to bwa mem -M option.
   --maxReadLength    INT Maximum allowed length of the SEQ/QUAL string in the input file. [500]
   --maxSplitCount    INT Maximum number of split alignments for a read to be included in splitter file. [2]
   --maxUnmappedBases INT Maximum number of un-aligned bases between two alignments to be included in splitter file. [50]
   --minIndelSize     INT Minimum structural variant feature size for split alignments to be included in splitter file. [50]
   --minNonOverlap    INT Minimum non-overlaping base pairs between two alignments for a read to be included in splitter file. [20]
   --minClipSize      INT Minumum number of bases a mapped read must be clipped to be included in unmapped file. [20]

-h --help                 Print samblaster help to stderr.
-q --quiet                Output fewer statistics.
   --version              Print samblaster version number to stderr.
--- **ALIGNMENT TYPE DEFINITIONS:** Below, we will use the following definitions for alignment types. Starting with *samblaster* release 0.1.22, these definitions are affected by the use of the **-M** option. By default, *samblaster* will use the current definitions of alignment types as specified in the [SAM Specification](http://samtools.sourceforge.net/SAMv1.pdf). Namely, alignments marked with FLAG 0x100 are considered *secondary*, while those marked with FLAG 0x800 are considered *supplementary*. If the **-M** option is specified, alignments marked with either FLAG 0x100 or 0x800 are considered *supplementary*, and no alignments are considered *secondary*. A *primary* alignment is always one that is neither *secondary* nor *supplementary*. Only *primary* and *supplementary* alignments are used to find chimeric (split-read) mappings. The **-M** flag is used for backward compatibility with older SAM/BAM files in which "chimeric" alignments were marked with FLAG 0x100, and should also be used with output from more recent runs of *bwa mem* using its **-M** option. --- **DUPLICATE IDENTIFICATION:** A **duplicate** read pair is defined as a pair that has the same *signature* for each mapped read as a previous read pair in the input SAM file. The *signature* is comprised of the combination of the sequence name, strand, and the reference offset where the 5' end of the read would fall if the read were fully aligned (not clipped) at its 5' end. The 5' aligned reference position is calculated using a combination of the POS field, the strand, and the CIGAR string. This definition of *signature* matches that used by *Picard MarkDuplicates*. 1. For pairs in which both reads are mapped, both signatures must match. 2. For pairs in which only one side is mapped (an "orphan"), the signature of the mapped read must match a previously seen orphan. Starting with *samblaster* 0.1.25, forward and reverse strand orphans/singletons are allowed to be duplicates of each other. In an orphan pair, the unmapped read need not appear in the input file. In addition, mapped non-paired singleton (possible long) read alignments will be treated the same as an orphan pair with a missing unmapped read. 3. No doubly unmapped pair will be marked as a duplicate. 4. Any *secondary* or *supplementary* alignment associated with a duplicate *primary* alignment will also be marked as a duplicate. --- **DISCORDANT READ PAIR IDENTIFICATION:** A **discordant** read pair is one which meets all of the following criteria: 1. Both side of the read pair are mapped (neither FLAG 0x4 or 0x8 is set). 2. The *properly paired* FLAG (0x2) is not set. 3. *Secondary* or *supplementary* alignments are never output as discordant, although a discordant read pair can have such alignments associated with them. 4. Duplicate read pairs that meet the above criteria will be output as discordant unless the **-e** option is used. --- **SPLIT READ IDENTIFICATION:** **Split Read** alignments are derived from a single read when one portion of the read aligns to a different region of the reference genome than another portion of the read. Such pairs of alignments often define a structural variant (SV) breakpoint, and are therefore useful input to SV detection algorithms such as [LUMPY](https://github.com/arq5x/lumpy-sv/). *samblaster* uses the following strategy to identify split reads alignments. 1. Identify reads that have between two and **--maxSplitCount** *primary* and *supplementary* alignments. 2. Sort these alignments by their strand-normalized position along the read. 3. Two alignments are output as splitters if they are adjacent on the read, and meet these criteria: - each covers at least **--minNonOverlap** base pairs of the read that the other does not. - the two alignments map to different reference sequences and/or strands. - the two alignments map to the same sequence and strand, and represent a SV that is at least **--minIndelSize** in length, and have at most **--maxUnmappedBases** of un-aligned base pairs between them. 4. Split read alignments that are part of a duplicate read will be output unless the **-e** option is used. --- **UNMAPPED/CLIPPED READ IDENTIFICATION:** An **unmapped** or **clipped** read is a *primary* alignment that is unaligned over all or part of its length respectively. The lack of a full alignment may be caused by a SV breakpoint that falls within the read. Therefore, *samblaster* will optionally output such reads to a FASTQ file for re-alignment by a tool, such as [YAHA](https://github.com/GregoryFaust/yaha/), geared toward finding split-read mappings. *samblaster* applies the following strategy to identify and output unmapped/clipped reads: 1. An **unmapped** read has the *unmapped read* FLAG set (0x4). 2. A **clipped** read is a mapped read with a CIGAR string that begins or ends with at least **--minClipSize** unaligned bases (CIGAR code S and/or H), and is not from a read that has one or more *supplementary* alignments. 3. In order for *samblaster* to output the entire sequence for clipped reads, the input SAM file must have soft clipped primary alignments. 4. *samblaster* will output unmapped/clipped reads into a FASTQ file if QUAL information is available in the input file, and a FASTA file if not. 5. Unmapped/clipped reads that are part of a duplicate read pair will be output unless the **-e** option is used. samblaster-v.0.1.26/SAMBLASTER_Supplemental.pdf000066400000000000000000003266401366622051700211050ustar00rootroot00000000000000%PDF-1.3 % 4 0 obj << /Length 5 0 R /Filter /FlateDecode >> stream x}Gry.1Ob 4 EW*Bz&}]}>D{fe]_X]U{sՏ qsr|ߪ;^o?˹n|jgr?r9Or|^1؂]e/W6N=r?o"Z8@?߿yt_̈́zhw9se*ڏ~{z'O^xzzďOקOmc1CF7_\0<#HL|asZ[ @Cp | +UBWҳ:\3Y7\\&2(VTOu& EFhEb'öϟ!7B6g޾r?9]߃@ €uXƖ`I_ WR_pM4O߀(+|L[ŲopH; m<.s5^+NuK3.`AZb5uR?>}80Ҷ|}UޢNMؗ ldt|&ХH5$8ԋT{b?SxΐFđWq\| Ac'B: ͘I;8JK`>?#6|oN߻FQCrPJWױ9N}̽BZ/P["$XIފX)~OJ"nDC$5%/A"8_cСZ1=0tMK1+6s "ZVs|C&摘=8'?^ oxG?Fa@( Ou#b.TwmFu,=CN:DCoa Ah~3libb@9y{!#ou/Œ}bz p.gh.ZIiBFzKsNUM"=随_.2ZneG| Apқ2ٜt*+A#nN{8BbB:ԥ +r4e0/Ynh`.}]~a{azJ&R*Btkp:(jS}cy{hcV=Ȯ׏y[\N['`xD}CQY2JVf_5NW>CPvI9z,b䃧:)E 10R)=WDBL,T4M =U%T6 !xX}a2AUjq(k SY|w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VkL~\2a4b]g[Vr\PsF¯pc@ uuq3~HTx3}֐uxqr ՀEX%S/I39'Jh |Ȕ(xdkD+t }k>1lޅ= nIOe-@, ~.d/5r!f5 x_vgų@EnMHR6TJ:=Ø6AUky9x}t;|J NzAjD5 2{H+i#)]#r,Һ7ήguj<9P7,{G{<6&lHgn쾎GMm6 6-跩T䂽Sӕұ-\z5L]$*bZ15ڦd؞m∁roUàjpdxl<.&{8t UGYQ;iLDvh8BUZ GP.@Kaqk}j(+j5ŗӃ3gd9L0#! •DKe8TéɻMΫyc!z4AavlTMSh7x8!lMQ=;%d5/&T1\I*SU6F'#Ihx[m.dmx*,%NdFrk(oԔ,[*~ᨵ_Ъ8|5Y?4ƴ&AA"Frt6SOP lzé ]eBG5\Ss^5|G}#}z{ endstream endobj 5 0 obj 10993 endobj 2 0 obj << /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 612 792] >> endobj 6 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R /Cs2 16 0 R >> /Font << /TT3.1 11 0 R /TT4.1 13 0 R /TT1.0 8 0 R /TT6.1 18 0 R /TT5.1 15 0 R /TT2.0 9 0 R >> >> endobj 19 0 obj << /Length 20 0 R /N 3 /Alternate /DeviceRGB /Filter /FlateDecode >> stream xwTSϽ7" %z ;HQIP&vDF)VdTG"cE b PQDE݌k 5ޚYg}׺PtX4X\XffGD=HƳ.d,P&s"7C$ E6<~&S2)212 "įl+ɘ&Y4Pޚ%ᣌ\%g|eTI(L0_&l2E9r9hxgIbטifSb1+MxL 0oE%YmhYh~S=zU&ϞAYl/$ZUm@O ޜl^ ' lsk.+7oʿ9V;?#I3eE妧KD d9i,UQ h A1vjpԁzN6p\W p G@ K0ށiABZyCAP8C@&*CP=#t] 4}a ٰ;GDxJ>,_“@FXDBX$!k"EHqaYbVabJ0՘cVL6f3bձX'?v 6-V``[a;p~\2n5׌ &x*sb|! ߏƿ' Zk! $l$T4QOt"y\b)AI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zk0tRUՈ!% jf1a⻆}BRh ڶ:@tWRf:[h:)TcP - [IvbP**BgGF&e1zƷ%Xh%ڦ&닌濰x;V,OQsmX'ajK'ƩjcKO'Nt Ѡ&zf>-z eVQa} GB5?[[#a*Cq.{/I]_}?5^Z@EhcCCಝZY-hhcb3MH>QRgKQDЋq4I7Uy:CpĔ܊gYAj(EQ?'>m CC:xc+B^@zq5qu*p_\EQ€޳C+fw7)={1HZʲ:[MM)+!h)- h),!褪BARK|MHgr `U07ERֆ'), Q\kPG5ҙCmJa3F-JyPc•1:obCbdaEzs4k1 0Q!;&[N /̀ ;uӲ eK-岄O\5};[oZY"q9D$/u\}Du< fr䰯9zqv8>ț JS}=(YR$)ب p.zqEm7c96DJY% \EA>/4Z(У. Y@N]soUWdAC@鱺х!VF(\'3ASQmyXGr_"(9D,`IQuVjH]7#׈%s|aXM2":V޺ 8̏%V JC@DDiŁɡjYRU'|b,%^~r!X\MI< %TQZWKFqZl-=:"ZMYYG>_~U^i%mUi'vxG(G]/A:I1 huhME:่esW i_~U]ͬ"-jߑB y3^,EIjOB0 [0lLU!4_SmRSF R+@]G"A\m4qk*U]Ԛ 7TFJ!ŋ٪t,ҕRW0,`?ovx.ۊBb\\$٤բ~bBc^:iMH">NUQRD U9k]E\ȽּDUD!9J6>e\J4Ł4v)*^J%J6|Zub)OS nl@ܮf\%؝T߾.ezb~pFn.] syrZⅬV8ҌrR1,+})tʼM"DL`cxs> endobj 26 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R /Cs2 16 0 R >> /Font << /TT6.1 18 0 R /TT3.1 11 0 R /TT7.1 28 0 R /TT2.0 9 0 R /TT1.0 8 0 R /TT5.1 15 0 R /TT4.1 13 0 R >> >> endobj 3 0 obj << /Type /Pages /MediaBox [0 0 612 792] /Count 2 /Kids [ 2 0 R 23 0 R ] >> endobj 29 0 obj << /Type /Catalog /Pages 3 0 R >> endobj 8 0 obj << /Type /Font /Subtype /TrueType /BaseFont /WXSZGT+LucidaGrande-Bold /FontDescriptor 30 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 169 /Widths [ 330 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 840 ] >> endobj 30 0 obj << /Type /FontDescriptor /FontName /WXSZGT+LucidaGrande-Bold /Flags 32 /FontBBox [-1086 -440 1734 1169] /ItalicAngle 0 /Ascent 967 /Descent -211 /CapHeight 723 /StemV 150 /XHeight 536 /StemH 100 /AvgWidth -523 /MaxWidth 1750 /FontFile2 31 0 R >> endobj 31 0 obj << /Length 32 0 R /Length1 8432 /Filter /FlateDecode >> stream xZ}tUGw;ITHWS &=$i3j t T,LQs<wfvgXA3 0?YzeY!W] ,猳m{{wUYrMY(J"5mYKV H ޿ZN3*UVܳ,UY&ݳ!]1"!ҚhHV?<l^ڱPye-#yy˲طcj~7pيm< C*24 5U:"C2 L3yc|k,Ҵ~ n/uq\Åus!sw(5p.ݧ$@Q^D 98Y&@TTQ/$ XpMzO.x(uIv.@l(]'_ޱ|re._2\G=KP,Z=Wh_xHm6Mm;focmV孭uyBK~=z F32G)ӳja*U[7HJExXI cv5aP7+*}]:aA`H'?q,p\^ŸIɘ^> ƎwI t0{S;u/:>ތl?+@HaOî@=:;:Eg{rwuݑ]Vқf5G=xǝ`73 ox",;ǿqg۠z=݂֝gbGvuz)nv ay|QIK _XPzK>< mAqH'F;}$8"f&x\v!EɅ^)_#tqTЃx?=i>(r1(+5*~u%4=:+:ޭuO `C/LSWU\U5Ǫ6d'72p#a/kgi"Vzt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ȋ @"5}(d~ ص7"ixS<+yp%xn|U뙝3^r[32~B(BI1;n$*B F8Rz0|`MWkrɶmm*t-.iNڊ?XU4|ѩ굫~c啑\Ʀ_X|4հ}k'Ynrr#Lg.ڷ.F~nwiܳɓqT2?T?\ב?r)S5vHvq/vVrҷ~{ߋsV>43=uXσu}k% 5G̑m,v'f endstream endobj 40 0 obj 17411 endobj 28 0 obj << /Type /Font /Subtype /TrueType /BaseFont /AVOMBF+Calibri /FontDescriptor 41 0 R /ToUnicode 42 0 R /FirstChar 33 /LastChar 66 /Widths [ 662 349 525 525 479 525 391 250 226 525 799 498 525 507 252 507 507 507 507 646 579 507 459 423 527 453 229 229 471 335 507 507 507 507 ] >> endobj 42 0 obj << /Length 43 0 R /Filter /FlateDecode >> stream x]M0:nq6` eBi-ɩ$BhF鐦Քq5B}4C3ή߳̋P\ endstream endobj 43 0 obj 452 endobj 41 0 obj << /Type /FontDescriptor /FontName /AVOMBF+Calibri /Flags 4 /FontBBox [-503 -307 1240 964] /ItalicAngle 0 /Ascent 952 /Descent -269 /CapHeight 632 /StemV 0 /XHeight 464 /AvgWidth 521 /MaxWidth 1328 /FontFile2 44 0 R >> endobj 44 0 obj << /Length 45 0 R /Length1 24320 /Filter /FlateDecode >> stream x|w|[jaɲe[eC{Ŗw8;;v;@YJ!PF(@%mib4tmZBs1my{:۶l_N HMD))-ٱU(VlZ!Dr,\sB0\ ,,W߶8K/ûbOPn^%ݴey,]GuMn-ȹ2D@/o55ZoRi򾉛?u$ABþS~G|O!E M?rMDQ9u 8\*.p}\bN.vpm\lb3.s\b5X .s1˸b\,b\,b!\s\㢗y\p1n.pE'\sl.Zhᢙ&.h࢞u\r1.⢒ .ʹ(㢔.(⢐.".\dsE&\s΅4.Rr"d.psE..pr" ;6.\X0saȅ =:.\hPsBɅ .>#.Ň\|?;s7._x?s'..qG.Ż\\q[.~ůoqq_r&\r.~ŏx׹xr*?.^%.^\|r. \|or<\| \F1ƅpcsqԬ8:`DqNQ{4 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,yecđ@ Դ$+^v}jJqB.=<8! ӣq<&ӾyY˪KEupG/⼲/}I t6T]Z*;,*Q=XmЫTZF0}dǜklaW1iMt=$mV;u cJe18aǷhtkߋ>]ݾ1LYB EQPHp'N9OTl]yF`p1GO[+*Jt^ vmBlm37yvG668Z z¶u0FTj{Zv0%Օҹ%,3RX[k׫lzz/UZq> | ݒvxNMyBX^)<#3Q'h<ҊN'iϿT$; z9m!?18jaTXNtj9%)yJs|zbZS;vΤjrUm/ZIev+8A5c;X/< Q@ȳ!{VB$dNh L'MN`T6$)* WJBSJGM&/F{ t@Q{! W e-+jzB L~U݋^W7')kP~YS^Lx8*JQW*ʤq={ω}yGsңC(ZЖCSi Cu*6t${#͓L4)6sǁ=+n-Y]h9xj]A~hi&?]f3"&Bww5׭^e endstream endobj 45 0 obj 13442 endobj 15 0 obj << /Type /Font /Subtype /TrueType /BaseFont /ZXSEQX+Cambria-Bold /FontDescriptor 46 0 R /ToUnicode 47 0 R /FirstChar 33 /LastChar 79 /Widths [ 592 592 639 535 591 308 531 220 592 232 513 365 314 459 469 326 569 461 597 604 597 890 597 591 531 597 337 614 350 573 652 662 705 846 651 551 578 679 592 592 592 520 408 408 232 695 525 ] >> endobj 47 0 obj << /Length 48 0 R /Filter /FlateDecode >> stream x]͎0Fy /&60HQjXG};4R Q ޾C,>kC0ݧnm:<Ҕ/fw~(K};ɞf,4o9vCwvUU8Nenc:=:<=|ۓuSf狺v)wl4K푮?ncvLDuel<51uRyH LEU>#Qz>ow᠎RMr_W@>I+j+AW$ޯ0+z)\l+$le H-k1vs[xHj V B&k!6 Q-(> 1R@MS(B@Na5 S@ x7  *f*ɀ!r#L0rv*Jgƈ)d hQUJ0"ҏ)2E. ""m297*r h"ʌ&[ v4qvӵ0Gm`22g endstream endobj 48 0 obj 520 endobj 46 0 obj << /Type /FontDescriptor /FontName /ZXSEQX+Cambria-Bold /Flags 4 /FontBBox [-1110 -299 1372 1047] /ItalicAngle 0 /Ascent 950 /Descent -222 /C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endstream endobj 55 0 obj 8423 endobj 18 0 obj << /Type /Font /Subtype /TrueType /BaseFont /ZJSPCZ+Calibri-Bold /FontDescriptor 56 0 R /ToUnicode 57 0 R /FirstChar 33 /LastChar 51 /Widths [ 606 537 399 347 355 494 418 226 563 503 537 246 561 246 538 474 537 537 474 ] >> endobj 57 0 obj << /Length 58 0 R /Filter /FlateDecode >> stream x]n0WYZmXXJ JZ5nm&UɒrTh!))c1{B(Cq܇bU *Bp5aW!K@nn09#NBgp##NĂVߛ_p5}JxK~7qBu endstream endobj 58 0 obj 354 endobj 56 0 obj << /Type /FontDescriptor /FontName /ZJSPCZ+Calibri-Bold /Flags 4 /FontBBox [-519 -306 1240 971] /ItalicAngle 0 /Ascent 952 /Descent -269 /CapHeight 632 /StemV 0 /XHeight 469 /AvgWidth 536 /MaxWidth 1328 /FontFile2 59 0 R >> endobj 59 0 obj << /Length 60 0 R /Length1 15904 /Filter /FlateDecode >> stream xy|TϹw}̒LLIf/K6$@ a3 MQ 6XZW-uTZKlij*uM{}fB~޷c{^ƵCˉl!<[o5>^@uk]RX?%DZUNul\isز-4|R L"`z05.Xt 7!or |f 2W..B,XV&V_B(h#DI8`[Jg|O,6V|FU @yz=|v'V 5){/_?UTS4SBˆp_SSoTpjைb')G?(CT~$}{?"8NUC#~! āx8%N8%xMh:^Cx2ⷈc ^B"؈"~}-xI@Fx# ""@GC#`7\#G܇؃Y89LE܃~ Lj?B܅؍؅qv6ĭX7#nB܈徏؉=XZ5awWcmW"@|'(\؂ q)b3ňM u!Z "j@8q!b+s+KK}^b"Db!bb>;X -BC":vD1тhF4! YzDQFD*D%b11 QCD1Q(@#$4lC-TBd"2^'l#MmJ‰HE D"aGVwGeŒ0!B! BuJT*r #8E t1C|qoϥҿJ=S'AB|3b!ğ'#1lĉf=wakE[k NZ xͰo!^Ū_A+; %XE G!rªA4)ߓak5xo8XacG !"ƪ`!Ax}0boBEqbg{X=aLO? [Z ee.ரEMv.4M6L݊ ~nFA7b#v"n&}-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j 63 0 obj (gf4ea) endobj 64 0 obj (Word) endobj 65 0 obj (D:20141223180052Z00'00') endobj 66 0 obj () endobj 67 0 obj [ ] endobj 1 0 obj << /Title 61 0 R /Author 63 0 R /Producer 62 0 R /Creator 64 0 R /CreationDate 65 0 R /ModDate 65 0 R /Keywords 66 0 R /AAPL:Keywords 67 0 R >> endobj xref 0 68 0000000000 65535 f 0000108306 00000 n 0000011110 00000 n 0000030702 00000 n 0000000022 00000 n 0000011089 00000 n 0000011214 00000 n 0000014130 00000 n 0000030842 00000 n 0000036196 00000 n 0000000000 00000 n 0000042160 00000 n 0000000000 00000 n 0000088795 00000 n 0000000000 00000 n 0000075745 00000 n 0000015337 00000 n 0000000000 00000 n 0000098367 00000 n 0000011394 00000 n 0000014109 00000 n 0000014166 00000 n 0000015316 00000 n 0000030400 00000 n 0000015374 00000 n 0000030378 00000 n 0000030507 00000 n 0000000000 00000 n 0000061112 00000 n 0000030792 00000 n 0000031301 00000 n 0000031563 00000 n 0000036175 00000 n 0000036418 00000 n 0000036674 00000 n 0000042139 00000 n 0000043350 00000 n 0000042604 00000 n 0000043330 00000 n 0000043588 00000 n 0000061090 00000 n 0000061955 00000 n 0000061407 00000 n 0000061935 00000 n 0000062190 00000 n 0000075723 00000 n 0000076713 00000 n 0000076097 00000 n 0000076693 00000 n 0000076955 00000 n 0000088773 00000 n 0000089586 00000 n 0000089073 00000 n 0000089566 00000 n 0000089832 00000 n 0000098346 00000 n 0000099057 00000 n 0000098607 00000 n 0000099037 00000 n 0000099297 00000 n 0000108039 00000 n 0000108060 00000 n 0000108126 00000 n 0000108178 00000 n 0000108202 00000 n 0000108225 00000 n 0000108267 00000 n 0000108286 00000 n trailer << /Size 68 /Root 29 0 R /Info 1 0 R /ID [ <88994f60ef2871955da00be86e3ca1c7> <88994f60ef2871955da00be86e3ca1c7> ] >> startxref 108465 %%EOF samblaster-v.0.1.26/samblaster.cpp000066400000000000000000002155231366622051700170620ustar00rootroot00000000000000/* -*- mode: C++ ; indent-tabs-mode: nil ; c-file-style: "stroustrup" -*- Project: samblaster Fast mark duplicates in read-ID grouped SAM file. Also, optionally pull discordants, splitters, and/or unmappend/clipped reads. Author: Greg Faust (gf4ea@virginia.edu) Date: October 2013 Cite: SAMBLASTER: fast duplicate marking and structural variant read extraction GG Faust, IM Hall Bioinformatics 30 (17), 2503-2505 https://academic.oup.com/bioinformatics/article/30/17/2503/2748175 File: samblaster.cpp code file for the main routine and most of the other code. License Information: Copyright 2013-2020 Gregory G. Faust Licensed under the MIT license (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/MIT */ // This define is needed for portable definition of PRIu64 #define __STDC_FORMAT_MACROS #include #include #include #include #include #include #include "sbhash.h" // Rename common integer types. // I like having these shorter name. typedef uint64_t UINT64; typedef uint32_t UINT32; typedef int32_t INT32; // Some helper routines. // mempcpy is a GNU extension and not available everywhere. #ifndef _GNU_SOURCE inline void *mempcpy(void *dest, const void *src, size_t n) { return (char*) memcpy(dest, src, n) + n; } #endif inline bool streq(const char * s1, const char * s2) __attribute__((always_inline)); inline bool streq(const char * s1, const char * s2) { return (strcmp(s1, s2) == 0); } inline bool substr_of(const char * s1, const char * s2) __attribute__((always_inline)); inline bool substr_of(const char * s1, const char * s2) { return (strstr(s1, s2) != NULL); } // Declare error handling routines defined below. void fatalError(const char * errorStr); void fsError(const char * filename); /////////////////////////////////////////////////////////////////////////////// // Runtime Statistics /////////////////////////////////////////////////////////////////////////////// // Stuff needed for timings. // To turn timing off, set the below to 0. #define TIMING 1 #if TIMING // A convenience function for outputing time is seconds in a more useful metric. void fprintTimeSeconds (FILE * out, double seconds, int precision) { double totalseconds = seconds; int hours = seconds/3600.; if (hours > 0) { seconds -= hours * 3600; fprintf(out, "%dH", hours); } int minutes = seconds/60.; if (minutes > 0) { seconds -= minutes * 60; fprintf(out, "%dM", minutes); } if (hours + minutes > 0) { fprintf(out, "%.0fS", seconds); fprintf(out, "(%.*fS)", precision, totalseconds); } else fprintf(out, "%.*fS", precision, totalseconds); } void fprintTimeMicroSeconds (FILE * out, UINT64 microSeconds, int precision) { fprintTimeSeconds(out, ((double)microSeconds/1000000.0), precision); } inline UINT64 diffTVs (struct timeval * startTV, struct timeval * endTV) { return (((endTV->tv_sec - startTV->tv_sec) * 1000000) + (endTV->tv_usec - startTV->tv_usec)); } #include #include #include #endif // TIMING /////////////////////////////////////////////////////////////////////////////// // Split Lines /////////////////////////////////////////////////////////////////////////////// // The structure to store "split" input lines, especially SAM lines. // They form a singly linked list so that we can form groups of them, // and also so that we can keep a freelist of them. // Reference offsets (pos) can be negative or run off the end of a contig due to clipping. // Therefore, we will use a padding strategy. // The space allocated to each contig will be padded by twice the max read length. // This leaves room for both offset underflow and overflow. // And all offsets will be shifted higher by the max read length. // This will eliminate negative offsets and "center" offsets within the offset range for the contig. typedef INT32 pos_t; // We need to pre-define these for the SAM specific fields. typedef UINT64 sgn_t; // Type for signatures for offsets and lengths. // And the type itself for the next pointer. typedef struct splitLine splitLine_t; splitLine_t * splitLineFreeList = NULL; struct splitLine { // General fields for any split line. splitLine_t * next; char * buffer; int bufLen; size_t maxBufLen; char **fields; int numFields; int maxFields; bool split; // Special SAM fields that we need to access as other than strings. // It this were a class, these would be in a subclass. int flag; pos_t pos; int seqNum; pos_t binPos; int binNum; int SQO; int EQO; int sclip; int eclip; int rapos; int raLen; int qaLen; bool CIGARprocessed; bool discordant; bool splitter; bool unmappedClipped; }; // Creator for splitLine splitLine_t * makeSplitLine() { splitLine_t * line = (splitLine_t *)malloc(sizeof(splitLine_t)); line->bufLen = 0; line->maxBufLen = 1000; line->buffer = (char *)malloc(line->maxBufLen+1); line->numFields = 0; line->maxFields = 100; line->fields = (char **)malloc(line->maxFields * sizeof(char *)); return line; } // Destructor for split line. void deleteSplitLine(splitLine_t * line) { free(line->buffer); free(line->fields); free(line); } // Descructor for a list of splitLines void cleanUpSplitLines() { splitLine_t * l = splitLineFreeList; while (l != NULL) { splitLine_t * next = l->next; deleteSplitLine(l); l = next; } } // Like descructor for splitLine except don't free memory. // Instead, put the linked list of objects back on the free list. void disposeSplitLines(splitLine_t * line) { // First find the last line in the list. // Then get rid of them all. splitLine_t * last = line; for (splitLine_t * l = line->next; l!=NULL; l = l->next) last = l; last->next = splitLineFreeList; splitLineFreeList = line; } // Like constuctor, except take struct off free list if there is one. splitLine_t * getSplitLine() { splitLine_t * line; if (splitLineFreeList == NULL) { line = makeSplitLine(); } else { line = splitLineFreeList; splitLineFreeList = splitLineFreeList->next; } line->next = NULL; line->CIGARprocessed = false; // Mark these here so that the code for these doesn't have to stand on its head to do it. line->discordant = false; line->splitter = false; line->unmappedClipped = false; return line; } // Split the line into fields. void splitSplitLine(splitLine_t * line, int maxSplits) { line->numFields = 0; int fieldStart = 0; // replace the newline with a tab so that it works like the rest of the fields. line->buffer[line->bufLen-1] = '\t'; for (int i=0; ibufLen; ++i) { if (line->buffer[i] == '\t') { line->fields[line->numFields] = line->buffer + fieldStart; line->numFields += 1; if (line->numFields == maxSplits) break; line->buffer[i] = 0; // Get ready for the next iteration. fieldStart = i+1; } } // replace the tab at the end of the line with a null char to terminate the final string. line->buffer[line->bufLen-1] = 0; line->split = true; } // Unsplit the fields back into a single string. // This will mung the strings, so only call this when all processing on the line is done. void unsplitSplitLine(splitLine_t * line) { // First make sure we are still split. if (!line->split) return; // First undo the splits. // We will undo the splits backwards from the next field to avoid having to calculate strlen each time. for (int i=1; inumFields; ++i) { line->fields[i][-1] = '\t'; } // Now put the newline back in. line->buffer[line->bufLen-1] = '\n'; // Mark as no longer split. line->split = false; } // Resize the buffer of a splitLine. // Since the new buffer may not be in the same place, we need to first unsplit, resize, then resplit. void resizeSplitLine(splitLine_t * line, int newsize) { // First unsplit it. unsplitSplitLine(line); // Resize the buffer, giving a little extra room. line->maxBufLen = newsize + 50; line->buffer = (char *)realloc(line->buffer, line->maxBufLen); if (line->buffer == NULL) { fatalError("samblaster: Failed to reallocate to a larger read buffer size.\n"); } // Now resplit the line. splitSplitLine(line, line->numFields); } // Change a field into a value. // This will be tough given how we output lines. // So, we might have to try a few things. // Start with simply expanding/contracting the string to put in the new value. void changeFieldSplitLine(splitLine_t * line, int fnum, char * newValue) { // What we do will depend on the lengths of the two strings. // So, start by calculaing these only once. char * fp = line->fields[fnum]; int oldLen = strlen(fp); int newLen = strlen(newValue); // Now see if we need to first change the length of the whole line. int move = newLen - oldLen; if (move != 0) { // This should never happen, but to be robust we need to check. // It is messy to fix it, as all the field ptrs will now be wrong. if ((size_t)(line->bufLen + move) >= line->maxBufLen) { resizeSplitLine(line, line->bufLen + move); fp = line->fields[fnum]; } // Calculate the size of the tail that is still needed. int distance = 1 + line->bufLen - (fp - line->buffer) - oldLen; // Do the copy. memmove(fp+newLen, fp+oldLen, distance); // Correct the total length of the buffer. line->bufLen += move; // We need to correct the other ptrs as well. for (int i=fnum+1; inumFields; i++) line->fields[i] += move; } // Copy in the new value. memcpy(fp, newValue, newLen); } void addTag(splitLine_t * line, const char * header, const char * val) { int hl = strlen(header); int vl = strlen(val); // Make sure everything will fit. int newlen = line->bufLen + hl + vl; if ((size_t)newlen >= line->maxBufLen) { resizeSplitLine(line, newlen); } // Copy over the header and the value. char * ptr = line->buffer + line->bufLen - 1; ptr = (char *)mempcpy(ptr, header, hl); ptr = (char *)mempcpy(ptr, val, vl); // Add the null terminator for the field, and for the record. ptr[0] = 0; ptr[1] = 0; // Fix the buffer length. line->bufLen = newlen; } #if 0 // This was originally written to test for mismatched MC tags between BWA MEM and samblaster. // I keep it around, as some version of this would be useful if/when we add support for RGs and/or UMIs. // Note that this conses up a string, so the caller will have to free it later to avoid a leak. char * getTagVal (char * tags, char * tagID) { char * startptr = NULL; char * endptr = NULL; char * retval = NULL; // Find the start and end of the tag field startptr = strstr(tags, tagID); if (startptr == NULL) return strdup(""); endptr = strchr(startptr, '\t'); if (endptr == NULL) endptr = strchr(startptr, 0); // temporarily put a null in for the delimiter char save = endptr [0]; endptr [0] = 0; retval = strdup (startptr+strlen(tagID)); endptr [0] = save; // Return the dupped string return retval; } #endif // Read a line from the file and split it. splitLine_t * readLine(FILE * input) { splitLine_t * sline = getSplitLine(); sline->bufLen = getline(&sline->buffer, &sline->maxBufLen, input); if (sline->bufLen < 1) { disposeSplitLines(sline); return NULL; } splitSplitLine(sline, 12); return sline; } inline void outputString(char * str, FILE * output) { // Do the error checking here so we don't have to do it elsewhere. if (fputs(str, output) < 0) { fatalError("samblaster: Unable to write to output file.\n"); } } // Output the line. inline void writeLine(splitLine_t * line, FILE * output) { unsplitSplitLine(line); outputString(line->buffer, output); } // Check the first line of a file (e.g. input) for bam signature. void checkBAMfile(splitLine_t * line) { // If the file is a bam file, we can't rely on fields. // So, look at the underlying buffer for the line. // First define the signature to look for. int values[] = {31, -117, 8, 4, 66, 67, 2}; int offsets[] = {0, 1, 2, 3, 12, 13, 14}; int count = 7; // Check for empty file or likely a sam file with a header. // This is necessary, as the @HD line may not be long enough to check for the BAM signature. if (line == NULL) fatalError("samblaster: Input file is empty. Exiting.\n"); if (line->buffer[0] == '@') return; // If a SAM file has no header, an alignment row should easily be long enough. if (line->bufLen <= offsets[count-1]) fatalError("samblaster: Input file is empty. Exiting.\n"); // Check for the BAM signature. for (int i=0; ibuffer[offsets[i]] != values[i]) return; } // If we are here, we almost certainly have a bamfile. fatalError("samblaster: Input file appears to be in BAM format. SAM input is required. Exiting.\n"); } /////////////////////////////////////////////////////////////////////////////// // SAM and signature set related structures. /////////////////////////////////////////////////////////////////////////////// // Define SAM field offsets. #define QNAME 0 #define FLAG 1 #define RNAME 2 #define POS 3 #define MAPQ 4 #define CIGAR 5 #define RNEXT 6 #define PNEXT 7 #define TLEN 8 #define SEQ 9 #define QUAL 10 #define TAGS 11 // Define SAM flag accessors. #define MULTI_SEGS 0x1 #define FIRST_SEG 0x40 #define SECOND_SEG 0x80 inline bool checkFlag(splitLine_t * line, int bits) { return ((line->flag & bits) != 0); } inline void setFlag(splitLine_t * line, int bits) { line->flag |= bits; } inline bool isPaired(splitLine_t * line) { return checkFlag(line, MULTI_SEGS); } inline bool isConcordant(splitLine_t * line) { return checkFlag(line, 0x2); } inline bool isDiscordant(splitLine_t * line) { return !isConcordant(line); } inline bool isUnmapped(splitLine_t * line) { return checkFlag(line, 0x4); } inline bool isNextUnmapped(splitLine_t * line) { return checkFlag(line, 0x8); } inline bool isNextMapped(splitLine_t * line) { return !isNextUnmapped(line); } inline bool isMapped(splitLine_t * line) { return !isUnmapped(line); } inline bool isReverseStrand(splitLine_t * line) { return checkFlag(line, 0x10); } inline bool isForwardStrand(splitLine_t * line) { return !isReverseStrand(line); } inline bool isFirstRead(splitLine_t * line) { return checkFlag(line, FIRST_SEG); } inline bool isSecondRead(splitLine_t * line) { return checkFlag(line, SECOND_SEG); } // These determine alignment type. // Things may get more complicated than this once we have alternate contigs such as in build 38 of human genome. inline bool isPrimaryAlignment(splitLine_t * line) { return !(checkFlag(line, 0x100) || checkFlag(line, 0x800)); } // We have to hande secondard and complementary alignments differently depending on compatMode. // So, we store which bits are being included in each. int complementaryBits = 0x800; inline bool isComplementaryAlignment(splitLine_t * line) { return checkFlag(line, complementaryBits); } int secondaryBits = 0x100; inline bool isSecondaryAlignment(splitLine_t * line) { return checkFlag(line, secondaryBits); } inline bool isDuplicate(splitLine_t * line) { return checkFlag(line, 0x400); } inline void setDuplicate(splitLine_t * line) { setFlag(line, 0x400); } typedef hashTable_t sigSet_t; inline int str2int (char * str) { return strtol(str, NULL, 0); } // Need to change this if pos is unsigned. inline pos_t str2pos (char * str) { return strtol(str, NULL, 0); } // Temp buffer to use to form new flag field when marking dups. char tempBuf[10]; inline void markDup(splitLine_t * line) { setDuplicate(line); sprintf(tempBuf, "%d", line->flag); changeFieldSplitLine(line, FLAG, tempBuf); } // Special version of write line that appends an id number to the output. // Used to output splitters. void writeSAMlineWithIdNum(splitLine_t * line, FILE * output) { // Unsplit the line. unsplitSplitLine(line); // Split it two ways to isolate the id field. splitSplitLine(line, 2); outputString(line->fields[0], output); if (isPaired(line)) fprintf(output, "_%d\t", isFirstRead(line) ? 1 : 2); else fprintf(output, "\t"); outputString(line->fields[1], output); fprintf(output, "\n"); } /////////////////////////////////////////////////////////////////////////////// // Sequence Map /////////////////////////////////////////////////////////////////////////////// // We use a map instead of a hash map for sequence names. // This is because the default hash function on char * hashes the ptr values. // So, we would need to define our own hash on char * to get things to work properly. // Not worth it for a structure holding so few members. // Function needed to get char * map to work. struct less_str { bool operator()(char const *a, char const *b) const { return strcmp(a, b) < 0; } }; // This stores the map between sequence names and sequence numbers. typedef std::map seqMap_t; inline void addSeq(seqMap_t * seqs, char * item, int val) { (*seqs)[item] = val; } /////////////////////////////////////////////////////////////////////////////// // Struct for processing state /////////////////////////////////////////////////////////////////////////////// struct state_struct { char * inputFileName; FILE * inputFile; char * outputFileName; FILE * outputFile; FILE * discordantFile; char * discordantFileName; FILE * splitterFile; char * splitterFileName; FILE * unmappedClippedFile; char * unmappedClippedFileName; sigSet_t * sigs; seqMap_t seqs; UINT32 * seqLens; UINT64 * seqOffs; splitLine_t ** splitterArray; int splitterArrayMaxSize; UINT32 sigArraySize; int binCount; int minNonOverlap; int maxReadLength; int maxSplitCount; int minIndelSize; int maxUnmappedBases; int minClip; int unmappedFastq; bool acceptDups; bool excludeDups; bool removeDups; bool addMateTags; bool compatMode; bool ignoreUnmated; bool quiet; }; typedef struct state_struct state_t; state_t * makeState () { state_t * s = new state_t(); s->inputFile = stdin; s->inputFileName = (char *)"stdin"; s->outputFile = stdout; s->outputFileName = (char *)"stdout"; s->discordantFile = NULL; s->discordantFileName = (char *)""; s->splitterFile = NULL; s->splitterFileName = (char *)""; s->unmappedClippedFile = NULL; s->unmappedClippedFileName = (char *)""; s->sigs = NULL; s->minNonOverlap = 20; s->maxSplitCount = 2; s->minIndelSize = 50; s->maxUnmappedBases = 50; s->minClip = 20; s->maxReadLength = 500; s->acceptDups = false; s->excludeDups = false; s->removeDups = false; s->addMateTags = false; s->compatMode = false; s->ignoreUnmated = false; s->quiet = false; // Start this as -1 to indicate we don't know yet. // Once we are outputting our first line, we will decide. s->unmappedFastq = -1; // Used as a temporary location for ptrs to splitter for sort routine. s->splitterArrayMaxSize = 1000; s->splitterArray = (splitLine_t **)(malloc(s->splitterArrayMaxSize * sizeof(splitLine_t *))); return s; } void deleteState(state_t * s) { free(s->splitterArray); if (s->sigs != NULL) { // delete[] s->sigs; for (UINT32 i=0; isigArraySize; i++) deleteHashTable(&(s->sigs[i])); free (s->sigs); } for (seqMap_t::iterator iter = s->seqs.begin(); iter != s->seqs.end(); ++iter) { free((char *)(iter->first)); } if (s->seqLens != NULL) free(s->seqLens); if (s->seqOffs != NULL) free(s->seqOffs); delete s; } /////////////////////////////////////////////////////////////////////////////// // Signatures /////////////////////////////////////////////////////////////////////////////// // We now calculate signatures as offsets into a super contig that includes the entire genome. // And partition it into equaly sized bins. // This performs better on genomes with large numbers of small contigs, // without performance degradation on more standard genomes. // Thanks to https://github.com/carsonhh for the suggestion. ///////////////////////////////////////////////////////////////////////////// template inline sgn_t calcSig(splitLine_t * first, splitLine_t * second) { UINT64 final; if (orphan) { // For an orphan, we only use information fron the second read. final = second->binPos; } else { // Total nonsense to get the compiler to actually work. UINT64 t1 = first->binPos; UINT64 t2 = t1 << 32; final = t2 | second->binPos; } return (sgn_t)final; } template inline UINT32 calcSigArrOff(splitLine_t * first, splitLine_t * second, int binCount) { UINT32 s1, s2; if (orphan) { // For orphans, we only use the binNum of the second, and treat it as if on the forward strand. s1 = 0; s2 = (second->binNum * 2); } else { s1 = (first->binNum * 2) + (isReverseStrand(first) ? 1 : 0); s2 = (second->binNum * 2) + (isReverseStrand(second) ? 1 : 0); } return (UINT32)(s1 * binCount * 2) + s2; } /////////////////////////////////////////////////////////////////////////////// // Sequences /////////////////////////////////////////////////////////////////////////////// inline int getSeqNum(splitLine_t * line, int field, state_t * state) __attribute__((always_inline)); inline int getSeqNum(splitLine_t * line, int field, state_t * state) { seqMap_t::iterator findret = state->seqs.find(line->fields[field]); if (findret == state->seqs.end()) { char * temp; asprintf(&temp, "samblaster: Unable to find sequence '%s' in sequence map for readid %s\n", line->fields[field], line->fields[QNAME]); fatalError(temp); } return findret->second; } /////////////////////////////////////////////////////////////////////////////// // Helpers to process CIGAR strings /////////////////////////////////////////////////////////////////////////////// // This will parse a base 10 int, and change ptr to one char beyond the end of the number. inline int parseNextInt(char **ptr) { int num = 0; for (char curChar = (*ptr)[0]; curChar != 0; curChar = (++(*ptr))[0]) { int digit = curChar - '0'; if (digit >= 0 && digit <= 9) num = num*10 + digit; else break; } return num; } // This will the current char, and move the ptr ahead by one. inline char parseNextOpCode(char **ptr) { return ((*ptr)++)[0]; } // This just test for end of string. inline bool moreCigarOps(char *ptr) { return (ptr[0] != 0); } void processCIGAR(splitLine_t * line) { if (line->CIGARprocessed) return; char * cigar = line->fields[CIGAR]; line->raLen = 0; line->qaLen = 0; line->sclip = 0; line->eclip = 0; bool first = true; while (moreCigarOps(cigar)) { int opLen = parseNextInt(&cigar); char opCode = parseNextOpCode(&cigar); if (opCode == 'M' || opCode == '=' || opCode == 'X') { line->raLen += opLen; line->qaLen += opLen; first = false; } else if (opCode == 'S' || opCode == 'H') { if (first) line->sclip += opLen; else line->eclip += opLen; } else if (opCode == 'D' || opCode == 'N') { line->raLen += opLen; } else if (opCode == 'I') { line->qaLen += opLen; } else { fprintf(stderr, "Unknown opcode '%c' in CIGAR string: '%s'\n", opCode, line->fields[CIGAR]); } } line->rapos = str2pos(line->fields[POS]); if (isForwardStrand(line)) { line->pos = line->rapos - line->sclip; line->SQO = line->sclip; line->EQO = line->sclip + line->qaLen - 1; } else { line->pos = line->rapos + line->raLen + line->eclip - 1; line->SQO = line->eclip; line->EQO = line->eclip + line->qaLen - 1; } line->CIGARprocessed = true; } inline int getStartDiag(splitLine_t * line) { // SRO - SQO (not strand normalized) // Simplify the following. // return (str2pos(line->fields[POS])) - line->sclip; return line->rapos - line->sclip; } inline int getEndDiag(splitLine_t * line) { // ERO - EQO (not strand normalized) // Simplify the following // return (line->rapos + line->raLen - 1) - (line->sclip + line->qaLen - 1) return (line->rapos + line->raLen) - (line->sclip + line->qaLen); } /////////////////////////////////////////////////////////////////////////////// // Process SAM Blocks /////////////////////////////////////////////////////////////////////////////// // This was historically 27 bits as that was large enough to hold any human chrom 1 offset. // Now that we are using a synthetic genome representation, 27 has no special meaning. // There are interesting space/time trade-offs between how large we make the // synthetic chroms and how large the various hash tables become. // If/when we handle RGs and/or UMIs, the signature scheme will change anyway. // Therefore, leave at 27 for now to match space/time tradeoffs of earlier releases. #define BIN_SHIFT ((UINT64)27) //bin window is 27 bits wide #define BIN_MASK ((UINT64)((1 << BIN_SHIFT)-1)) //bin window is 27 bits wide // This is apparently no longer called. void outputSAMBlock(splitLine_t * block, FILE * output) { for (splitLine_t * line = block; line != NULL; line = line->next) { writeLine(line, output); } disposeSplitLines(block); } inline bool needSwap(splitLine_t * first, splitLine_t * second) { // Sort first by ref offset. if (first->pos > second->pos) return true; if (first->pos < second->pos) return false; // Now by seq number. if (first->seqNum > second->seqNum) return true; if (first->seqNum < second->seqNum) return false; // Now by strand. // If they are both the same strand, it makes no difference which on is first. if (isReverseStrand(first) == isReverseStrand(second)) return false; if (isReverseStrand(first) && isForwardStrand(second)) return true; return false; } inline void swapPtrs(splitLine_t ** first, splitLine_t ** second) { splitLine_t * temp = *first; *first = *second; *second = temp; } template int fillTempLineArray(splitLine_t * block, state_t * state, int mask, bool flagValue); void addMTs(splitLine_t * block, state_t * state, splitLine_t * first, splitLine_t * second) { if (!isMapped(first)) return; int mask = (FIRST_SEG | SECOND_SEG); // Get the list of reads that match the other read of the pair. int count = fillTempLineArray(block, state, second->flag & mask, true); for (int i=0; isplitterArray[i]; if (!substr_of(line->fields[TAGS], "MC:Z:")) addTag(line, " MC:Z:", first->fields[CIGAR]); if (!substr_of(line->fields[TAGS], "MQ:i:")) addTag(line, " MQ:i:", first->fields[MAPQ]); } } void brokenBlock(splitLine_t *block, int count) { char * temp; asprintf(&temp, "samblaster: Can't find first and/or second of pair in sam block of length %d for id: %s\n%s%s:%s\n%s", count, block->fields[QNAME], "samblaster: At location: ", block->fields[RNAME], block->fields[POS], "samblaster: Are you sure the input is sorted by read ids?"); fatalError(temp); } // Some fields for statistics. // In order to form a partition of all the reads (i.e. account for all ids) // we need weird categories such as noPrimary, and unmapped orphans. UINT64 idCount = 0; UINT64 dupCount = 0; UINT64 noPrimaryIdCount = 0; UINT64 bothUnmappedIdCount = 0; UINT64 unmappedOrphanIdCount = 0; UINT64 mappedOrphanIdCount = 0; UINT64 orphanDupCount = 0; UINT64 bothMappedDupCount = 0; UINT64 bothMappedIdCount = 0; UINT64 discCount = 0; UINT64 splitCount = 0; UINT64 unmapClipCount = 0; UINT64 unmatedCount = 0; UINT64 readTooLongCount = 0; INT32 readTooLongMax = 0; // We also make the state (and timing info) global to aid error processing state_t * state; #ifdef TIMING time_t startTime; struct timeval startRUTime; #endif // The routines to do implement our padding strategy, as needed directly below. inline int padLength(int length, state_t * state) __attribute__((always_inline)); inline int padLength(int length, state_t * state) { return length + (2 * state->maxReadLength); } inline int padPos(int pos, state_t * state) __attribute__((always_inline)); inline int padPos(int pos, state_t * state) { return pos + state->maxReadLength; } // This calculates the position of the read in the sequence array, and in the reference genome. void prepareSigValues(splitLine_t * line, state_t * state, bool orphan) { // Calculate and store the reference sequence name and sequence relative position. processCIGAR(line); // Calculate the full query length, which is the aligned length plus clips. int fullqlen = (line->sclip + line->qaLen + line->eclip); // Make sure we don't have any problems with this read longer than our padding will handle. if (fullqlen > state->maxReadLength) { // The read is longer than our padding will handle. readTooLongCount += 1; if (fullqlen > readTooLongMax) readTooLongMax = fullqlen; // We should only ever miss the bins entirely if the read is longer than maxReadLength due to our padding of the reference. if (line->binNum < 0 || line->binNum > state->binCount) { char * temp; asprintf(&temp, "samblaster: Calculated read position falls outside the reference for read id: %s\n" "samblaster: Consider rerunning with higher --maxReadLength.\n", line->fields[QNAME]); fatalError(temp); } } if (orphan && isReverseStrand(line)) { // We want to treat this read as if it is on the forward strand. line->pos = line->rapos - line->sclip; } // Now get the sequence number line->seqNum = getSeqNum(line, RNAME, state); // Calculate the genome relative position // We need to do the read pos padding to handle negative calculated sequence position for the alignment. UINT64 seqOff = state->seqOffs[line->seqNum]; int paddedPos = padPos(line->pos, state); line->binNum = (seqOff + paddedPos) >> BIN_SHIFT; line->binPos = (seqOff + paddedPos) & BIN_MASK; } // This is the main workhorse that determines if lines are dups or not. void markDupsDiscordants(splitLine_t * block, state_t * state) { splitLine_t * first = NULL; splitLine_t * second = NULL; int count = 0; for (splitLine_t * line = block; line != NULL; line = line->next) { count += 1; // Do this conversion once and store the result. line->flag = str2int(line->fields[FLAG]); // We make our duplicate decisions based solely on primary alignments. if (!isPrimaryAlignment(line)) continue; // Allow unpaired reads to go through (as the second so that signature is correct). // According to the SAM spec, this must be checked first. if (!isPaired(line)) second = line; // Figure out if this is the first half or second half of a pair. else if (isFirstRead(line)) first = line; else if (isSecondRead(line)) second = line; } // Figure out what type of "pair" we have. // First get rid of the useless case of having no first AND no second. if (first == NULL && second == NULL) { if (state->ignoreUnmated) { noPrimaryIdCount += 1; return; } brokenBlock(block, count); } // Now see if we have orphan with the unmapped read missing. bool orphan = false; if (first == NULL || second == NULL) { // Get the NULL one in the first slot. if (second == NULL) swapPtrs(&first, &second); // If the only read says its paired, and it is unmapped or its mate is mapped, something is wrong. if (isPaired(second) && (isUnmapped(second) || isNextMapped(second))) { if (state->ignoreUnmated) { unmatedCount += 1; return; } brokenBlock(block, count); } // If the only read we have is unmapped, then it can't be a dup. if (isUnmapped(second)) { if (state->ignoreUnmated) { unmappedOrphanIdCount += 1; return; } brokenBlock(block, count); } // We have a processable singleton. orphan = true; } else { // Handle the addition of MC and MQ tags if requested. if (state->addMateTags) { addMTs(block, state, first, second); addMTs(block, state, second, first); } // Never mark pairs as dups if both sides are unmapped. if (isUnmapped(first) && isUnmapped(second)) { bothUnmappedIdCount += 1; return; } // We need to properly handle orphans to get the correct reference offsets and sequence numbers. orphan = (isUnmapped(first) || isUnmapped(second)); // Orphan that needs to be swapped. // We need the unmapped one in the first slot so that they won't all collide in the hash table. if (isMapped(first) && isUnmapped(second)) { swapPtrs(&first, &second); } } // Keep track of the ID category. if (orphan) mappedOrphanIdCount += 1; else bothMappedIdCount +=1; // Now look for duplicates. if (!state->acceptDups) { // Calculate and store the second position and sequence name. prepareSigValues(second, state, orphan); sgn_t sig; UINT32 off; if (orphan) { // Now find the signature of the pair. sig = calcSig(first, second); // Calculate the offset into the signatures array. off = calcSigArrOff(first, second, state->binCount); } else { // Not an orphan, so handle first on its own. prepareSigValues(first, state, false); // The fact of which alignment is first or second in the template is not relevant for determining dups. // Therefore, we normalize the pairs based on their characteristics. // We have already swapped orphans. // Otherwise, sort by pos, and if equal, sort by sequence num, then by strand. if (needSwap(first, second)) swapPtrs(&first, &second); // Now find the signature of the pair. sig = calcSig(first, second); // Calculate the offset into the signatures array. off = calcSigArrOff(first, second, state->binCount); } // Attempt insert into the sigs structure. // The return value will tell us if it was already there. bool insert = hashTableInsert(&(state->sigs[off]), sig); #ifdef DEBUG // This debug output allows the discovery of all members of a duplicate group including the read not marked as a duplicate. // This could otherwise not be figured out from the output sam file. fprintf(stderr, "%" PRIu64 "\t%s\t%6d\t%s\t%" PRIu64 "\t%s\n", idCount, second->fields[QNAME], second->flag, insert ? "First" : "Dup", sig, second->fields[RNAME]); #endif // Check if the insertion actually happened. if (!insert) { dupCount += 1; if (orphan) orphanDupCount += 1; else bothMappedDupCount += 1; // We always mark all or none of a block as dup. for (splitLine_t * line = block; line != NULL; line = line->next) { markDup(line); } } } // The first and second help us mark the discordants. // Both sides mapped, but pair not properly aligned. if (!orphan && isDiscordant(first)) { first->discordant = true; second->discordant = true; } } // Sort ascending in SQO. int compQOs(const void * p1, const void * p2) { splitLine_t * l1 = (*(splitLine_t **)p1); splitLine_t * l2 = (*(splitLine_t **)p2); return (l1->SQO - l2->SQO); } template int fillTempLineArray(splitLine_t * block, state_t * state, int mask, bool flagValue) { // Count the secondaries we have for this read (if any), and store their ptrs into an array. int count = 0; for (splitLine_t * line = block; line != NULL; line = line->next) { // For all the ones that are the current read of interest.... // Check if they are a primary or complementary alignment. if (checkFlag(line, mask) == flagValue && !(excludeSecondaries && isSecondaryAlignment(line))) { // Add the ptr to this line to the sort array. // If it won't fit, double the array size. if (count >= state->splitterArrayMaxSize) { state->splitterArrayMaxSize *= 2; state->splitterArray = (splitLine_t **)(realloc(state->splitterArray, state->splitterArrayMaxSize * sizeof(splitLine_t *))); } state->splitterArray[count] = line; count += 1; } } return count; } void markSplitterUnmappedClipped(splitLine_t * block, state_t * state, int mask, bool flagValue) { // Count the secondaries we have for this read (if any), and store their ptrs into an array. int count = fillTempLineArray(block, state, mask, flagValue); // We have the lines of interest in an array. // Decide what to do next based on the number of reads. if (count == 0) return; if (count == 1) { if (state->unmappedClippedFile == NULL) return; // Process unmapped or clipped. splitLine_t * line = state->splitterArray[0]; // Unmapped or clipped alignments should be primary. if (!isPrimaryAlignment(line)) return; if (isUnmapped(line)) { line->unmappedClipped = true; } else { // Process the CIGAR string. // As this is expensive, we delay as long as possible. processCIGAR(line); if (line->sclip >= state->minClip || line->eclip >= state->minClip) { line->unmappedClipped = true; } } return; } // See if we need to process for splitters. if (state->splitterFile == NULL || count > state->maxSplitCount) return; // Calculate the query positions (for sorting) and do other preprocessing. for (int i=0; isplitterArray[i]; // Make sure the primary is mapped! if (isPrimaryAlignment(line) && isUnmapped(line)) return; processCIGAR(line); } // We need to sort it by strand normalized query offsets. qsort(state->splitterArray, count, sizeof(splitLine_t *), compQOs); // Now check for pairs that match the desired parameters. for (int i=1; isplitterArray[i-1]; splitLine_t * right = state->splitterArray[i]; // First check for minNonOverlap. // We don't allow negative overlap, as that will lead to wrong non-overlap calculation. int overlap = std::max(1 + std::min(left->EQO, right->EQO) - std::max(left->SQO, right->SQO), 0); int alen1 = 1 + left->EQO - left->SQO; int alen2 = 1 + right->EQO - right->SQO; int mno = std::min(alen1-overlap, alen2-overlap); if (mno < state->minNonOverlap) continue; // Now check for the deserts and diagonal difference. // If they are on different chroms or strands, they pass without the other checks. // Since we only care if the sequences are the same, we don't need seqNums. // Instead just compare the strings! if (streq(left->fields[RNAME], right->fields[RNAME]) && (isReverseStrand(left) == isReverseStrand(right))) { // The start and end diags might be different if there is an indel in the alignments. // So, we use the end on the left, and the start on the right. // This will give us the net diag difference between them. int leftDiag, rightDiag, insSize; if (isReverseStrand(left)) { leftDiag = getStartDiag(left); rightDiag = getEndDiag(right); insSize = rightDiag - leftDiag; } else { leftDiag = getEndDiag(left); rightDiag = getStartDiag(right); insSize = leftDiag - rightDiag; } int desert = right->SQO - left->EQO - 1; // The absolute value will handle both inserts and deletes. // So check indel is big enough, and that there are not too many unmapped bases. // Subtract the inadvertant desert gap of inserts. if ((abs(insSize) < state->minIndelSize) || ((desert > 0) && ((desert - (int)std::max(0, insSize)) > state->maxUnmappedBases))) continue; } // We made it through the gamet. // Mark this pair for output. left->splitter = true; right->splitter = true; } } void writeUnmappedClipped(splitLine_t * line, state_t * state) { // Check if we are outputting fasta or fastq. if (state->unmappedFastq == -1) state->unmappedFastq = (streq(line->fields[QUAL], "*") ? 0 : 1); // Print the first line. char firstChar = (state->unmappedFastq) ? '@' : '>'; if (isPaired(line)) fprintf(state->unmappedClippedFile, "%c%s_%d\n", firstChar, line->fields[QNAME], (isFirstRead(line) ? 1 : 2)); else fprintf(state->unmappedClippedFile, "%c%s\n", firstChar, line->fields[QNAME]); if (state->unmappedFastq) fprintf(state->unmappedClippedFile, "%s\n+\n%s\n", line->fields[SEQ], line->fields[QUAL]); else fprintf(state->unmappedClippedFile, "%s\n", line->fields[SEQ]); } void processSAMBlock(splitLine_t * block, state_t * state) { idCount += 1; // First mark dups and find the discordants. // These share a lot of looking at flag bits, so make sense to put together. markDupsDiscordants(block, state); // Look for splitters. // Since this is expensive, don't do it unless the user asked for them. if (state->splitterFile != NULL || state->unmappedClippedFile != NULL) { // Check the first read for splitter. markSplitterUnmappedClipped(block, state, FIRST_SEG, true); // Check the second read for splitter. markSplitterUnmappedClipped(block, state, SECOND_SEG, true); // Check for a singleton read markSplitterUnmappedClipped(block, state, MULTI_SEGS, false); } // Now do the output. for (splitLine_t * line = block; line != NULL; line = line->next) { // Do the unmapped file first, as it is not sam, and doesn't sew the line back together. if (state->unmappedClippedFile != NULL && line->unmappedClipped && !(state->excludeDups && isDuplicate(line))) { writeUnmappedClipped(line, state); unmapClipCount += 1; } // Write to the output file. if (!(state->removeDups && isDuplicate(line))) { writeLine(line, state->outputFile); } // Write to discordant file if appropriate. if (state->discordantFile != NULL && line->discordant && !(state->excludeDups && isDuplicate(line))) { writeLine(line, state->discordantFile); discCount += 1; } // Write to splitter file if appropriate. if (state->splitterFile != NULL && line->splitter && !(state->excludeDups && isDuplicate(line))) { writeSAMlineWithIdNum(line, state->splitterFile); splitCount += 1; } } disposeSplitLines(block); } /////////////////////////////////////////////////////////////////////////////// // Main Routine with helpers. /////////////////////////////////////////////////////////////////////////////// // Output the @PG line information into a SAM file header void printPGsamLine(FILE * f, state_t * s) { if (f == NULL) return; fprintf(f, "@PG\tID:SAMBLASTER\tVN:0.1.%d\tCL:samblaster -i %s -o %s", BUILDNUM, s->inputFileName, s->outputFileName); if (s->compatMode) fprintf(f, " -M"); if (s->acceptDups) fprintf(f, " --acceptDupMarks"); if (s->removeDups) fprintf(f, " --removeDups"); else if (s->excludeDups && (s->discordantFile != NULL || s->splitterFile != NULL || s->unmappedClippedFile != NULL)) fprintf(f, " --excludeDups"); if (s->addMateTags) fprintf(f, " --addMateTags"); if (s->ignoreUnmated) fprintf(f, " --ignoreUnmated"); if (s->maxReadLength != 500) fprintf(f, " --maxReadLength %d", s->maxReadLength); if (s->discordantFile != NULL) fprintf(f, " -d %s", s->discordantFileName); if (s->splitterFile != NULL) fprintf(f, " -s %s --maxSplitCount %d --maxUnmappedBases %d --minIndelSize %d --minNonOverlap %d", s->splitterFileName, s->maxSplitCount, s->maxUnmappedBases, s->minIndelSize, s->minNonOverlap); if (s->unmappedClippedFile != NULL) fprintf(f, " -u %s --minClipSize %d", s->unmappedClippedFileName, s->minClip); fprintf(f, "\n"); } void printVersionString() { fprintf(stderr, "samblaster: Version 0.1.%d\n", BUILDNUM); } void printUsageString() { const char* useString = "Author: Greg Faust (gf4ea@virginia.edu)\n" "Tool to mark duplicates and optionally output split reads and/or discordant pairs.\n" "Input sam file must contain sequence header and be grouped by read ids (QNAME).\n" "Input typicallly contains paired-end data, although singleton data is allowed with --ignoreUnmated option.\n" "Output will be all alignments in the same order as input, with duplicates marked with FLAG 0x400.\n\n" "Usage:\n" "For use as a post process on an aligner (eg. bwa mem):\n" " bwa mem samp.r1.fq samp.r2.fq | samblaster [-e] [-d samp.disc.sam] [-s samp.split.sam] | samtools view -Sb - > samp.out.bam\n" " bwa mem -M samp.r1.fq samp.r2.fq | samblaster -M [-e] [-d samp.disc.sam] [-s samp.split.sam] | samtools view -Sb - > samp.out.bam\n" "For use with a pre-existing bam file to pull split, discordant and/or unmapped reads without marking duplicates:\n" " samtools view -h samp.bam | samblaster -a [-e] [-d samp.disc.sam] [-s samp.split.sam] [-u samp.umc.fasta] -o /dev/null\n" "For use with a bam file of singleton long reads to pull split and/or unmapped reads with/without marking duplicates:\n" " samtools view -h samp.bam | samblaster --ignoreUnmated [-e] --maxReadLength 100000 [-s samp.split.sam] [-u samp.umc.fasta] | samtools view -Sb - > samp.out.bam\n" " samtools view -h samp.bam | samblaster --ignoreUnmated -a [-e] [-s samp.split.sam] [-u samp.umc.fasta] -o /dev/null\n" "Input/Output Options:\n" "-i --input FILE Input sam file [stdin].\n" "-o --output FILE Output sam file for all input alignments [stdout].\n" "-d --discordantFile FILE Output discordant read pairs to this file. [no discordant file output]\n" "-s --splitterFile FILE Output split reads to this file abiding by paramaters below. [no splitter file output]\n" "-u --unmappedFile FILE Output unmapped/clipped reads as FASTQ to this file abiding by parameters below. [no unmapped file output].\n" " Requires soft clipping in input file. Will output FASTQ if QUAL information available, otherwise FASTA.\n\n" "Other Options:\n" "-a --acceptDupMarks Accept duplicate marks already in input file instead of looking for duplicates in the input.\n" "-e --excludeDups Exclude reads marked as duplicates from discordant, splitter, and/or unmapped file.\n" "-r --removeDups Remove duplicates reads from all output files. (Implies --excludeDups).\n" " --addMateTags Add MC and MQ tags to all output paired-end SAM lines.\n" " --ignoreUnmated Suppress abort on unmated alignments. Use only when sure input is read-id grouped,\n" " and either paired-end alignments have been filtered or the input file contains singleton reads.\n" "-M Run in compatibility mode; both 0x100 and 0x800 are considered chimeric. Similar to BWA MEM -M option.\n" " --maxReadLength INT Maximum allowed length of the SEQ/QUAL string in the input file. [500]\n" " Primarily useful for marking duplicates in files containing singleton long reads.\n" " --maxSplitCount INT Maximum number of split alignments for a read to be included in splitter file. [2]\n" " --maxUnmappedBases INT Maximum number of un-aligned bases between two alignments to be included in splitter file. [50]\n" " --minIndelSize INT Minimum structural variant feature size for split alignments to be included in splitter file. [50]\n" " --minNonOverlap INT Minimum non-overlaping base pairs between two alignments for a read to be included in splitter file. [20]\n" " --minClipSize INT Minumum number of bases a mapped read must be clipped to be included in unmapped file. [20]\n" "-q --quiet Output fewer statistics.\n"; printVersionString(); fprintf(stderr, "%s", useString); } void printUsageStringAbort() { printUsageString(); exit(1); } // Output the runtine stats. Used both for normal and premature exit. void printRunStats(state_t * state) { // This check should be redundant. if (idCount == 0) { fprintf(stderr, "samblaster: No reads processed.\n"); return; } // Output stats on auxiliary files. if (!state->quiet) { if (state->discordantFile != NULL) fprintf(stderr, "samblaster: Output %10" PRIu64 " discordant read pairs to %s\n", discCount/2, state->discordantFileName); if (state->splitterFile != NULL) fprintf(stderr, "samblaster: Output %10" PRIu64 " split reads to %s\n", splitCount, state->splitterFileName); if (state->unmappedClippedFile != NULL) fprintf(stderr, "samblaster: Output %10" PRIu64 " unmapped/clipped reads to %s\n", unmapClipCount, state->unmappedClippedFileName); } // Now the stats that might indicate a problem that therefore deserve reporting even if quiet set. if (readTooLongCount > 0) { fprintf(stderr, "samblaster: Found %10" PRIu64 " of %10" PRIu64 " (%5.3f) total read ids longer than the --maxReadLength(%d)\n." "samblaster: The longest of which is %d bases long.\n", readTooLongCount, idCount, ((double)100)*readTooLongCount/idCount, state->maxReadLength, readTooLongMax); fprintf(stderr, "samblaster: Consider rerunning samblaster with a larger --maxReadLength.\n"); } if (state->ignoreUnmated) { fprintf(stderr, "samblaster: Found %10" PRIu64 " of %10" PRIu64 " (%5.3f%%) total read ids are marked paired yet are unmated.\n", unmatedCount, idCount, ((double)100)*unmatedCount/idCount); if (unmatedCount > 0) fprintf(stderr, "samblaster: Please double check that input file is read-id (QNAME) grouped.\n"); } if (noPrimaryIdCount > 0) { fprintf(stderr, "samblaster: Found %10" PRIu64 " of %10" PRIu64 " (%5.3f%%) total read ids with no primary alignment.\n", noPrimaryIdCount, idCount, ((double)100)*noPrimaryIdCount/idCount); if (unmatedCount > 0) fprintf(stderr, "samblaster: Please double check that input file is read-id (QNAME) grouped.\n"); } // Now the main output stats. // We need no unmated reads in order to ensure that the various id types form a partition of all read ids. // This is because unmated reads could indicate an incorrectly sorted file which could cause double counting of ids. // Therefore, to be conservative, we should only output the table with both-unmapped, orphan and both-mapped stats in that case. // NOTE: the correct test is the unmated reads instead of --ignoreUnmated, as the latter doesn't mean we actually FIND any unmated. // However, I have decided to output them even if there are unmated reads because we do warn above in that case. // We need to have at least two id types to make sense to output the table. int idCountTypes = 0; if (bothUnmappedIdCount > 0) idCountTypes += 1; if (unmappedOrphanIdCount > 0) idCountTypes += 1; if (mappedOrphanIdCount > 0) idCountTypes += 1; if (bothMappedIdCount > 0) idCountTypes += 1; // We need dups for the denominators to avoid div by zero. if (!state->quiet && dupCount > 0 && idCountTypes > 1) { // We vary the names and spacing of the type names depending on whether or not there are any unmapped orphans. // Use shorter strings with less blank space if there are none, as should be common for properly grouped paired-end data. char * orphanString = (char *)((unmappedOrphanIdCount > 0) ? "Mapped Orphan/Singleton " : "Orphan/Singleton"); int typeLength = strlen(orphanString); fprintf(stderr, "samblaster:\n"); fprintf(stderr, "samblaster: %*.*s Type_ID_Count %%Type/All_IDs Dup_ID_Count %%Dups/Type_ID_Count %%Dups/All_Dups %%Dups/All_IDs\n", typeLength, typeLength, "Pair Type "); fprintf(stderr, "samblaster: %*.*s-----------------------------------------------------------------------------------------------\n", typeLength, typeLength, "------------------------------------------------"); // These first two can't produce any dups. if (bothUnmappedIdCount > 0) { fprintf(stderr, "samblaster: %*.*s %10" PRIu64 " %7.3f %10" PRIu64 " %7.3f %7.3f %7.3f\n", typeLength, typeLength, "Both Unmapped ", bothUnmappedIdCount, ((double)100)*bothUnmappedIdCount/idCount, (UINT64)0, (double)0, (double)0, (double)0); } if (unmappedOrphanIdCount > 0) { fprintf(stderr, "samblaster: %*.*s %10" PRIu64 " %7.3f %10" PRIu64 " %7.3f %7.3f %7.3f\n", typeLength, typeLength, "Unmapped Orphan/Singleton ", unmappedOrphanIdCount, ((double)100)*unmappedOrphanIdCount/idCount, (UINT64)0, (double)0, (double)0, (double)0); } // All orphanDups are, of course, from mapped orphans. if (mappedOrphanIdCount > 0) { fprintf(stderr, "samblaster: %*.*s %10" PRIu64 " %7.3f %10" PRIu64 " %7.3f %7.3f %7.3f\n", typeLength, typeLength, orphanString, mappedOrphanIdCount, ((double)100)*mappedOrphanIdCount/idCount, orphanDupCount, ((double)100)*orphanDupCount/mappedOrphanIdCount, ((double)100)*orphanDupCount/dupCount, ((double)100)*orphanDupCount/idCount); } if (bothMappedIdCount > 0) { fprintf(stderr, "samblaster: %*.*s %10" PRIu64 " %7.3f %10" PRIu64 " %7.3f %7.3f %7.3f\n", typeLength, typeLength, "Both Mapped ", bothMappedIdCount, ((double)100)*bothMappedIdCount/idCount, bothMappedDupCount, ((double)100)*bothMappedDupCount/bothMappedIdCount, ((double)100)*bothMappedDupCount/dupCount, ((double)100)*bothMappedDupCount/idCount); } fprintf(stderr, "samblaster: %*.*s %10" PRIu64 " %7.3f %10" PRIu64 " %7.3f %7.3f %7.3f\n", typeLength, typeLength, "Total ", idCount, ((double)100)*idCount/idCount, dupCount, ((double)100)*dupCount/idCount, (double)100, ((double)100)*dupCount/idCount); fprintf(stderr, "samblaster:\n"); } // Output the main conclusion even if we output the table. // It includes the fact of whether or not the dups were marked or removed, and the timing info. fprintf(stderr, "samblaster: %s %10" PRIu64 " of %10" PRIu64 " (%5.3f%%) total read ids as duplicates", (state->removeDups ? "Removed" : "Marked "), dupCount, idCount, ((double)100)*dupCount/idCount); if ((TIMING == 0) || state->quiet) { fprintf(stderr, ".\n"); } else { #if TIMING struct rusage usagebuf; getrusage(RUSAGE_SELF, &usagebuf); time_t endTime = time(NULL); struct timeval endRUTime = usagebuf.ru_utime; fprintf(stderr, " using %luk memory in ", usagebuf.ru_maxrss); fprintTimeMicroSeconds(stderr, diffTVs(&startRUTime, &endRUTime), 3); fprintf(stderr, " CPU seconds and "); fprintTimeSeconds(stderr, (endTime-startTime), 0); fprintf(stderr, " wall time.\n"); #endif } } /////////////////////////////////////////////////////////////////////////////// // Error Handling. /////////////////////////////////////////////////////////////////////////////// void fatalError(const char * errorStr) { if (idCount == 0) { fprintf(stderr, "%s", errorStr); } else { fprintf(stderr, "%s", errorStr); fprintf(stderr, "samblaster: Exiting early, the following stats are for processing preceeding the error\n"); printRunStats(state); } fprintf(stderr,"samblaster: Premature exit (return code 1).\n"); exit(1); } void fsError(const char * filename) { char * temp; if (errno == ENOENT) asprintf(&temp, "samblaster: File '%s' does not exist.\n", filename); else asprintf(&temp, "samblaster: File system error on %s: %d.\n", filename, errno); fatalError(temp); } /////////////////////////////////////////////////////////////////////////////// // Main Routine. /////////////////////////////////////////////////////////////////////////////// int getIntVal (int argi, int argc, char *argv[]) { char * temp = NULL; if (argi == argc) { asprintf(&temp, "samblaster: Missing value for option %s\n", argv[argi-1]); fatalError(temp); } int retval = str2int(argv[argi]); if (retval == 0 && !streq(argv[argi], "0")) { asprintf(&temp, "samblaster: Invalid integer value '%s' for option %s\n", argv[argi], argv[argi-1]); fatalError(temp); } return retval; } char * getStrVal (int argi, int argc, char *argv[]) { char * temp = NULL; if (argi == argc) { asprintf(&temp, "samblaster: Missing value for option %s\n", argv[argi-1]); fatalError(temp); } return argv[argi]; } int main (int argc, char *argv[]) { // Set up timing. #if TIMING startTime = time(NULL); struct rusage usagebuf; getrusage(RUSAGE_SELF, &usagebuf); startRUTime = usagebuf.ru_utime; #endif // Parse input parameters. state = makeState(); for (int argi = 1; argi < argc; argi++) { // First the general mode and I/O parameters. if (streq(argv[argi], "-h") || streq(argv[argi], "--help")) { printUsageString(); return 0; } else if (streq(argv[argi], "--version")) { printVersionString(); return 0; } else if (streq(argv[argi], "-a") || streq(argv[argi],"--acceptDupMarks")) { state->acceptDups = true; } else if (streq(argv[argi], "-d") || streq(argv[argi],"--discordantFile")) { state->discordantFileName = getStrVal(++argi, argc, argv); } else if (streq(argv[argi], "-e") || streq(argv[argi],"--excludeDups")) { state->excludeDups = true; } else if (streq(argv[argi], "-i") || streq(argv[argi],"--input")) { state->inputFileName = getStrVal(++argi, argc, argv); if (streq(state->inputFileName, "-")) state->inputFileName = (char *)"stdin"; } else if (streq(argv[argi],"--addMateTags")) { state->addMateTags = true; } else if (streq(argv[argi],"--ignoreUnmated")) { state->ignoreUnmated = true; } else if (streq(argv[argi],"-M")) { state->compatMode = true; // In compatibility mode, both 0x100 and 0x800 are considered chimeric and can be used as splitters. // None will be secondary. complementaryBits = (0x100 | 0x800); secondaryBits = 0; } else if (streq(argv[argi],"--maxReadLength")) { state->maxReadLength = getIntVal(++argi, argc, argv); } else if (streq(argv[argi],"--maxSplitCount")) { state->maxSplitCount = getIntVal(++argi, argc, argv); } else if (streq(argv[argi],"--maxUnmappedBases")) { state->maxUnmappedBases = getIntVal(++argi, argc, argv); } else if (streq(argv[argi],"--minClipSize")) { state->minClip = getIntVal(++argi, argc, argv); } else if (streq(argv[argi],"--minIndelSize")) { state->minIndelSize = getIntVal(++argi, argc, argv); } else if (streq(argv[argi],"--minNonOverlap")) { state->minNonOverlap = getIntVal(++argi, argc, argv); } else if (streq(argv[argi], "-o") || streq(argv[argi],"--output")) { state->outputFileName = getStrVal(++argi, argc, argv); } else if (streq(argv[argi], "-r") || streq(argv[argi],"--removeDups")) { state->removeDups = true; } else if (streq(argv[argi], "-q") || streq(argv[argi], "--quiet")) { state->quiet = true; } else if (streq(argv[argi], "-s") || streq(argv[argi],"--splitterFile")) { state->splitterFileName = getStrVal(++argi, argc, argv); } else if (streq(argv[argi], "-u") || streq(argv[argi],"--unmappedFile")) { state->unmappedClippedFileName = getStrVal(++argi, argc, argv); } else { fprintf(stderr, "samblaster: Unrecognized option: %s\n", argv[argi]); printUsageString(); return 1; } } // Make removeDups imply excludeDups if (state->removeDups) state->excludeDups = true; // Output the version number. printVersionString(); // Error check and open files. // Start with the input. if (!streq(state->splitterFileName, "") && state->minNonOverlap < 1) { char * temp; asprintf(&temp, "samblaster: Invalid minimum non overlap parameter given: %d\n", state->minNonOverlap); fatalError(temp); } if (!streq(state->splitterFileName, "") && state->maxSplitCount < 2) { char * temp; asprintf(&temp, "samblaster: Invalid maximum split count parameter given: %d\n", state->maxSplitCount); fatalError(temp); } if (streq(state->inputFileName, "stdin")) { fprintf(stderr, "samblaster: Inputting from stdin\n"); } else { if (!state->quiet) fprintf(stderr, "samblaster: Opening %s for read.\n", state->inputFileName); state->inputFile = fopen(state->inputFileName, "r"); if (state->inputFile == NULL) fsError(state->inputFileName); } if (streq(state->outputFileName, "stdout")) { if (!state->quiet) fprintf(stderr, "samblaster: Outputting to stdout\n"); } else { if (!state->quiet) fprintf(stderr, "samblaster: Opening %s for write.\n", state->outputFileName); state->outputFile = fopen(state->outputFileName, "w"); if (state->outputFile == NULL) fsError(state->outputFileName); } if (!streq(state->discordantFileName, "")) { if (!state->quiet) fprintf(stderr, "samblaster: Opening %s for write.\n", state->discordantFileName); state->discordantFile = fopen(state->discordantFileName, "w"); if (state->discordantFile == NULL) fsError(state->discordantFileName); } if (!streq(state->splitterFileName, "")) { if (!state->quiet) fprintf(stderr, "samblaster: Opening %s for write.\n", state->splitterFileName); state->splitterFile = fopen(state->splitterFileName, "w"); if (state->splitterFile == NULL) fsError(state->splitterFileName); } if (!streq(state->unmappedClippedFileName, "")) { if (!state->quiet) fprintf(stderr, "samblaster: Opening %s for write.\n", state->unmappedClippedFileName); state->unmappedClippedFile = fopen(state->unmappedClippedFileName, "w"); if (state->unmappedClippedFile == NULL) fsError(state->unmappedClippedFileName); } // Read in the SAM header and create the seqs structure. state->seqLens = (UINT32*)calloc(1, sizeof(UINT32)); //initialize to 0 state->seqOffs = (UINT64*)calloc(1, sizeof(UINT64)); //initialize to 0 state->seqs[strdup("*")] = 0; state->seqLens[0] = padLength(0, state); state->seqOffs[0] = 0; int count = 1; UINT64 totalLen = 0; splitLine_t * line; // Read the first line to prime the loop, and also to allow checking for malformed input. line = readLine(state->inputFile); checkBAMfile(line); while (line != NULL && line->fields[0][0] == '@') { // Process input line to see if it defines a sequence. if (streq(line->fields[0], "@SQ")) { char * seqID = NULL; int seqNum = 0; UINT32 seqLen = 0; UINT64 seqOff = 0; for (int i=1; inumFields; ++i) { if (strncmp(line->fields[i], "SN:", 3) == 0) { seqID = line->fields[i]+3; seqNum = count; count += 1; } else if (strncmp(line->fields[i], "LN:", 3) == 0) { seqLen = (UINT32)padLength(str2int(line->fields[i]+3), state); seqOff = totalLen; totalLen += (UINT64)(seqLen+1); } } // Unless we are marking dups, we don't need to use sequence numbers. if (!state->acceptDups) { // grow seqLens and seqOffs arrays if(seqNum % 32768 == 1) { state->seqLens = (UINT32*)realloc(state->seqLens, (seqNum+32768)*sizeof(UINT32)); state->seqOffs = (UINT64*)realloc(state->seqOffs, (seqNum+32768)*sizeof(UINT64)); } state->seqs[strdup(seqID)] = seqNum; state->seqLens[seqNum] = seqLen; state->seqOffs[seqNum] = seqOff; } } // Output the header line. writeLine(line, state->outputFile); if (state->discordantFile != NULL) writeLine(line, state->discordantFile); if (state->splitterFile != NULL) writeLine(line, state->splitterFile); disposeSplitLines(line); // Read in next line. line = readLine(state->inputFile); } // Output the @PG header lines. printPGsamLine(state->outputFile, state); printPGsamLine(state->discordantFile, state); printPGsamLine(state->splitterFile, state); // Make sure we have a header. if (count == 1 && !state->acceptDups) { fatalError("samblaster: Missing header on input sam file. Exiting.\n"); } // Don't count the "*" entry. fprintf(stderr, "samblaster: Loaded %d header sequence entries.\n", count-1); // Make sure we have any more lines to process. if (line == NULL) { fprintf(stderr, "samblaster: No reads in input SAM file.\n"); return 0; } // We can now calculate the size of the signatures array, and intialize it. if (!state->acceptDups) { // Make sure we can handle the number of sequences. int binCount = (totalLen >> BIN_SHIFT); if (binCount >= (1 << 15)) { fatalError("samblaster: Too many sequences in header of input sam file. Exiting.\n"); } state->binCount = binCount; state->sigArraySize = (binCount * 2 + 1) * (binCount * 2 + 1)+1; state->sigs = (sigSet_t *) malloc(state->sigArraySize * sizeof(sigSet_t)); if (state->sigs == NULL) fatalError("samblaster: Unable to allocate signature set array."); for (UINT32 i=0; isigArraySize; i++) hashTableInit(&(state->sigs[i])); } // Now start processing the alignment records. // line already has the first such line in it unless the file only has a header. // Keep a ptr to the end of the current list. splitLine_t * last = line; count = 1; while (true) { splitLine_t * nextLine = readLine(state->inputFile); if (nextLine == NULL) break; if (strcmp(line->fields[QNAME], nextLine->fields[QNAME]) != 0) { processSAMBlock(line, state); last = line = nextLine; count = 1; } else { // If we want the SAM lines to be in the output in the same order as the input.... // we need to be a little careful about how we make the list. last->next = nextLine; last = nextLine; count += 1; } } // We need to process the final set. processSAMBlock(line, state); // Print the runtime stats. printRunStats(state); // Close files. if (!streq(state->inputFileName, "stdin")) fclose(state->inputFile); if (!streq(state->outputFileName, "stdout")) fclose(state->outputFile); if (state->discordantFile != NULL) fclose(state->discordantFile); if (state->splitterFile != NULL) fclose(state->splitterFile); if (state->unmappedClippedFile != NULL) fclose(state->unmappedClippedFile); // Clean up the heap. cleanUpSplitLines(); deleteState(state); freeHashTableNodes(); return 0; } samblaster-v.0.1.26/sbhash.cpp000066400000000000000000000235421366622051700161730ustar00rootroot00000000000000/* -*- Mode: C++ ; indent-tabs-mode: nil ; c-file-style: "stroustrup" -*- Project: samblaster Fast mark duplicates in read-ID grouped SAM file. Also, optionally pull discordants, splitters, and/or unmappend/clipped reads. Author: Greg Faust (gf4ea@virginia.edu) Date: October 2013 File: sbhash.cpp code file for our hash table. License Information: Copyright 2013-2020 Gregory G. Faust Licensed under the MIT license (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/MIT */ #include #include #include #include #include #include #include #include "sbhash.h" /////////////////////////////////////////////////////////////////////////////// // Slab Allocator common code /////////////////////////////////////////////////////////////////////////////// // We will lazily allocate more slabs when needed, and only clean up at the end. ////////////////////////////////////////////////////////////////////////////// void fatalError(const char * errorStr); void checkFSerrWithFilename (ssize_t returnCode) { if (returnCode == -1) { char * temp; if (errno == ENOMEM) temp = (char *)"samblaster: Insufficient memory available to satisfy allocation request.\n"; else asprintf(&temp, "File system error %d trying to allocate or free memory\n", errno); fatalError(temp); } } // Allocate big blocks of memory. char * blockMalloc(ssize_t size) { char * retval = (char *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, 0, 0); checkFSerrWithFilename((ssize_t)retval); return retval; } // Free big blocks of memory. Not the size is needed. void blockFree(char * ptr, ssize_t size) { int err = munmap(ptr, size); checkFSerrWithFilename(err); } typedef struct LBMallocBlock LBMallocBlock_t; struct LBMallocBlock { char * block; // Pointer to the payload block LBMallocBlock_t * next; // Pointer to the next allocation block size_t size; // Size of the allocated block }; char * pushNewLBMallocBlock(int blockSize, LBMallocBlock_t **blockArrayPtr) { char * newBlock = blockMalloc(blockSize); LBMallocBlock_t * newMallocBlock = (LBMallocBlock_t *)malloc(sizeof(LBMallocBlock_t)); if (newMallocBlock == NULL) fatalError("samblaster: Insufficeint memory available to allocate (more) objects.\n"); newMallocBlock->size = blockSize; newMallocBlock->block = newBlock; newMallocBlock->next = *blockArrayPtr; *blockArrayPtr = newMallocBlock; return newBlock; } void freeLBMallocBlocks(LBMallocBlock_t * block) { while (block != NULL) { LBMallocBlock_t * nextBlock = block->next; blockFree(block->block, block->size); free(block); block = nextBlock; } } /////////////////////////////////////////////////////////////////////////////// // Hash Table Collision Nodes /////////////////////////////////////////////////////////////////////////////// #define newNodeCount 4096 // Ptr to head of linked list of allocated node slabs. LBMallocBlock_t * nodeBlockList = NULL; // Ptr to head of linked list of free node objects. hashNode_t * hashNodeFreeList = NULL; void makeMoreHashNodes() { hashNode_t * nodeArray = (hashNode_t *)pushNewLBMallocBlock(sizeof(hashNode_t) * newNodeCount, &nodeBlockList); for (int i=1; inext = (nodeArray + i); } (nodeArray + (newNodeCount - 1))->next = NULL; hashNodeFreeList = nodeArray; } hashNode_t * getHashNode() { if (hashNodeFreeList == NULL) makeMoreHashNodes(); hashNode_t * node = hashNodeFreeList; hashNodeFreeList = hashNodeFreeList->next; node->next = NULL; for (int i=0; ivalues[i] = 0; return node; } // I don't think this is currently being called, as we always put the entire string of nodes on the freelist. void disposeHashNode(hashNode_t * node) { node->next = hashNodeFreeList; hashNodeFreeList = node; } void freeHashTableNodes() { freeLBMallocBlocks(nodeBlockList); } /////////////////////////////////////////////////////////////////////////////// // Hash Table /////////////////////////////////////////////////////////////////////////////// // We are going to depend on an old hack. // ptrs to 8 byte things will be 8 byte aligned. // Therefore, the lower 3 bits will be zero. // Also, no known chromosome offset requires all 32 bits. // So we will roll the signature up one bit and put a one there. // We can then tell apart the three following state for a table entry: // 0 -> empty bucket // low bit 1 -> value // low bit 0 -> ptr to overflow nodes. /////////////////////////////////////////////////////////////////////////////// inline UINT64 makeValue(UINT64 value) { return (value << 1) | 1; } inline UINT64 unmakeValue(UINT64 value) { return (value >> 1); } inline hashNode_t * makePtr(UINT64 value) { return (hashNode_t *)value; } inline bool isEmpty(UINT64 value) { return (value == 0); } inline bool isValue(UINT64 value) { return ((value & 1) != 0); } #define numOfSizes 27 static UINT32 hashTableSizes [] = {0, 23, 47, 97, 199, 409, 823, 1741, 3739, 7517, 15173, 30727, 62233, 126271, 256279, 520241, 1056323, 2144977, 4355707, 8844859, 17961079, 36473443, 74066549, 150406843, 305431229, 620239453, 1259520799}; inline UINT32 hash(UINT64 value) { return (UINT32)value; } void hashTableInit(hashTable_t * ht, int size) { ht->entries = 0; ht->size = size; if (size == 0) { ht->table = (UINT64 *)NULL; return; } ht->table = (UINT64 *)calloc(ht->size, sizeof(UINT64)); if (ht->table == NULL) fatalError("samblaster: unable to allocate hash table.\n"); } hashTable_t * makeHashTable() { hashTable_t * ht = (hashTable_t *)malloc(sizeof(hashTable_t)); if (ht == NULL) fatalError("samblaster: unable to allocate hash table.\n"); hashTableInit(ht, hashTableSizes[0]); return ht; } // Use a C++ style destructor so that arrays of hash tables will be cleaned up automagically. hashTable::~hashTable() { if (table != NULL) free(table); } // C style delete. void deleteHashTable(hashTable_t * ht) { if (ht->table != NULL) free(ht->table); } void resizeHashTable(hashTable_t * ht) { // Find out what size table is next. int newsize = 0; for (int i=0; isize) { newsize = hashTableSizes[i+1]; break; } } // Remember the current values array. UINT64 * oldtable = ht->table; int size = ht->size; // Now reinit the hash table with a new table, etc. hashTableInit(ht, newsize); // Now iterate over all values and rehash them into the new table. for (int i=0; ivalues[j]; if (isEmpty(value)) break; hashTableInsert(ht, unmakeValue(value)); } if (node->next == NULL) break; node = node->next; } // We need to free up the nodes. // TODO move out of line. node->next = hashNodeFreeList; hashNodeFreeList = makePtr(oldtable[i]); } // Free up the oldtable. if (oldtable != NULL) free(oldtable); } bool hashTableInsert(hashTable_t * ht, UINT64 value) { // See if we have reached our size limit. if (ht->entries == ht->size) resizeHashTable(ht); int bucket = hash(value) % ht->size; // We need to empty the low order bit so that we can tell the difference between values and ptrs. value = makeValue(value); UINT64 curvalue = ht->table[bucket]; // The empty case should be most common. if (isEmpty(curvalue)) { ht->table[bucket] = value; ht->entries += 1; return true; } // The value case should be next most common. if (isValue(curvalue)) { // The value is already here. if (curvalue == value) return false; // We have a collision and need to add an overflow node. hashNode_t * node = getHashNode(); ht->table[bucket] = (UINT64)node; node->values[0] = curvalue; // Note that this test doesn't cost us anything as it happens at compile time. if (HASHNODE_PAYLOAD_SIZE >= 2) { node->values[1] = value; } else { // We need to add a second new node. hashNode_t * secondNode = getHashNode(); node->next = secondNode; secondNode->values[0] = value; } ht->entries += 1; return true; } // The overflow node case. hashNode_t * curNode = makePtr(curvalue); while (true) { for (int i=0; ivalues[i] == 0) { curNode->values[i] = value; ht->entries += 1; return true; } // Check if the value matches the current value. if (curNode->values[i] == value) return false; } if (curNode->next == NULL) break; curNode = curNode->next; } // If we are here, we need a new node. hashNode_t * node = getHashNode(); curNode->next = node; node->values[0] = value; ht->entries += 1; return true; } samblaster-v.0.1.26/sbhash.h000066400000000000000000000034561366622051700156420ustar00rootroot00000000000000/* -*- Mode: C++ ; indent-tabs-mode: nil ; c-file-style: "stroustrup" -*- Project: samblaster Fast mark duplicates in read-ID grouped SAM file. Also, optionally pull discordants, splitters, and/or unmappend/clipped reads. Author: Greg Faust (gf4ea@virginia.edu) Date: October 2013 File: sbhash.h header file for our hash table. License Information: Copyright 2013-2016 Gregory G. Faust Licensed under the MIT license (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/MIT */ #include #include #include // Rename common integer types. // I like having these shorter name. typedef uint64_t UINT64; typedef uint32_t UINT32; /////////////////////////////////////////////////////////////////////////////// // Hash Table Collision Nodes /////////////////////////////////////////////////////////////////////////////// // This controls the number of data values to store in each hadnNode. #define HASHNODE_PAYLOAD_SIZE 3 typedef struct hashNode hashNode_t; struct hashNode { hashNode_t * next; UINT64 values[HASHNODE_PAYLOAD_SIZE]; }; hashNode_t * getHashNode(); void disposeHashNode(hashNode_t * node); /////////////////////////////////////////////////////////////////////////////// // Hash Table /////////////////////////////////////////////////////////////////////////////// typedef struct hashTable hashTable_t; struct hashTable { UINT64 * table; UINT32 size; UINT32 entries; ~hashTable(); }; hashTable_t * makeHashTable(); void deleteHashTable(hashTable_t * ht); bool hashTableInsert(hashTable_t * ht, UINT64 value); void hashTableInit(hashTable_t * ht, int size=0); void freeHashTableNodes();