Using all-against-all read mapping, yacrd performs:
Chimera detection is done as follows:
min_coverage
(default 0), yacrd creates a gap.Chimeric
Not_covered
Long read error-correction tools usually detect and also remove chimeras. But it is difficult to isolate or retrieve information from just this step.
DAStrim (from the DASCRUBBER suite does a similar job to yacrd but relies on a different mapping step, and uses different (likely more advanced) heuristics. Yacrd is simpler and easier to use.
Any set of long reads (PacBio, Nanopore, anything that can be given to minimap2 ). yacrd takes the resulting PAF (Pairwise Alignement Format) from minimap2 or MHAP file from some other long reads overlapper as input.
If you have a rust environment setup you can run :
cargo install yacrd
yacrd is avaible in bioconda channel
if bioconda channel is setup you can run :
conda install yacrd
``` git clone https://github.com/natir/yacrd.git cd yacrd git checkout v0.3
cargo build cargo test cargo install ```
1) Run Minimap2: minimap2 reads.fq reads.fq > mapping.paf
or any other long reads overlapper.
2)
``` yacrd 0.3 Ninetales Pierre Marijon pierre.marijon@inria.fr Yet Another Chimeric Read Detector
USAGE: yacrd [-i|--input] [-o|--output]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS: -i, --input Mapping input file in PAF or MHAP format (with .paf or .mhap extension), use - for read standard input (no compression allowed, paf format by default) [default: -] -o, --output
-n, --not-covered-threshold <not-covered-threshold>
Coverage depth threshold above which a read are marked as not covered [default: 0.80]
--filtered-suffix <filtered-suffix>
Change the suffix of file generate by filter option [default: _filtered]
-C, --compression-out <compression-out>
Overlap depth threshold below which a gap should be created [possible values: gzip, bzip2, lzma, no]
```
type_of_read id_in_mapping_file length_of_read length_of_gap,begin_pos_of_gap,end_pos_of_gap;length_of_gap,be…
Not_covered readA 4599 3782,0,3782
Here, readA doesn't have sufficient coverage, there is a zero-coverage region of length 3782bp between positions 0 and 3782.
Chimeric readB 10452 862,1260,2122;3209,4319,7528
Here, readB is chimeric with 2 zero-coverage regions: one between bases 1260 and 2122, another between 3209 and 7528.