table of contents
FILTERBAM(1) | FILTERBAM(1) |
NAME¶
filterBam - filter BAM file for use with AUGUSTUS tools
SYNOPSIS¶
filterBam --in in.bam --out out.bam [options]
DESCRIPTION¶
The input file must be sorted lexicographically by 'queryname', with e.g.
E.g.
export LC_ALL=C
samtools view -H file.bam > file_sorted.sam
samtools view file.bam | sort -k 1 >> file_sorted.sam
samtools view -bS file_sorted.sam > file_sorted.bam
[be aware: 'export LC_ALL=C' might be used because sort ignores characters like ':']
Also, please bear in mind that this will require converting your BAM file into SAM.
samtools sort -n -o file_sorted.bam file.bam
For more information check the man page included in samtools distribution.
bamtools sort -byname -in file.bam -out file_sorted.bam
but only provides the option to do it by queryname.
OPTIONS¶
Mandatory options¶
-i, --in=in.bam
-o, --out=out.bam
Optional options¶
-u, --uniq
-q f, --uniqThresh=f
-b, --best
-e n, --minId=n
-c n, --minCover=n
-n, --noIntrons
-l n, --insertLimit=n
-s n, --maxSortesTest=n
-p, --paired
-w, --pairwiseAlignments
-x n, --maxIntronLen=n
-d file, --pairBedFile=file
-g file, --commonGeneFile=file
-t n, --threads=n
-v, --verbose
-h, --help
AUTHORS¶
AUGUSTUS was written by M. Stanke, O. Keller, S. König, L. Gerischer and L. Romoth.
ADDITIONAL DOCUMENTATION¶
An exhaustive documentation can be found in the file /usr/share/doc/augustus/README.md.gz.