Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BICF
Astrocyte
chipseq_analysis
Commits
483dd61f
There was a problem fetching the pipeline stages.
Commit
483dd61f
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Fix Trim reads output to match.
parent
2b651306
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!20
Resolve "Use SampleIds/ Experiment Id as file names throughtout pipeline"
Pipeline
#2829
failed with stages
in 6 hours, 7 minutes, and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/scripts/trim_reads.py
+3
-3
3 additions, 3 deletions
workflow/scripts/trim_reads.py
workflow/tests/test_trim_reads.py
+3
-3
3 additions, 3 deletions
workflow/tests/test_trim_reads.py
with
6 additions
and
6 deletions
workflow/scripts/trim_reads.py
+
3
−
3
View file @
483dd61f
...
...
@@ -76,15 +76,15 @@ def rename_reads(fastq, sample, paired):
if
paired
:
# paired-end data
# Set file names
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R1.fq.gz
'
)
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R2.fq.gz
'
)
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R1.f
ast
q.gz
'
)
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R2.f
ast
q.gz
'
)
# Great symbolic links
os
.
symlink
(
fastq
[
0
],
renamed_fastq
[
0
])
os
.
symlink
(
fastq
[
1
],
renamed_fastq
[
1
])
else
:
# Set file names
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R1.fq.gz
'
)
renamed_fastq
.
append
(
cwd
+
'
/
'
+
sample
+
'
_R1.f
ast
q.gz
'
)
# Great symbolic links
os
.
symlink
(
fastq
[
0
],
renamed_fastq
[
0
])
...
...
This diff is collapsed.
Click to expand it.
workflow/tests/test_trim_reads.py
+
3
−
3
View file @
483dd61f
...
...
@@ -13,7 +13,7 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
@pytest.mark.singleend
def
test_trim_reads_singleend
():
raw_fastq
=
test_data_path
+
'
ENCFF833BLU.fastq.gz
'
trimmed_fastq
=
test_output_path
+
'
ENCLB144FDT_R1
_trimmed
.fq.gz
'
trimmed_fastq
=
test_output_path
+
'
ENCLB144FDT_R1.fq.gz
'
trimmed_fastq_report
=
test_output_path
+
\
'
ENCLB144FDT_R1_trimmed.fq.gz_trimming_report.txt
'
assert
os
.
path
.
getsize
(
raw_fastq
)
!=
os
.
path
.
getsize
(
trimmed_fastq
)
...
...
@@ -24,9 +24,9 @@ def test_trim_reads_singleend():
@pytest.mark.pairedend
def
test_trim_reads_pairedend
():
raw_fastq
=
test_data_path
+
'
ENCFF582IOZ.fastq.gz
'
trimmed_fastq
=
test_output_path
+
'
ENCLB637LZP_R2
_trimmed
.fq.gz
'
trimmed_fastq
=
test_output_path
+
'
ENCLB637LZP_R2.fq.gz
'
trimmed_fastq_report
=
test_output_path
+
\
'
ENCLB637LZP_R2_
trimmed
.fq.gz_trimming_report.txt
'
'
ENCLB637LZP_R2_
val_2
.fq.gz_trimming_report.txt
'
assert
os
.
path
.
getsize
(
raw_fastq
)
!=
os
.
path
.
getsize
(
trimmed_fastq
)
assert
os
.
path
.
getsize
(
trimmed_fastq
)
==
2229312710
assert
'
Trimming mode: paired-end
'
in
open
(
trimmed_fastq_report
).
readlines
()[
4
]
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment