Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
process_scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
NGS CLIA Lab
process_scripts
Commits
96bcf788
Commit
96bcf788
authored
4 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
se/pe fix
parent
68aac6f3
Branches
Branches containing commit
Tags
publish_0.0.10
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alignment/rnaseqalign.sh
+27
-19
27 additions, 19 deletions
alignment/rnaseqalign.sh
preproc_fastq/trimgalore.sh
+22
-19
22 additions, 19 deletions
preproc_fastq/trimgalore.sh
with
49 additions
and
38 deletions
alignment/rnaseqalign.sh
+
27
−
19
View file @
96bcf788
...
...
@@ -45,35 +45,43 @@ if [[ -z $NPROC ]]
then
NPROC
=
`
nproc
`
fi
fqs
=
''
i
=
0
numfq
=
${#
fqs
[@]
}
while
[[
$i
-le
$numfq
]]
do
fqs
=
"
$fqs
$1
"
i
=
$((
i
+
1
))
shift
1
done
hisat_opt
=
''
diff
$fq1
$fq2
>
difffile
if
[[
-f
$fq1
]]
then
fqs
=
"
$fq1
"
if
[[
-f
$fq2
]]
then
diff
$fq1
$fq2
>
difffile
if
[[
-s
difffile
]]
then
fqs+
=
"
$fq2
"
fi
fi
else
fqs
=
''
i
=
0
numfq
=
${#
fqs
[@]
}
while
[[
$i
-le
$numfq
]]
do
fqs
=
"
$fqs
$1
"
i
=
$((
i
+
1
))
shift
1
done
fi
if
[[
-f
$fq2
]]
&&
[[
-s
difffile
]]
then
fqs+
=
"
$fq2
"
fi
numfq
=
${#
fqs
[@]
}
numfq
=
0
for
k
in
$fqs
do
numfq
=
$((
numfq
+
1
))
done
hisat_opt
=
''
star_opt
=
$fqs
fqarray
=(
$fqs
)
if
[[
$numfq
==
1
]]
if
[[
$numfq
==
2
]]
then
hisat_opt
=
"-1
${
fqarray
[0]
}
-2
${
fqarray
[1]
}
"
else
hisat_opt
=
"-U
$fqarray
[0]"
hisat_opt
=
"-U
$
{
fqarray
[0]
}
"
fi
if
[
$algo
==
'star'
]
...
...
This diff is collapsed.
Click to expand it.
preproc_fastq/trimgalore.sh
+
22
−
19
View file @
96bcf788
...
...
@@ -29,29 +29,32 @@ if [[ -z $pair_id ]]; then
usage
fi
fqs
=
''
i
=
0
numfq
=
${#
fqs
[@]
}
while
[[
$i
-le
$numfq
]]
do
fqs
=
"
$fqs
$1
"
i
=
$((
i
+
1
))
shift
1
done
if
[[
-f
$fq1
]]
if
[[
-z
$fq1
]]
then
i
=
0
numfq
=
${#
fqs
[@]
}
while
[[
$i
-le
$numfq
]]
do
fqs
=
"
$fqs
$1
"
i
=
$((
i
+
1
))
shift
1
done
else
fqs
=
"
$fq1
"
r1base
=
"
${
fq1
%.fastq*
}
"
if
[[
-f
$fq2
]]
then
fqs+
=
"
$fq2
"
r2base
=
"
${
fq2
%.fastq*
}
"
fi
fi
if
[[
-f
$fq2
]]
then
fqs+
=
"
$fq2
"
r2base
=
"
${
fq2
%.fastq*
}
"
fi
numfq
=
${#
fqs
[@]
}
numfq
=
0
for
k
in
$fqs
do
numfq
=
$((
numfq
+
1
))
done
copts
=
'-q 25 --illumina --gzip --length 35'
if
[[
$numfq
==
1
]]
if
[[
$numfq
==
2
]]
then
copts
=
"
$copts
--paired"
fi
...
...
@@ -70,7 +73,7 @@ then
mv
*
_val_2.fq.gz
${
pair_id
}
.trim.R2.fastq.gz
else
mv
*
_trimmed.fq.gz
${
pair_id
}
.trim.R1.fastq.gz
cp
${
pair_id
}
.trim.R1.fastq.gz
${
pair_id
}
.trim.R2.fastq.gz
#
cp ${pair_id}.trim.R1.fastq.gz ${pair_id}.trim.R2.fastq.gz
fi
if
[[
$filter
==
1
]]
...
...
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