BAMFILLQUERY(1)

πŸ’– BAMFILLQUERY πŸ’–

okay bestie, welcome to bamfillquery from the BIOBAMBAM collection β€” General Commands Manual energy, group-chat delivery. sit down, hydrate, let's go 🫢


✨ NAME ✨

bamfillquery β€” fill query sequences into BAM files 🧬✨


🌸 SYNOPSIS 🌸

bamfillquery [options] <in.bam queries.fasta >out.bam

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically bamfillquery reads a SAM/BAM/CRAM file and a FastA file, copies the sequences it finds in that FastA file into the query sequence field of the SAM/BAM/CRAM file, and writes the whole resulting glow-up out to a SAM/BAM/CRAM file. it's giving "put the sequence back where it belongs" πŸ’…

⚠️ heads up bestie: both the alignment input file and the FastA file need to be sorted by query name. no cap. if they're not, go see bamsort or bamsormadup to get the SAM/BAM/CRAM file into that order first. πŸ™ˆ

The following key=value pairs can be given:


πŸŽ€ level=<-1|0|1|9|11>

set the compression level of the output BAM file. the valid values are, and I quote:

  • -1 β€” zlib/gzip default compression level
  • 0 β€” uncompressed
  • 1 β€” zlib/gzip level 1 (fast) compression
  • 9 β€” zlib/gzip level 9 (best) compression

and if libmaus has been compiled with support for igzip (see https://software.intel.com/en-us/articles/igzip-a-high-performance-deflate-compressor-with-optimizations-for-genomic-data) then there's one more valid value for you:

  • 11 β€” igzip compression πŸ”₯

πŸŽ€ verbose=<1>

valid values are:

  • 1 β€” print progress report on standard error
  • 0 β€” do not print progress report

πŸŽ€ tmpfile=<filename>

prefix for temporary files. by default the temporary files are created in the current directory. πŸ—‚οΈ

πŸŽ€ md5=<0|1>

md5 checksum creation for the output file. valid values are:

  • 0 β€” do not compute checksum. this is the default.
  • 1 β€” compute checksum. if the md5filename key is set, then the checksum is written to the given file. if md5filename is unset, then no checksum will be computed. (yes, really β€” set the key, bestie πŸ’€)

πŸŽ€ md5filename

file name for md5 checksum if md5=1.

πŸŽ€ index=<0|1>

compute BAM index for output file. valid values are:

  • 0 β€” do not compute BAM index. this is the default.
  • 1 β€” compute BAM index. if the indexfilename key is set, then the BAM index is written to the given file. if indexfilename is unset, then no BAM index will be computed.

πŸŽ€ indexfilename

file name for BAM index if index=1.

πŸŽ€ inputformat=<bam>

input file format. all versions of bamsort come with support for the BAM input format. if the program in addition is linked to the io_lib package, then the following options are valid:

πŸŽ€ outputformat=<bam>

output file format. all versions of bamsort come with support for the BAM output format. if the program in addition is linked to the io_lib package, then the following options are valid:

πŸŽ€ I=<[stdin]>

input filename, standard input if unset. 🌊

πŸŽ€ O=<[stdout]>

output filename, standard output if unset. 🌊

πŸŽ€ inputthreads=<[1]>

input helper threads, only valid for inputformat=bam. ⚑

πŸŽ€ outputthreads=<[1]>

output helper threads, only valid for outputformat=bam. ⚑

πŸŽ€ reference=<[]>

reference FastA file for inputformat=cram and outputformat=cram. an index file (.fai) is required. πŸ“Ž


πŸ‘‘ AUTHOR πŸ‘‘

Written by German Tischler. (an icon, fr fr)


πŸ› REPORTING BUGS πŸ›

Report bugs to <germant@miltenyibiotec.de>


Copyright Β© 2009-2016 German Tischler, Β© 2011-2013 Genome Research Limited. License GPLv3+: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


and that's the whole page, bestie 🫢 this was the BIOBAMBAM release, dated August 2017 β€” BAMFILLQUERY(1), out. slay, stay sorted by query name, and drink some water πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ