MCPcopy Index your code
hub / github.com/BinPro/CONCOCT

github.com/BinPro/CONCOCT @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
213 symbols 661 edges 37 files 82 documented · 38% updated 6y ago1.1.0 · 2019-08-02★ 14071 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CONCOCT 1.1.0 Build Status

A program for unsupervised binning of metagenomic contigs by using nucleotide composition, coverage data in multiple samples and linkage data from paired end reads.

Please Cite

If you use CONCOCT in your publication, please cite:

Johannes Alneberg, Brynjar Smári Bjarnason, Ino de Bruijn, Melanie Schirmer, Joshua Quick, Umer Z Ijaz, Leo Lahti, Nicholas J Loman, Anders F Andersson & Christopher Quince. 2014. Binning metagenomic contigs by coverage and composition. Nature Methods, doi: 10.1038/nmeth.3103

Documentation

A comprehensive documentation for concoct is hosted on readthedocs.

Basic Usage

Cut contigs into smaller parts

cut_up_fasta.py original_contigs.fa -c 10000 -o 0 --merge_last -b contigs_10K.bed > contigs_10K.fa

Generate table with coverage depth information per sample and subcontig. This step assumes the directory 'mapping' contains sorted and indexed bam files where each sample has been mapped against the original contigs.

concoct_coverage_table.py contigs_10K.bed mapping/Sample*.sorted.bam > coverage_table.tsv

Run concoct

concoct --composition_file contigs_10K.fa --coverage_file coverage_table.tsv -b concoct_output/

Merge subcontig clustering into original contig clustering

merge_cutup_clustering.py concoct_output/clustering_gt1000.csv > concoct_output/clustering_merged.csv

Extract bins as individual FASTA

mkdir concoct_output/fasta_bins
extract_fasta_bins.py original_contigs.fa concoct_output/clustering_merged.csv --output_path concoct_output/fasta_bins

Support

Gitter If you are having trouble running CONCOCT or interpretting any results, please don't hesitate to write a question in our gitter channel.

Contribute

Core symbols most depended-on inside this repo

get_approved_bins
called by 5
scripts/extract_scg_bins.py
decomposeMatrix
called by 4
c-concoct/c_vbgmm_fit.c
sum_bases_in_bins
called by 4
scripts/extract_scg_bins.py
is_within_region
called by 4
scripts/bam_to_linkage.py
performMStepMP
called by 3
c-concoct/c_vbgmm_fit.c
generate_feature_mapping
called by 3
concoct/input.py
get_winning_bins
called by 3
scripts/extract_scg_bins.py
calcVBL_MP
called by 2
c-concoct/c_vbgmm_fit.c

Shape

Function 118
Method 78
Class 17

Languages

Python85%
C13%
C++2%

Modules by API surface

c-concoct/c_vbgmm_fit.c24 symbols
tests/test_integration.py17 symbols
scripts/bam_to_linkage.py16 symbols
scripts/dnadiff_dist_matrix.py15 symbols
scripts/tests/test_dnadiff_dist_matrix.py11 symbols
scripts/contig_read_count_per_genome.py9 symbols
tests/test_unittest_input.py8 symbols
tests/test_gen_input_table.py8 symbols
tests/test_COG_table.py8 symbols
scripts/tests/test_extract_scg_bins.py8 symbols
scripts/COG_table.py8 symbols
concoct/input.py8 symbols

For agents

$ claude mcp add CONCOCT \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact