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
012a37c5
Commit
012a37c5
authored
7 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.biohpc.swmed.edu:BICF/Astrocyte/process_scripts
parents
b54812cf
ba64b4b1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
alignment/dnaseqalign.sh
+1
-1
1 addition, 1 deletion
alignment/dnaseqalign.sh
alignment/rnaseqalign.sh
+8
-7
8 additions, 7 deletions
alignment/rnaseqalign.sh
variants/cnvkit.sh
+6
-4
6 additions, 4 deletions
variants/cnvkit.sh
with
15 additions
and
12 deletions
alignment/dnaseqalign.sh
+
1
−
1
View file @
012a37c5
...
@@ -12,7 +12,7 @@ usage() {
...
@@ -12,7 +12,7 @@ usage() {
exit
1
exit
1
}
}
OPTIND
=
1
# Reset OPTIND
OPTIND
=
1
# Reset OPTIND
while
getopts
:r:x:y:p:u
:
h opt
while
getopts
:r:x:y:p:uh opt
do
do
case
$opt
in
case
$opt
in
r
)
index_path
=
$OPTARG
;;
r
)
index_path
=
$OPTARG
;;
...
...
This diff is collapsed.
Click to expand it.
alignment/rnaseqalign.sh
+
8
−
7
View file @
012a37c5
...
@@ -34,7 +34,7 @@ if [[ -z $pair_id ]] || [[ -z $fq1 ]]; then
...
@@ -34,7 +34,7 @@ if [[ -z $pair_id ]] || [[ -z $fq1 ]]; then
fi
fi
source
/etc/profile.d/modules.sh
source
/etc/profile.d/modules.sh
module load samtools/
gcc/
1.6 picard/2.10.3
module load samtools/1.6 picard/2.10.3
baseDir
=
"
`
dirname
\"
$0
\"
`
"
baseDir
=
"
`
dirname
\"
$0
\"
`
"
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
then
then
...
@@ -62,13 +62,14 @@ else
...
@@ -62,13 +62,14 @@ else
else
else
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-U
$fq1
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-U
$fq1
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
fi
fi
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-o
output.bam out.sam
if
[[
$umi
==
1
]]
fi
then
if
[[
$umi
==
1
]]
python
${
baseDir
}
/add_umi_sam.py
-s
out.sam
-o
output.bam
then
else
python
${
baseDir
}
/add_umi_bam.py
-
b
output.bam
-o
output.unsort2.b
am
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-
o
output.bam
out.s
am
mv
output.unsort2.bam output.bam
fi
fi
fi
samtools
sort
-@
$SLURM_CPUS_ON_NODE
-O
BAM
-n
-o
output.nsort.bam output.bam
samtools
sort
-@
$SLURM_CPUS_ON_NODE
-O
BAM
-n
-o
output.nsort.bam output.bam
java
-jar
$PICARD
/picard.jar FixMateInformation
ASSUME_SORTED
=
TRUE
SORT_ORDER
=
coordinate
ADD_MATE_CIGAR
=
TRUE
I
=
output.nsort.bam
O
=
${
pair_id
}
.bam
java
-jar
$PICARD
/picard.jar FixMateInformation
ASSUME_SORTED
=
TRUE
SORT_ORDER
=
coordinate
ADD_MATE_CIGAR
=
TRUE
I
=
output.nsort.bam
O
=
${
pair_id
}
.bam
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.bam
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.bam
This diff is collapsed.
Click to expand it.
variants/cnvkit.sh
+
6
−
4
View file @
012a37c5
...
@@ -21,6 +21,8 @@ done
...
@@ -21,6 +21,8 @@ done
shift
$((
$OPTIND
-
1
))
shift
$((
$OPTIND
-
1
))
index_path
=
'/project/shared/bicf_workflow_ref/GRCh38/clinseq_prj/'
# Check for mandatory options
# Check for mandatory options
if
[[
-z
$pair_id
]]
||
[[
-z
$sbam
]]
;
then
if
[[
-z
$pair_id
]]
||
[[
-z
$sbam
]]
;
then
usage
usage
...
@@ -33,13 +35,13 @@ baseDir="`dirname \"$0\"`"
...
@@ -33,13 +35,13 @@ baseDir="`dirname \"$0\"`"
source
/etc/profile.d/modules.sh
source
/etc/profile.d/modules.sh
module load cnvkit/0.9.0
module load cnvkit/0.9.0
cnvkit.py coverage
${
sbam
}
/project/shared/bicf_workflow_ref/GRCh38
/UTSWV2.cnvkit_targets.bed
-o
${
pair_id
}
.targetcoverage.cnn
cnvkit.py coverage
${
sbam
}
${
index_path
}
/UTSWV2.cnvkit_targets.bed
-o
${
pair_id
}
.targetcoverage.cnn
cnvkit.py coverage
${
sbam
}
/project/shared/bicf_workflow_ref/GRCh38
/UTSWV2.cnvkit_antitargets.bed
-o
${
pair_id
}
.antitargetcoverage.cnn
cnvkit.py coverage
${
sbam
}
${
index_path
}
/UTSWV2.cnvkit_antitargets.bed
-o
${
pair_id
}
.antitargetcoverage.cnn
if
[[
$umi
==
'umi'
]]
if
[[
$umi
==
'umi'
]]
then
then
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
/project/shared/bicf_workflow_ref/GRCh38
/UTSWV2.uminormals.cnn
-o
${
pair_id
}
.cnr
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
${
index_path
}
/UTSWV2.uminormals.cnn
-o
${
pair_id
}
.cnr
else
else
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
/project/shared/bicf_workflow_ref/GRCh38
/UTSWV2.normals.cnn
-o
${
pair_id
}
.cnr
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
${
index_path
}
/UTSWV2.normals.cnn
-o
${
pair_id
}
.cnr
fi
fi
cnvkit.py segment
${
pair_id
}
.cnr
-o
${
pair_id
}
.cns
cnvkit.py segment
${
pair_id
}
.cnr
-o
${
pair_id
}
.cns
...
...
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