Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNAflow
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
RNAflow
Commits
a16efa76
Commit
a16efa76
authored
4 years ago
by
Rachel LEGENDRE
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
46c9d0f2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/rules/adapters.rules
+66
-0
66 additions, 0 deletions
workflow/rules/adapters.rules
with
66 additions
and
0 deletions
workflow/rules/adapters.rules
0 → 100644
+
66
−
0
View file @
a16efa76
#########################################################################
# RNAsig: an automated pipeline to detect RNA signatures on viruses #
# #
# Authors: Rachel Legendre #
# Copyright (c) 2020-2021 Institut Pasteur (Paris). #
# #
# This file is part of RNAsig workflow. #
# #
# RNAsig is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# RNAsig is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details . #
# #
# You should have received a copy of the GNU General Public License #
# along with RNAsig (LICENSE). #
# If not, see <https://www.gnu.org/licenses/>. #
#########################################################################
rule adapters:
input:
fastq = __adapters__input_fastq
output:
__adapters__output
params:
wkdir = __adapters__wkdir,
options = __adapters__options,
adapters = __adapters__adapt_list,
mode = __adapters__mode,
min = __adapters_min,
qual = __adapters_qual
singularity:
"chipuana.img"
threads: config['adapters']['threads'] if 'threads' in config['adapters'] else 4
log:
__adapters__log
shell:
"""
set +o pipefail
tmp="{input}"
infiles=($tmp)
tmp="{output}"
outfiles=($tmp)
cmd="cutadapt "
# add mode and adapter sequences
cmd+=" -{params.mode} {params.adapters} -m {params.min} -q {params.qual} {params.options} "
# paired end or single end
if [[ ${{#infiles[@]}} -eq 2 ]];
then
cmd+=" -o ${{outfiles[0]}} -p ${{outfiles[1]}} ${{infiles[0]}} ${{infiles[1]}} "
else
cmd+=" -o ${{outfiles[0]}} ${{infiles[0]}}"
fi
#run command
eval "${{cmd}} > {log}"
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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