SAMCLIP(1)
π NAME π
samclip β bestie, it filters your SAM file so you only keep the alignments that aren't all soft-clipped and hard-clipped. That's the whole vibe. soft and hard clipped alignments get the βοΈ treatment, everything else stays. Periodt.
β¨ SYNOPSIS β¨
samclip --ref ref.fa < in.sam > out.sam
Like, that's it. Point it at your reference, feed it a SAM on stdin, catch a SAM on stdout. Iconic behaviour, honestly. π
π¦ USAGE π¦
In connection with minimap2
Okay so this is the main character pipeline, the one you'll actually use. minimap2 does the aligning, samclip does the filtering, samtools does the sorting, and you get a BAM at the end like a little gift π
minimap2 ref.fa R1.fq R2.fq | samclip --ref ref.fa | samtools sort > out.bam
The pipes are doing SO much work here and I respect them so much. π«Ά
πΈ DESCRIPTION πΈ
Filter SAM file for soft & hard clipped alignments.
That's the mission statement, no notes. If an alignment is too clipped, it's out. If it's chillin' with a reasonable clip length, it stays. Simple as. π
π OPTIONS π
--helpβ Prints the help text so you can remind yourself what you're doing. Your little cheat sheet. π--versionβ Prints the version and immediately exits. Short, sweet, no small talk. β¨--ref FASTAβ Your reference genome, bestie. It needs aFASTA.faiindex β so make sure that index exists or this whole thing is gonna be giving nothing. π--max NUMβ The maximum clip length you're willing to allow. Default is5. Anything longer than this gets filtered. So like, keep it tight. βοΈ--invertβ Flips the whole thing: outputs the rejected SAM lines and ignores the good ones. Not me being a hater, but this is literally the hater mode of the tool. π--debugβ Prints verbose debug info tostderr. For when you NEED to know what's going on in there. π--progress Nβ Prints progress every NUM records. Default is100000, andnone=0if you want it to shut up entirely. π€«
π₯ SEE ALSO π₯
https://github.com/tseemann/samclip
Go. Look. It's right there. π
π AUTHOR π
This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program.
Shoutout to Andreas fr fr. π«‘
samclip 0.4.0 β May 2020. That's the version, that's the date, and that's the whole page bestie, mwah π go filter some alignments πβ¨
π¦ where this page comes from
- debian bookworm: samclip 0.4.0-4 Β· GPL-3.0-only
- debian trixie: samclip 0.4.0-4 Β· GPL-3.0-only
- ubuntu jammy: samclip 0.4.0-3 Β· GPL-3.0-only
- ubuntu noble: samclip 0.4.0-4 Β· GPL-3.0-only
- ubuntu questing: samclip 0.4.0-4
- ubuntu resolute: samclip 0.4.0-4build1 Β· GPL-3.0-only
- ubuntu stonking: samclip 0.4.0-4build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms