Download 4 SRA samples and run single-sample assembly with co-binning.
binchicken single \
--forward SRR14271365 SRR14271372 ERR2281802 ERR2281803 --sra \
--cores 16 --output binchicken_single_assembly
The suggested assemblies with their respective binning samples can be found at
binchicken_single_assembly/coassemble/target/elusive_clusters.tsv
.
The actual assembly and binning can be run by adding --run-aviary
.
This will produce metagenome-assembled genomes (MAGs) from each sample.
binchicken single \
--forward SRR14271365 SRR14271372 ERR2281802 ERR2281803 --sra \
--run-aviary --cores 64 --output binchicken_single_assembly
The outputs from the previous command can be used as inputs to perform iterative coassembly. This means that coassembly will be prioritised for combinations of samples with the most unrecovered diversity (i.e. the most marker genes not present in previously recovered genomes).
We can start with 2-sample coassembly, then move to 3-sample coassembly.
# Assemble and recover from 2-sample coassemblies
binchicken iterate \
--coassemble-output binchicken_single_assembly \
--run-aviary --cores 64 --output binchicken_2_coassembly
# Perform another iteration of coassembly, with 3-samples this time
binchicken iterate \
--coassembly-samples 3 --coassemble-output binchicken_2_coassembly \
--run-aviary --cores 64 --output binchicken_3_coassembly
As you might expect from checking the sample sources (e.g. SRR14271365), the SRR14271365/SRR14271372 and ERR2281802/ERR2281803 pairs are suggested for coassembly.
And, since we only have 2 samples from each group with no overlap, there are no suggested 3-sample coassemblies.
Alternatively, you can start with coassembly, optionally providing your own genomes.
binchicken coassemble \
--forward SRR14271365 SRR14271372 ERR2281802 ERR2281803 --sra \
--genomes-list genomes.txt \
--run-aviary --cores 64 --output binchicken_coassembly
Tests can be run if installed from source to ensure Bin Chicken is installed correctly. The subcommand tests can take upwards of 30 minutes to complete using a single thread. The manual tests can take multiple days to complete, using 64 threads.
# Test single subcommand
python test/test_single.py
# Test coassemble subcommand
python test/test_coassemble.py
# Test iterate subcommand
python test/test_iterate.py
# Test downloading and coassembly/recovery with Aviary. Results stored in example/test_* directories.
python test/test_manual.py
Powered by Doctave