devider is a method that separates long reads (Nanopore or PacBio) of a mixture of sequences into groups with similar alleles. This is called "phasing" or "haplotyping".
devider is a "local haplotyping" method, so it works best when the sequence-of-interest is approximately the size of the reads. For bacterial genome-scale haplotyping, consider another tool such as floria.
High-depth, heterogeneous sequencing that spans a 1kb gene.
Separated groups ("haplotypes") after running devider.
Similar tools exist for detection of similar haplotypes in mixtures. devider was developed to fill the following gaps:
[!NOTE] As of 2024-10-12, conda install is not ready yet. Will be available in the next few days.
mamba install -c bioconda devider
devider -h
wget https://github.com/bluenote-1577/devider/releases/download/latest/devider
chmod +x devider
./devider
See the installation instructions on the wiki if you want want to compile devider (written in Rust) or you're not on x86-64 CPUs.
git clone https://github.com/bluenote-1577/devider
cd devider
devider -b hiv_test/3000_95_3.bam -v hiv_test/3000_95_3.vcf.gz -r hiv_test/OR483991.1.fasta -o devider_output
# results folder
ls devider_output
git clone https://github.com/bluenote-1577/devider
cd devider
run_devider_pipeline -i hiv_test/3000_95_3.fastq.gz -r hiv_test/OR4839901.1.fasta -o devider_pipeline_output
# results folder
ls devider_pipeline_output
# intermediate files (bam + vcf files)
ls devider_pipeline_output/pipeline_files
[!NOTE] If you did not install via conda, do the following instead.
sh mamba install -c bioconda tabix samtools lofreq minimap2 git clone https://github.com/bluenote-1577/devider ./devider/scripts/run_devider_pipeline -i reads.fq.gz -r reference.fa -o pipeline_output
Forthcoming.
$ claude mcp add devider \
-- python -m otcore.mcp_server <graph>