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
144bd3f4
Commit
144bd3f4
authored
7 years ago
by
Beibei Chen
Browse files
Options
Downloads
Patches
Plain Diff
modify runMEME and set default for toppeak
parent
b585c2ff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
astrocyte_pkg.yml
+1
-1
1 addition, 1 deletion
astrocyte_pkg.yml
workflow/scripts/runMemechip.py
+9
-9
9 additions, 9 deletions
workflow/scripts/runMemechip.py
with
10 additions
and
10 deletions
astrocyte_pkg.yml
+
1
−
1
View file @
144bd3f4
...
...
@@ -114,7 +114,7 @@ workflow_parameters:
required
:
true
description
:
|
The number of top peaks to use for motif discovery.
default
:
200
# -----------------------------------------------------------------------------
# SHINY APP CONFIGURATION
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/runMemechip.py
+
9
−
9
View file @
144bd3f4
...
...
@@ -9,7 +9,6 @@ import string
import
argparse
as
ap
import
logging
import
twobitreader
import
pybedtools
import
subprocess
import
pandas
as
pd
from
Bio
import
SeqIO
...
...
@@ -52,7 +51,7 @@ def run_wrapper(args):
def
run
(
infile
,
genome
,
limit
,
output
):
infile
=
pybedtools
.
BedTool
(
infile
)
infile
=
open
(
infile
).
readlines
(
)
logging
.
debug
(
len
(
infile
))
genome
=
twobitreader
.
TwoBitFile
(
genome
)
outfile
=
open
(
output
+
"
.fa
"
,
"
w
"
)
...
...
@@ -65,19 +64,20 @@ def run(infile, genome, limit, output):
rowcount
+=
1
#logging.debug(record)
if
rowcount
<=
limit
:
#logging.debug(rowcount
)
seqbuf
=
record
.
rstrip
().
split
(
"
\t
"
)
try
:
#logging.debug(record.chrom)
seq
=
genome
[
record
.
chrom
][
record
.
start
:
record
.
stop
]
seq
=
genome
[
seqbuf
[
0
]][
int
(
seqbuf
[
1
]):
int
(
seqbuf
[
2
])
]
except
:
pass
else
:
if
record
.
strand
==
"
-
"
:
seq
=
rc
(
seq
)
if
len
(
record
.
fields
)
>=
4
:
newfa_name
=
record
.
name
if
len
(
seqbuf
)
>=
5
:
if
seqbuf
[
5
]
==
"
-
"
:
seq
=
rc
(
seq
)
if
len
(
seqbuf
)
>=
4
:
newfa_name
=
seqbuf
[
3
]
else
:
newfa_name
=
"
_
"
.
join
(
record
.
fields
)
newfa_name
=
"
_
"
.
join
(
seqbuf
)
newfa
=
SeqRecord
(
Seq
(
seq
),
newfa_name
,
description
=
""
)
#logging.debug(seq)
SeqIO
.
write
(
newfa
,
outfile
,
"
fasta
"
)
...
...
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