Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swp-workflows
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
seehagec01
swp-workflows
Commits
2b5d39eb
Commit
2b5d39eb
authored
3 years ago
by
seehagec01
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.imp.fu-berlin.de/seehagec01/swp-workflows
parents
14a0711b
a05ab632
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
project/workflow/rules/samtools.smk
+8
-8
8 additions, 8 deletions
project/workflow/rules/samtools.smk
with
8 additions
and
8 deletions
project/workflow/rules/samtools.smk
+
8
−
8
View file @
2b5d39eb
...
@@ -11,22 +11,22 @@ rule samtool:
...
@@ -11,22 +11,22 @@ rule samtool:
shell:
shell:
"samtools view --threads {threads} -f4 {input} > {output}"
"samtools view --threads {threads} -f4 {input} > {output}"
rule
fastq
:
rule
converts
:
input:
input:
"results/unmapped/
ERR4082860
_unmapped.sam"
"results/unmapped/
{sample}
_unmapped.sam"
output:
output:
"results/unmapped_
fastq/ERR4082860
_1_unmapped.fastq",
"results/unmapped_
converts/{sample}
_1_unmapped.fastq",
"results/unmapped_
fastq/ERR4082860
_2_unmapped.fastq"
"results/unmapped_
converts/{sample}
_2_unmapped.fastq"
log:
log:
"workflow/report/
fastq/ERR4082860
.log"
"workflow/report/
converts/{sample}
.log"
threads:4
threads:4
conda:
conda:
"../envs/yourenv.yaml"
"../envs/yourenv.yaml"
shell:
shell:
"""
"""
samtools view -S -b --threads={threads} {input} >
ERR4082860
_unmapped.bam
samtools view -S -b --threads={threads} {input} >
{wildcards.sample}
_unmapped.bam
2> {log}
samtools sort -n
ERR4082860_unmapped.bam -o ERR4082860
_sorted.bam
samtools sort -n
{wildcards.sample}_unmapped.bam -o {wildcards.sample}
_sorted.bam
2>> {log}
bedtools bamtofastq -i
ERR4082860
_sorted.bam -fq {output[0]} -fq2 {output[1]} 2> {log}
bedtools bamtofastq -i
{wildcards.sample}
_sorted.bam -fq {output[0]} -fq2 {output[1]} 2>
>
{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