Skip to content

Commit 3104b02

Browse files
authored
feat: make pe_support optional in sv bedpe data (#137)
1 parent bf82344 commit 3104b02

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

docs/docs/loading-data/data-formats.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This page describes file formats used in Chromoscope. To find a list of required
99
## Structural Variants (BEDPE)
1010
<!-- https://bedtools.readthedocs.io/en/latest/content/general-usage.html#bedpe-format -->
1111

12-
The structural variants are stored in a BEDPE file. The following columns are used in the browser:
12+
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:
1313

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

46-
The CNV is stored in a tab-delimited file that is visualized as three tracks: CNV, Gain, and LOH.
46+
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.
4747

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

66-
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.
66+
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.
6767

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

src/data/samples.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Assembly } from 'gosling.js/dist/src/core/gosling.schema';
1+
import { Assembly } from 'gosling.js/dist/src/gosling-schema';
22
import _7a921087 from '../script/img/7a921087-8e62-4a93-a757-fd8cdbe1eb8f.jpeg';
33
import _84ca6ab0 from '../script/img/84ca6ab0-9edc-4636-9d27-55cdba334d7d.jpeg';
44
import _7d332cb1 from '../script/img/7d332cb1-ba25-47e4-8bf8-d25e14f40d59.jpeg';

src/track/sv.ts

-12
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,6 @@ export default function sv(
102102
url,
103103
type: 'csv',
104104
separator: '\t',
105-
headerNames: [
106-
'chrom1',
107-
'start1',
108-
'end1',
109-
'chrom2',
110-
'start2',
111-
'end2',
112-
'sv_id',
113-
'pe_support',
114-
'strand1',
115-
'strand2'
116-
],
117105
genomicFieldsToConvert: [
118106
{
119107
chromosomeField: 'chrom1',

0 commit comments

Comments
 (0)