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
89d9e085
There was a problem fetching the latest pipeline status.
Commit
89d9e085
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Fix output.
parent
cdb7d690
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
Resolve "Output software versions and methods and references"
Pipeline
#3232
failed with stages
in 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+12
-12
12 additions, 12 deletions
workflow/main.nf
workflow/scripts/generate_versions.py
+30
-0
30 additions, 0 deletions
workflow/scripts/generate_versions.py
with
42 additions
and
12 deletions
workflow/main.nf
+
12
−
12
View file @
89d9e085
...
...
@@ -483,17 +483,17 @@ process softwareReport {
input:
trimReadsVersions
alignReadsVersions
filterReadsVersions
convertReadsVersions
crossReadsVersions
callPeaksMACSVersions
consensusPeaksVersions
peakAnnotationVersions
motifSearchVersions
diffPeaksVersions
experimentQCVersions
trimReadsVersions
.collect()
alignReadsVersions
.collect()
filterReadsVersions
.collect()
convertReadsVersions
.collect()
crossReadsVersions
.collect()
callPeaksMACSVersions
.collect()
consensusPeaksVersions
.collect()
peakAnnotationVersions
.collect()
motifSearchVersions
.collect()
diffPeaksVersions
.collect()
experimentQCVersions
.collect()
output:
...
...
@@ -502,7 +502,7 @@ process softwareReport {
script:
"""
python3 $baseDir/scripts/generate_versions.py -o software_versions
python3 $baseDir/scripts/generate_versions.py
-f *.txt
-o software_versions
python3 $baseDir/scripts/generate_references.py -r $references -o software_references
"""
}
This diff is collapsed.
Click to expand it.
workflow/scripts/generate_versions.py
+
30
−
0
View file @
89d9e085
...
...
@@ -8,6 +8,7 @@ from collections import OrderedDict
import
re
import
logging
import
argparse
import
numpy
as
np
EPILOG
=
'''
For more details:
...
...
@@ -46,6 +47,11 @@ def get_args():
description
=
__doc__
,
epilog
=
EPILOG
,
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
)
parser
.
add_argument
(
'
-f
'
,
'
--files
'
,
help
=
"
The version files.
"
,
required
=
True
,
nargs
=
'
*
'
)
parser
.
add_argument
(
'
-o
'
,
'
--output
'
,
help
=
"
The out file name.
"
,
required
=
True
)
...
...
@@ -54,8 +60,29 @@ def get_args():
return
args
def
check_files
(
files
):
'''
Check if version files are found.
'''
logger
.
info
(
"
Running file check.
"
)
software_files
=
np
.
array
(
list
(
SOFTWARE_REGEX
.
values
()))[:,
0
]
missing_files
=
set
(
software_files
)
-
set
(
files
)
if
len
(
missing_files
)
>
0
:
logger
.
error
(
'
Missing version files: %s
'
,
list
(
missing_files
))
raise
Exception
(
"
Missing version files: %s
"
%
list
(
missing_files
))
extra_files
=
set
(
files
)
-
set
(
software_files
)
if
len
(
extra_files
)
>
0
:
logger
.
error
(
'
Missing regex: %s
'
,
list
(
extra_files
))
raise
Exception
(
"
Missing regex: %s
"
%
list
(
extra_files
))
def
main
():
args
=
get_args
()
files
=
args
.
files
output
=
args
.
output
out_filename
=
output
+
'
_mqc.yaml
'
...
...
@@ -79,6 +106,9 @@ def main():
results
[
'
DiffBind
'
]
=
'
<span style=
"
color:#999999;
\"
>N/A</span>
'
results
[
'
deepTools
'
]
=
'
<span style=
"
color:#999999;
\"
>N/A</span>
'
# Check for version files:
check_files
(
files
)
# Search each file using its regex
for
k
,
v
in
SOFTWARE_REGEX
.
items
():
with
open
(
v
[
0
])
as
x
:
...
...
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