You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are of course several great and widely used packages of bioinformatics helper programs out there. Some of these include the likes of seqkit, seqtk, fastX-toolkit, and bbtools β all of which I use regularly and have helped me do things I was trying to get done. But there are always more tasks that crop up that may not yet have a helper program or script already written that we can find.
bit is a collection of programs and workflows that I have been adding to over the years. If I need to write something to perform a task that has more than a one-off, ad hoc use, I consider adding it here.
bit runs in a Unix-like environment and is recommended to be installed with conda as shown below.
Quick start
conda create -n bit -c astrobiomike -c conda-forge -c bioconda -c defaults bit
conda activate bit
Programs
You can see an overview of available programs like below by running bit by itself at the command line once it's installed. All commands have regular help menus, some have detailed ones accessible by adding -H.
NCBI/GTDB-related
Program
Purpose
bit dl-ncbi-assemblies
download NCBI assemblies in different formats given input accessions
bit dl-sra-reads
download reads from NCBI's SRA given run accessions, combining multiple runs of a sample if wanted
bit get-accs-from-gtdb
search the GTDB by taxonomy and retrieve NCBI accessions
bit get-accs-from-ncbi
search the NCBI by taxonomy or taxid and retrieve NCBI accessions
Sequence simulation and manipulation
Program
Purpose
bit gen-mg
generate an in silico metagenome with ground-truth tables in GTDB and NCBI taxonomies
bit gen-reads
generate reads from fasta files, introducing variation if wanted
bit mutate-seqs
introduce point mutations (substitutions/indels) into nucleotide or amino-acid fasta files
bit add-insertion
add insertions into nucleotide or amino-acid fasta sequences
Coverage/mapping-related
Program
Purpose
bit cov-analyzer
analyze coverage patterns from a bam + reference fasta to identify regions of relatively higher or lower coverage
bit cov-stats
get detection, coverage, and mean percent ID for single or multiple references given fasta(s) and a bam
bit mapped-read-stats
get percent ID and other information for mapped reads in a bam
Sequence searching/comparing
Program
Purpose
bit aa-diff
compare a query sequence to an amino-acid reference and report differences
bit find-overrep-seqs
find and count overrepresented sequences in short reads (e.g., primers) without knowing them ahead of time, allowing for errors
bit match-reads
assign reads to reference sequences they match exactly (or nearly exactly within a set edit distance)
Program: bit ez-screen
Subcommand
Purpose
assembly
runs blast-based screening of targets in assemblies
reads
runs mapping-based screening of reads against targets
Read QC
Program
Purpose
bit filter-foldbacks
remove fold-back artifacts of PTA/MDA from short or long reads
Fasta utilities
Program: bit fasta
Subcommand
Purpose
calc-gc
calculate GC content per sequence or for the full file
calc-var-in-msa
calculate variation in each column of a multiple-sequence alignment
count
count and summarize bases or sequences
extract-by-coords
extract sequences by genomic coordinates
extract-by-headers
extract sequences by header names
extract-by-primers
extract sequences based on primer sequences
filter-by-length
filter sequences by minimum/maximum length
modify-headers
rename or reformat sequence headers
remove-wraps
remove soft line wraps
to-bed
convert fasta to BED format
to-genbank
convert fasta to GenBank format
Assembly-related
Program
Purpose
bit assemble
simple wrapper for assembly with optional quality trimming and normalization
bit summarize-assembly
quickly summarize nucleotide assemblies
bit characterize-genomes
get summary stats, quality estimates, and taxonomy of genomes
bit classify-seqs
assign taxonomy to contigs or high-quality long reads (e.g., HiFi)
GenBank-format utilities
Program: bit genbank
Subcommand
Purpose
to-AA-seqs
extract amino acid sequences
to-cds-tsv
extract CDS info to a TSV
to-cds-seqs
extract CDS nucleotide sequences
to-fasta
extract nucleotide sequences
Taxonomy and lineage helpers
Program: bit kraken2
Subcommand
Purpose
tax-plots
generate standard taxonomy barplots from kraken2/bracken outputs
tax-summary
generate summary tables from kraken2/bracken outputs
Program: bit lineage
Subcommand
Purpose
from-taxids
get full lineage info from a list of NCBI taxon IDs
to-tsv
reformat lineage info to a TSV
Table utilities
Program: bit table
Subcommand
Purpose
colnames
print column names with numbers (handy for cut/awk)
filter
filter a table based on wanted strings
normalize
normalize to CPM or with the DESeq2 median-ratio method
download or update bit-utilized reference databases, or grab test data
locations
check or set data-location environment variables
Each subcommand has a help menu accessible by either entering the command alone or by providing -h as the only argument. You can see an overview of all available subcommands by running bit by itself.
Workflows
Larger snakemake workflows packaged with bit are run with bit run-wf, e.g., bit run-wf metagenomics -r reads-dir/. They currently include:
processes short-read amplicon data through to ASVs, a count table, and a taxonomy table largely with dada2
Each has a concise help menu (-h) and a detailed one listing every setting (-H). See the workflows page for usage details, outputs, and how to save a copy of a workflow to modify.
Conda install
If you are new to the wonderful world of conda and want to learn more, one place you can start learning about it is here π
It's best to install bit in its own environment as shown below:
conda create -n bit -c astrobiomike -c conda-forge -c bioconda -c defaults bit
conda activate bit
Once installed, each subcommand has a help menu accessible by either entering the command alone or by providing -h as the only argument. You can see an overview of all available subcommands by running bit by itself.
Citation info
If you happen to find bit useful in your work, please be sure to cite it π
You can get the version you are using by adding the -v or --version flag to any of the programs.
If you are using a program in bit that also leverages another program, please be sure to cite them too. For instance, the bit go subcommands use goatools. For cases where bit relies on other programs like those, it will be indicated in the help menu of that bit program.