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
7a3a2bb0
There was a problem fetching the pipeline stages.
Commit
7a3a2bb0
authored
7 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Remove fastqc step.
parent
e914ddd5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!9
Remove fastqc step.
Pipeline
#1082
canceled with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/scripts/qc_fastq.py
+0
-79
0 additions, 79 deletions
workflow/scripts/qc_fastq.py
with
0 additions
and
79 deletions
workflow/scripts/qc_fastq.py
deleted
100755 → 0
+
0
−
79
View file @
e914ddd5
#!/usr/bin/env python3
'''
QC check of raw .fastq files using FASTQC.
'''
import
os
import
subprocess
import
argparse
import
shutil
import
logging
import
sys
import
json
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
(
'
-f
'
,
'
--fastq
'
,
help
=
"
The fastq file to run QC check on.
"
,
nargs
=
'
+
'
,
required
=
True
)
args
=
parser
.
parse_args
()
return
args
def
check_tools
():
'''
Checks for required componenets on user system
'''
logger
.
info
(
'
Checking for required libraries and components on this system
'
)
fastqc_path
=
shutil
.
which
(
"
fastqc
"
)
if
fastqc_path
:
logger
.
info
(
'
Found fastqc: %s
'
,
fastqc_path
)
else
:
logger
.
error
(
'
Missing fastqc
'
)
raise
Exception
(
'
Missing fastqc
'
)
def
check_qual_fastq
(
fastq
):
'''
Run fastqc on 1 or 2 files.
'''
qc_command
=
"
fastqc -t -f fastq
"
+
"
"
.
join
(
fastq
)
logger
.
info
(
"
Running fastqc with %s
"
,
qc_command
)
qual_fastq
=
subprocess
.
Popen
(
qc_command
,
shell
=
True
)
out
,
err
=
qual_fastq
.
communicate
()
def
main
():
args
=
get_args
()
# Create a file handler
handler
=
logging
.
FileHandler
(
'
qc.log
'
)
logger
.
addHandler
(
handler
)
# Check if tools are present
check_tools
()
# Run quality checks
check_qual_fastq
(
args
.
fastq
)
if
__name__
==
'
__main__
'
:
main
()
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