8000 GitHub - TheFangLab/LinkedSV2: A structural variant caller for linked-read sequencing data · GitHub
[go: up one dir, main page]

Skip to content
TheFangLabPublic

About

A structural variant caller for linked-read sequencing data

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedSV 2.0

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.

Key improvements over LinkedSV 1.0

  1. Implemented in C++ — no Python, R, or conda environment is required. A statically linked pre-built Linux executable is provided.
  2. Faster and more memory-efficient — substantially improved runtime and memory usage compared with LinkedSV 1.0.
  3. Insertion detection — uses read-level and haplotype information to detect insertions, which were not supported in LinkedSV 1.0.
  4. Improved accuracy — outperforms LinkedSV 1.0 on the GIAB HG002 v0.6 benchmark dataset.

Installation

Option 1: Pre-built executable (Linux x86-64)

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 --version

Option 2: Build from source

git clone https://github.com/TheFangLab/LinkedSV2.git
cd LinkedSV2
make -j4

Build requirements

  • A C compiler
  • A C++14-compatible compiler
  • make

Usage

linkedsv \
  -i phased_possorted_bam.bam \
  -d out_dir \
  -r genome.fa \
  -v hg38 \
  -t 8

Input requirements

  • 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.

Command-line options

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.

Evidence plots

To generate plot data:

linkedsv \
  -i sample.phased_possorted_bam.bam \
  -d out \
  -r genome.fa \
  -v hg38 \
  -t 8 \
  --plot-data

To draw the plots:

scripts/linkedsv-plot out/sample.phased_possorted_bam.bam.plot_data.tsv.gz

Plot generation requires Python 3 with numpy and matplotlib.

Citation

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

License

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.

About

A structural variant caller for linked-read sequencing data

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0