LinkedSV 2.0 is a structural variant (SV) caller designed for 10x Genomics linked-read sequencing data. It is the successor to LinkedSV and combines barcode-level and read-level evidence to detect structural variants.
- Implemented in C++ — no Python, R, or conda environment is required. A statically linked pre-built Linux executable is provided.
- Faster and more memory-efficient — substantially improved runtime and memory usage compared with LinkedSV 1.0.
- Insertion detection — uses read-level and haplotype information to detect insertions, which were not supported in LinkedSV 1.0.
- Improved accuracy — outperforms LinkedSV 1.0 on the GIAB HG002 v0.6 benchmark dataset.
Download the pre-built executable from the GitHub release page:
wget https://github.com/TheFangLab/LinkedSV2/releases/download/v2.0.0/linkedsv
Then make the executable runnable and verify the installation:
chmod +x linkedsv
./linkedsv --versiongit clone https://github.com/TheFangLab/LinkedSV2.git
cd LinkedSV2
make -j4- A C compiler
- A C++14-compatible compiler
make
linkedsv \
-i phased_possorted_bam.bam \
-d out_dir \
-r genome.fa \
-v hg38 \
-t 8- The input BAM must be LongRanger’s
phased_possorted_bam.bam. - The reference FASTA must be the same reference used for alignment and must be indexed with
samtools faidx. LinkedSV checks contig names and lengths against the BAM header.
Usage: linkedsv [options] -i <in.bam> -d <out_dir> -r <ref.fa>
Options:
Input/output:
-i FILE coordinate-sorted, indexed BAM with BX (and HP) tags, e.g. Long
Ranger's phased_possorted_bam.bam
-d DIR output directory (also holds the scratch files of the run)
-r FILE reference FASTA used for the alignment (samtools faidx indexed)
-v STR reference version (hg19, b37 or hg38): selects the bundled blacklists
--black_region_bed FILE blacklist regions in BED (needed only without -v)
--contigs STR comma-separated contigs to analyse [all contigs with reads]
SV calling:
--min_supp_barcodes INT min. number of barcodes shared by the breakpoints of a large SV [10]
--no-assembly skip local assembly: much faster, but fewer small deletions and
almost no insertions <= 300 bp
Resources:
-t INT number of threads; 0 for all available CPU cores [1]
--memory-mb INT memory budget in MB; 0 for no limit [12000]
Output:
--plot-data write the data for evidence plots of PASS large SVs
(prefix.plot_data.tsv.gz; drawn by scripts/linkedsv-plot)
--save_temp_files keep intermediate and scratch files
--log-level STR DEBUG, INFO, WARNING or ERROR [INFO]
Other:
-h, --help print this help and exit
--version print the version number and exit
See README.md for the output files.
To generate plot data:
linkedsv \
-i sample.phased_possorted_bam.bam \
-d out \
-r genome.fa \
-v hg38 \
-t 8 \
--plot-dataTo draw the plots:
scripts/linkedsv-plot out/sample.phased_possorted_bam.bam.plot_data.tsv.gzPlot generation requires Python 3 with numpy and matplotlib.
Fang, L., Kao, C., Gonzalez, M. V., Mafra, F. A., Pellegrino da Silva, R., Li, M., Wenzel, S.-S., Wimmer, K., Hakonarson, H., & Wang, K. (2019). LinkedSV for detection of mosaic structural variants from linked-read exome and genome sequencing data. Nature Communications, 10(1), 5585. https://doi.org/10.1038/s41467-019-13397-7
LinkedSV 2.0 is distributed under the MIT License. Bundled libraries and data are distributed under their own licenses; see vendor/*/ and data/README.md for details.