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
8fa41805
Commit
8fa41805
authored
3 years ago
by
Rachel LEGENDRE
Browse files
Options
Downloads
Patches
Plain Diff
bash error when star (pass2) input is fastq.gz
parent
305e929b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/rules/sortmerna.rules
+6
-5
6 additions, 5 deletions
workflow/rules/sortmerna.rules
workflow/rules/star_mapping_pass2.rules
+1
-4
1 addition, 4 deletions
workflow/rules/star_mapping_pass2.rules
with
7 additions
and
9 deletions
workflow/rules/sortmerna.rules
+
6
−
5
View file @
8fa41805
...
@@ -53,11 +53,11 @@ rule sortmerna:
...
@@ -53,11 +53,11 @@ rule sortmerna:
if [[ ${{#infiles[@]}} -eq 2 ]];
if [[ ${{#infiles[@]}} -eq 2 ]];
then
then
sortmerna --ref ${{fasta}} --idx-dir ${{idxdir}} --workdir {params.tmpdir} -threads {threads} --reads ${{infiles[0]}} --reads ${{infiles[1]}} --aligned
{
out
put.rRNA}
--fastx --out2 --paired_out --other
{
out
put.no_rRNA}
-v > {log.out} 2> {log.err}
sortmerna --ref ${{fasta}} --idx-dir ${{idxdir}} --workdir {params.tmpdir}
/{wildcards.SAMPLE}
-threads {threads} --reads ${{infiles[0]}} --reads ${{infiles[1]}} --aligned out
_paired_ribo
--fastx --out2 --paired_out --other out
_paired
-v > {log.out} 2> {log.err}
mv
{
out
put.no_rRNA}
_fwd.fastq {output.no_rRNA
}
[0]
mv out
_paired
_fwd.fastq {output.no_rRNA[0]
}
mv
{
out
put.no_rRNA}
_rev.fastq {output.no_rRNA
}
[1]
mv out
_paired
_rev.fastq {output.no_rRNA[1]
}
mv
{
out
put.rRNA}
_fwd.fastq {output.rRNA
}
[0]
mv out
_paired_ribo
_fwd.fastq {output.rRNA[0]
}
mv
{
out
put.rRNA}
_rev.fastq {output.rRNA
}
[1]
mv out
_paired_ribo
_rev.fastq {output.rRNA[1]
}
else
else
sortmerna --ref ${{fasta}} --idx-dir ${{idxdir}} --workdir {params.tmpdir} -threads {threads} --reads ${{infiles[0]}} --aligned {output.rRNA} --fastx --other {output.no_rRNA} -v > {log.out} 2> {log.err}
sortmerna --ref ${{fasta}} --idx-dir ${{idxdir}} --workdir {params.tmpdir} -threads {threads} --reads ${{infiles[0]}} --aligned {output.rRNA} --fastx --other {output.no_rRNA} -v > {log.out} 2> {log.err}
...
@@ -66,5 +66,6 @@ rule sortmerna:
...
@@ -66,5 +66,6 @@ rule sortmerna:
fi
fi
rm {params.tmpdir}/{wildcards.SAMPLE}
"""
"""
This diff is collapsed.
Click to expand it.
workflow/rules/star_mapping_pass2.rules
+
1
−
4
View file @
8fa41805
...
@@ -46,10 +46,7 @@ rule star_mapping_pass2:
...
@@ -46,10 +46,7 @@ rule star_mapping_pass2:
star_mapping_pass2_logs
star_mapping_pass2_logs
shell:
shell:
"""
"""
tmp="{input}"
if [[ {input.fastq[0]} =~ \.gz$ ]]
infiles=($tmp)
if [[ ${{infiles[0]}} == "*.gz" ]]
then
then
STAR --genomeDir {params.index} \
STAR --genomeDir {params.index} \
--readFilesIn {input.fastq} \
--readFilesIn {input.fastq} \
...
...
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