Skip to content

Commit

Permalink
feat: make pe_support optional in sv bedpe data
Browse files Browse the repository at this point in the history
  • Loading branch information
sehilyi committed Apr 9, 2024
1 parent ae0fc4f commit 294b548
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/docs/loading-data/data-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This page describes file formats used in Chromoscope. To find a list of required
## Structural Variants (BEDPE)
<!-- https://bedtools.readthedocs.io/en/latest/content/general-usage.html#bedpe-format -->

The structural variants are stored in a BEDPE file. The following columns are used in the browser:
The structural variants are stored in a headed BEDPE file. The order of the columns does not need to be in the exact same order. This is a The following columns are used in the browser:

| Property | Type | Note |
|---|---|---|
Expand Down Expand Up @@ -43,7 +43,7 @@ In Chromosope, strands are mapped with the following types of SVs.
## CNV (TSV)
<!-- https://bedtools.readthedocs.io/en/latest/content/general-usage.html#bedpe-format -->

The CNV is stored in a tab-delimited file that is visualized as three tracks: CNV, Gain, and LOH.
The CNV is stored in a headed tab-delimited file that is visualized as three tracks: CNV, Gain, and LOH. The order of the columns does not need to be in the exact same order.

| Property | Type | Note |
|---|---|---|
Expand All @@ -63,7 +63,7 @@ https://s3.amazonaws.com/gosling-lang.org/data/SV/7a921087-8e62-4a93-a757-fd8cdb
## Drivers (TSV or JSON)
<!-- https://bedtools.readthedocs.io/en/latest/content/general-usage.html#bedpe-format -->

The drivers are stored in a tab-delimited file. When this file is present, the browser will show drivers that are included in the file only.
The drivers are stored in a headed tab-delimited file. When this file is present, the browser will show drivers that are included in the file only.

The order of the columns does not need to be in the exact same order.

Expand Down
2 changes: 1 addition & 1 deletion src/data/samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const samples: SampleType[] = [
vcfIndex: 'https://somatic-browser-test.s3.amazonaws.com/SNV_test_tumor_normal_with_panel.vcf.gz.tbi',
vcf2: 'https://somatic-browser-test.s3.amazonaws.com/INDEL_test_tumor_normal_with_panel.vcf.gz',
vcf2Index: 'https://somatic-browser-test.s3.amazonaws.com/INDEL_test_tumor_normal_with_panel.vcf.gz.tbi',
sv: 'https://somatic-browser-test.s3.amazonaws.com/SVTYPE_SV_test_tumor_normal_with_panel.bedpe',
sv: 'https://gist.githubusercontent.com/sehilyi/53d1b681ed65f9b00386d51bdd3aeebc/raw/cb0bb24ff3f8da7d7e2bb0ab4139eacc7ff11d16/sv_wo_pe_support.csv',
cnv: 'https://gist.githubusercontent.com/sehilyi/6fbceae35756b13472332d6b81b10803/raw/596428a8b0ebc00e7f8cbc52b050db0fbd6e19a5/SRR7890943.ascat.v3.cnv.tsv',
bam: 'https://somatic-browser-test.s3.amazonaws.com/SRR7890905_GAPFI2USVS21.bam',
bai: 'https://somatic-browser-test.s3.amazonaws.com/SRR7890905_GAPFI2USVS21.bam.bai',
Expand Down
12 changes: 0 additions & 12 deletions src/track/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,6 @@ export default function sv(
url,
type: 'csv',
separator: '\t',
headerNames: [
'chrom1',
'start1',
'end1',
'chrom2',
'start2',
'end2',
'sv_id',
'pe_support',
'strand1',
'strand2'
],
genomicFieldsToConvert: [
{
chromosomeField: 'chrom1',
Expand Down

0 comments on commit 294b548

Please sign in to comment.