Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
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
Astrocyte
Workflows
BICF
chipseq_analysis
Commits
30853393
Commit
30853393
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Update software report and generate references.
parent
6b717038
Branches
Branches containing commit
Tags
publish_0.1.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
workflow/main.nf
+3
-1
3 additions, 1 deletion
workflow/main.nf
workflow/scripts/generate_references.py
+66
-0
66 additions, 0 deletions
workflow/scripts/generate_references.py
workflow/scripts/software_report.py
+1
-0
1 addition, 0 deletions
workflow/scripts/software_report.py
with
70 additions
and
1 deletion
workflow/main.nf
+
3
−
1
View file @
30853393
...
...
@@ -17,6 +17,8 @@ params.cutoffRatio = 1.2
params.outDir= "$baseDir/output"
params.extendReadsLen = 100
params.topPeakCount = 600
params.references = "$baseDir/../docs/references.md"
// Check inputs
if( params.bwaIndex ){
...
...
@@ -475,7 +477,7 @@ process diffPeaks {
"""
}
// Collect Software Versions
// Collect Software Versions
and references
process softwareVersions {
input:
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/generate_references.py
0 → 100644
+
66
−
0
View file @
30853393
#!/usr/bin/env python
'''
Make header for HTML of references.
'''
import
argparse
import
subprocess
import
shlex
import
logging
EPILOG
=
'''
For more details:
%(prog)s --help
'''
# SETTINGS
logger
=
logging
.
getLogger
(
__name__
)
logger
.
addHandler
(
logging
.
NullHandler
())
logger
.
propagate
=
False
logger
.
setLevel
(
logging
.
INFO
)
def
get_args
():
'''
Define arguments.
'''
parser
=
argparse
.
ArgumentParser
(
description
=
__doc__
,
epilog
=
EPILOG
,
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
)
parser
.
add_argument
(
'
-r
'
,
'
--reference
'
,
help
=
"
The reference file (markdown format).
"
,
required
=
True
)
parser
.
add_argument
(
'
-o
'
,
'
--output
'
,
help
=
"
The out file name.
"
,
default
=
'
references
'
)
args
=
parser
.
parse_args
()
return
args
def
main
():
args
=
get_args
()
reference
=
args
.
reference
output
=
args
.
output
out_filename
=
output
+
'
_mqc.txt
'
# Header for HTML
print
(
'''
# id:
'
References
'
# section_name:
'
References
'
# description:
'
This section describes references for the tools used.
'
# plot_type:
'
html
'
'''
,
file
=
open
(
out_filename
,
"
w
"
)
)
# Turn Markdown into HTML
references_html
=
'
bash -c
"
pandoc {} >> {}
"'
references_html
=
references_html
.
format
(
reference
,
out_filename
)
subprocess
.
check_call
(
shlex
.
split
(
references_html
))
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
workflow/scripts/software_report.py
+
1
−
0
View file @
30853393
...
...
@@ -7,6 +7,7 @@ from __future__ import print_function
from
collections
import
OrderedDict
import
re
software_regex
=
{
'
Trim Galore!
'
:
[
'
version_trimgalore.txt
'
,
r
"
version (\S+)
"
],
'
Cutadapt
'
:
[
'
version_cutadapt.txt
'
,
r
"
Version (\S+)
"
],
...
...
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