Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit 0084628

Browse files
committed
draft3 file conversion bedGraph to bigWig
1 parent aed0a76 commit 0084628

File tree

4 files changed

+85
-18
lines changed

4 files changed

+85
-18
lines changed

tools/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,23 @@ Result:
197197
"checksum": "sha1$dd87be96fc201734c2e5017f86e056b4bb0b2b3f"
198198
}
199199
}
200-
```
200+
```
201+
202+
bedGraph to bigWig
203+
------------------
204+
205+
To produce final .bigWig file ```cwltool --basedir ./ ./ucsc-bedGraphToBigWig.cwl ./jobs/ucsc-bedGraphToBigWig-job.json```
206+
207+
Result:
208+
209+
```json
210+
{
211+
"bigWigOut": {
212+
"path": "./workflows/tools/./test-files/SRR1031972.bigWig",
213+
"size": 500098,
214+
"class": "File",
215+
"checksum": "sha1$5a0332a2fce2303f135439d377f8b7420878a7b5"
216+
}
217+
}
218+
```
219+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"input": {
3+
"class": "File",
4+
"path": "../test-files/SRR1031972.bedGraph.sorted"
5+
},
6+
"genomeFile": {
7+
"class": "File",
8+
"path": "../test-files/dm3/chrNameLength.txt"
9+
},
10+
"bigWig": "./test-files/SRR1031972.bigWig"
11+
}

tools/ucsc-bedGraphToBigWig-job.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/ucsc-bedGraphToBigWig.cwl

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
#!/usr/bin/env cwl-runner
22

3+
"@context":
4+
"cwl": "https://w3id.org/cwl/cwl#"
5+
"foaf": "http://xmlns.com/foaf/0.1/"
6+
"doap": "http://usefulinc.com/ns/doap"
7+
"adms": "http://purl.org/adms/"
8+
"admssw": "http://purl.org/adms/sw/"
9+
10+
adms:Asset:
11+
admssw:SoftwareProject:
12+
doap:name: "UCSC userApps"
13+
doap:description: |
14+
UCSC genome browser 'kent' bioinformatic utilities
15+
These are only the command line bioinformatic utilities
16+
from the kent source tree.
17+
doap:homepage: "http://genome.ucsc.edu/goldenPath/help/bigWig.html"
18+
admsw:downloadUrl: "http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/"
19+
admsw:accessUrl: "http://hgdownload.cse.ucsc.edu/admin/exe/userApps.v325.src.tgz"
20+
doap:release:
21+
- doap:revision: "v325"
22+
doap:license: "GPL"
23+
doap:category: "commandline tool"
24+
doap:programming-language: "C"
25+
foaf:Organization:
26+
- foaf:name: "CIRM Stem Cell Genomics Data Management Center"
27+
foaf:publications:
28+
- foaf:title: "(Kent et al., 2010) BigWig and BigBed: enabling browsing of large distributed datasets. Bioinformatics."
29+
foaf:homepage: "http://www.ncbi.nlm.nih.gov/pubmed/20639541"
30+
doap:developer:
31+
- foaf:Person:
32+
foaf:name: "Jim Kent"
33+
foaf:mbox: "mailto:kent@soe.ucsc.edu"
34+
adms:AssetDistribution:
35+
doap:name: "STAR.cwl"
36+
doap:description: "Developed for CWL consortium http://commonwl.org/"
37+
doap:specification: "http://common-workflow-language.github.io/draft-3/"
38+
doap:release: "cwl:draft-3.dev2"
39+
doap:homepage: "http://commonwl.org/"
40+
doap:location: "https://github.com/common-workflow-language/workflows/blob/master/tools/STAR.cwl"
41+
doap:repository:
42+
- doap:GitRepository:
43+
doap:location: "https://github.com/common-workflow-language/workflows"
44+
doap:maintainer:
45+
foaf:Person:
46+
foaf:openid: "http://orcid.org/0000-0001-9102-5681"
47+
foaf:name: "Andrey Kartashov"
48+
foaf:mbox: "mailto:Andrey.Kartashov@cchmc.org"
49+
foaf:organization: "Cincinnati Children's Hospital Medical Center"
50+
51+
cwlVersion: "cwl:draft-3.dev2"
52+
353
class: CommandLineTool
454

555
description: |
@@ -21,9 +71,9 @@ description: |
2171
sort -k1,1 -k2,2n unsorted.bedGraph > sorted.bedGraph
2272

2373
requirements:
24-
- import: node-engine.cwl
25-
- import: envvar-global.cwl
26-
- import: ucsc-userapps-docker.cwl
74+
- class: InlineJavascriptRequirement
75+
- "@import": envvar-global.cwl
76+
- "@import": ucsc-userapps-docker.cwl
2777

2878
inputs:
2979
- id: "#input"
@@ -70,8 +120,6 @@ outputs:
70120
- id: "#bigWigOut"
71121
type: File
72122
outputBinding:
73-
glob:
74-
engine: cwl:JsonPointer
75-
script: /job/bigWig
123+
glob: $(inputs.bigWig)
76124

77125
baseCommand: ["bedGraphToBigWig"]

0 commit comments

Comments
 (0)