Skip to content

Instantly share code, notes, and snippets.

@lindenb
Last active November 16, 2018 19:16
Show Gist options
  • Save lindenb/877d1d00d9f19c618f2d8505a2fe5614 to your computer and use it in GitHub Desktop.
Save lindenb/877d1d00d9f19c618f2d8505a2fe5614 to your computer and use it in GitHub Desktop.
jvarkit sv2svg visualisation of a translocation.

sv2svg http://lindenb.github.io/jvarkit/SvToSVG.html

translocation described in https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5932280/

Identification of Balanced Chromosomal Rearrangements Previously Unknown Among Participants in the 1000 Genomes Project: Implications for Interpretation of Structural Variation in Genomes and the Future of Clinical Cytogenetics

$ samtools view -b "http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase3/data/HG02260/alignment/HG02260.mapped.ILLUMINA.bwa.PEL.low_coverage.20130415.bam" "9:137229907-137231907" > jeter1.bam
$ samtools view -b "http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase3/data/HG02260/alignment/HG02260.mapped.ILLUMINA.bwa.PEL.low_coverage.20130415.bam" "14:79838174-79840174" > jeter2.bam
$ samtools merge jeter3.bam jeter1.bam jeter2.bam
$ samtools index jeter3.bam
$ java -jar dist/sv2svg.jar -r "9:137229907-137231907" -r "14:79838174-79840174"  jeter3.bam > jeter.svg
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment