nuc-bed
Quick Start
- Command:
nucBed -fi reference.fa -bed intervals.bed [options] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/nucBed - Full reference: See
references/help.md
When To Use This Tool
- Compute AT / GC fraction and base counts for genomic intervals.
- Profile interval sequence composition against a reference FASTA.
- Extract sequence alongside composition with
-seq. - Count user-defined sequence motifs with
-pattern, optionally case-insensitive via-C.
Common Patterns
# 1) Basic nucleotide composition over intervals
nucBed \
-fi reference.fa \
-bed peaks.bed
# 2) Strand-aware sequence composition with extracted sequence
nucBed \
-fi reference.fa \
-bed transcripts.bed \
-s \
-seq
# 3) Count motif occurrences inside intervals
nucBed \
-fi reference.fa \
-bed peaks.bed \
-pattern CG \
-C
Recommended Workflow
- Ensure FASTA headers and interval chromosome names refer to the same coordinate system.
- Start with the default composition output before adding sequence extraction or motif counting.
- Add
-sonly when the strand of the intervals matters for interpretation. - Validate a few rows manually when motif counts or sequence extraction drive downstream conclusions.
Guardrails
-fiand-bedare both required.-patternis case-sensitive unless-Cis added.-fullHeaderchanges FASTA header matching behavior; use it only if the interval identifiers depend on full deflines rather than the first token.-seqincreases output width substantially by appending extracted sequence text.- Prefer
-hfor help; GNU-style--help/--versioncalls on these wrappers are noisy.