Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Holland Computing Center
chipathlon
Commits
10f026fd
Commit
10f026fd
authored
Apr 15, 2016
by
aknecht2
Browse files
Added node support. Updated database to load files in chunks.
parent
73a0f8c1
Changes
22
Hide whitespace changes
Inline
Side-by-side
chipathlon/jobs/scripts/sort_macs2.sh
View file @
10f026fd
#!/bin/bash
/bin/sort
-k
8gr,8gr
"
$1
"
|
awk
'BEGIN{OFS="\t"}{$
r
="PEAK_"NR; print $0;}'
>
"
$2
"
/bin/sort
-k
8gr,8gr
"
$1
"
|
awk
'BEGIN{OFS="\t"}{$
4
="PEAK_"NR; print $0;}'
>
"
$2
"
chipathlon/tester.py
View file @
10f026fd
...
...
@@ -40,21 +40,27 @@ class InsertResultsTests(DatabaseTestCase):
valid
,
msg
,
result_id
=
self
.
mdb
.
save_bed
(
"test/insert_tests/sample.bed"
,
[],
[
"ENC
SR
000
BKT
"
],
[
"ENC
FF
000
RCB
"
],
{
"align_tool"
:
"bowtie2"
,
"read_end"
:
"single"
}
)
self
.
result_ids
.
append
(
result_id
)
if
valid
:
self
.
result_ids
.
append
(
result_id
)
else
:
print
msg
self
.
assertTrue
(
valid
)
return
def
test_insert_peak
(
self
):
valid
,
msg
,
result_id
=
self
.
mdb
.
save_peak
(
"test/insert_tests/sample.narrowPeak"
,
[
"ENC
SR
000
BLJ
"
],
[
"ENC
SR
000
BKT
"
],
[
"ENC
FF
000
RCB
"
],
[
"ENC
FF
000
RCB
"
],
{
"align_tool"
:
"bwa"
,
"read_end"
:
"single"
,
"peak_tool"
:
"macs2"
}
)
self
.
result_ids
.
append
(
result_id
)
if
valid
:
self
.
result_ids
.
append
(
result_id
)
else
:
print
msg
self
.
assertTrue
(
valid
)
return
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment