Skip to content

Commit

Permalink
Updating to v0.9.96
Browse files Browse the repository at this point in the history
- Fixed indentation bugs that prevented Falco or FastQC from running during the `clean` step and the subsampling of reads during the `assemble` step
- Secret feature, coding genes databases can also be extracted as nucleotide


Former-commit-id: bd8927c
  • Loading branch information
edgardomortiz committed Aug 23, 2023
1 parent 037b4ce commit e1b37c1
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 35 deletions.
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/captus/README.html) [![Bioconda downloads](https://anaconda.org/bioconda/captus/badges/downloads.svg)](https://anaconda.org/bioconda/captus) [![Version in Bioconda](https://anaconda.org/bioconda/captus/badges/version.svg)](https://anaconda.org/bioconda/captus) [![Last updated](https://anaconda.org/bioconda/captus/badges/latest_release_date.svg)](https://github.com/edgardomortiz/Captus/releases)
___
## Installation
## INSTALLATION
### Using micromamba
The fastest way to install `Captus` is to create an isolated software environment using `micromamba` (https://mamba.readthedocs.io/en/latest/installation.html), if you don't have `micromamba` it can very easily be installed:
For linux with `bash` shell:
Expand Down Expand Up @@ -79,23 +79,25 @@ And if the program was correctly installed you will see the main help page of Ca
```text
usage: captus_assembly command [options]
Captus 0.9.90: Assembly of Phylogenomic Datasets from High-Throughput Sequencing data
Captus 0.9.96: Assembly of Phylogenomic Datasets from High-Throughput Sequencing data
Captus-assembly commands:
command Program commands (in typical order of execution)
clean = Trim adaptors and quality filter reads with BBTools, run
FastQC on the raw and cleaned reads
assemble = Perform de novo assembly with MEGAHIT: Assembling reads
that were cleaned with the 'clean' command is
recommended, but reads cleaned elsewhere are also allowed
extract = Recover targeted markers with BLAT and Scipio: Extracting
markers from the assembly obtained with the 'assemble'
command is recommended, but any other assemblies in FASTA
format are also allowed.
align = Align extracted markers across samples with MAFFT or MUSCLE:
Marker alignment depends on the directory structure created
by the 'extract' command. This step also performs paralog
filtering and alignment trimming using ClipKIT
clean = Trim adaptors and quality filter reads with BBTools,
run FastQC on the raw and cleaned reads
assemble = Perform de novo assembly with MEGAHIT: Assembling
reads that were cleaned with the 'clean' command is
recommended, but reads cleaned elsewhere are also
allowed
extract = Recover targeted markers with BLAT and Scipio:
Extracting markers from the assembly obtained with
the 'assemble' command is recommended, but any other
assemblies in FASTA format are also allowed
align = Align extracted markers across samples with MAFFT or
MUSCLE: Marker alignment depends on the directory
structure created by the 'extract' command. This step
also performs paralog filtering and alignment trimming
using ClipKIT
Help:
-h, --help Show this help message and exit
Expand All @@ -105,7 +107,6 @@ For help on a particular command: captus_assembly command -h
ERROR: Missing command
```

## Usage
## USAGE

Documentation and tutorials available at https://edgardomortiz.github.io/captus.docs/
11 changes: 6 additions & 5 deletions captus/assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def assemble(full_command, args):
" single-end. Sample names are derived from the text found before the '_R1' string."
)
skipped_subsample = []
skipped_assemble = []
if args.sample_reads_target > 0:
fastqs_to_subsample, skipped_subsample = find_and_match_fastqs(args.reads)
skip_subsampling = False
Expand Down Expand Up @@ -152,11 +153,11 @@ def assemble(full_command, args):
log.log(f'{"":>{mar}} {dim("A directory will be created for every sample")}')
log.log("")

if skipped_subsample:
log.log(f'{bold("WARNING:")} {len(skipped_subsample)} sample(s) will be skipped')
for msg in skipped_subsample:
log.log(msg)
log.log("")
if skipped_subsample:
log.log(f'{bold("WARNING:")} {len(skipped_subsample)} sample(s) will be skipped')
for msg in skipped_subsample:
log.log(msg)
log.log("")

subsample_reads_params = []
for fastq_r1 in sorted(fastqs_to_subsample):
Expand Down
22 changes: 11 additions & 11 deletions captus/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,17 @@ def clean(full_command, args):
log.log(msg)
log.log("")

if args.debug:
tqdm_serial_run(qc_stats, qc_stats_params,
f"Running {args.qc_program}",
f"{args.qc_program} analysis completed",
"file", args.show_less)
else:
tqdm_parallel_async_run(qc_stats, qc_stats_params,
f"Running {args.qc_program}",
f"{args.qc_program} analysis completed",
"file", concurrent, args.show_less)
log.log("")
if args.debug:
tqdm_serial_run(qc_stats, qc_stats_params,
f"Running {args.qc_program}",
f"{args.qc_program} analysis completed",
"file", args.show_less)
else:
tqdm_parallel_async_run(qc_stats, qc_stats_params,
f"Running {args.qc_program}",
f"{args.qc_program} analysis completed",
"file", concurrent, args.show_less)
log.log("")


################################################################################################
Expand Down
5 changes: 4 additions & 1 deletion captus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@

# Bundled miscellaneous DNA references
DNA_REFS = {
"": Path("")
"angiosperms353": Path(DATA_DIR, "Angiosperms353.FNA"),
"mega353": Path(DATA_DIR, "Mega353.FNA"),
"seedplantsptd": Path(DATA_DIR, "SeedPlantsPTD.FNA"),
"seedplantsmit": Path(DATA_DIR, "SeedPlantsMIT.FNA"),
}

# Bundled dependencies directory
Expand Down
2 changes: 1 addition & 1 deletion captus/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
not, see <http://www.gnu.org/licenses/>.
"""

__version__ = '0.9.95'
__version__ = '0.9.96'

0 comments on commit e1b37c1

Please sign in to comment.