Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atacseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
atacseq_analysis
Commits
1115a866
Commit
1115a866
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Add in options for chrM and tn5 shift.
parent
f7e5053d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
astrocyte_pkg.yml
+28
-0
28 additions, 0 deletions
astrocyte_pkg.yml
workflow/main.nf
+44
-6
44 additions, 6 deletions
workflow/main.nf
workflow/scripts/convert_reads.py
+4
-4
4 additions, 4 deletions
workflow/scripts/convert_reads.py
with
76 additions
and
10 deletions
astrocyte_pkg.yml
+
28
−
0
View file @
1115a866
...
...
@@ -108,6 +108,34 @@ workflow_parameters:
read length, and then starts another round of reading from the opposite
end of the fragment.
-
id
:
chrM
type
:
select
required
:
true
choices
:
-
[
'
true'
,
'
True'
]
-
[
'
false'
,
'
False'
]
description
:
|
In ATAC-seq and DNase-seq, mitochondrial reads are overrepresented.
We recomend filtering these reads out for further downstream analysis.
-
id
:
tn5
type
:
select
required
:
true
choices
:
-
[
'
true'
,
'
True'
]
-
[
'
false'
,
'
False'
]
description
:
|
ATAC-seq leverages the hyperactive Tn5 transposase,
preloaded with sequencing adaptors, to simultaneously
fragment transposase-accessible DNA and tag the
fragmented DNA with the sequencing adaptors, a
process called tagmentation. The Tn5 transposase has been shown to function as a
dimer and inserts the two sequencing adaptors into
target regions separated by 9 bp. For downstream
analysis, such as peak-calling and footprint analysis,
coordinates of all read alignments in the filtered
BAM file thus need to be shifted.
-
id
:
design
type
:
file
required
:
true
...
...
This diff is collapsed.
Click to expand it.
workflow/main.nf
+
44
−
6
View file @
1115a866
...
...
@@ -6,6 +6,8 @@
// Define Input variables
params.reads = "$baseDir/../test_data/*.fastq.gz"
params.pairedEnd = false
params.chrM = true
params.tn5 = true
params.designFile = "$baseDir/../test_data/design_ENCSR265ZXX_SE.txt"
params.genome = 'GRCm38'
params.genomes = []
...
...
@@ -32,6 +34,8 @@ readsList = Channel
// Define regular variables
pairedEnd = params.pairedEnd
chrM = params.chrM
tn5 = params.tn5
designFile = params.designFile
genomeSize = params.genomeSize
chromSizes = params.chromSizes
...
...
@@ -218,14 +222,48 @@ process convertReads {
script:
if (pairedEnd) {
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -p
"""
if (tn5 && chrM){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -p -m -t
"""
}
else if (tn5){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -p -t
"""
}
else if (chrM){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -p -m
"""
}
else{
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -p
"""
}
}
else {
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped
"""
if (tn5 && chrM){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -m -t
"""
}
else if (tn5){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -t
"""
}
else if (chrM){
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped -m
"""
}
else{
"""
python3 $baseDir/scripts/convert_reads.py -b $deduped
"""
}
}
}
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/convert_reads.py
+
4
−
4
View file @
1115a866
...
...
@@ -45,10 +45,10 @@ def get_args():
default
=
True
,
action
=
'
store_true
'
)
parser
.
add_argument
(
'
-t
'
,
'
--tn5
'
help
=
'
Enable TN5 shifting for ATAC-Seq.
'
default
=
True
,
action
=
'
store_true
'
)
parser
.
add_argument
(
'
-t
'
,
'
--tn5
'
help
=
'
Enable TN5 shifting for ATAC-Seq.
'
default
=
True
,
action
=
'
store_true
'
)
args
=
parser
.
parse_args
()
return
args
...
...
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