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
fe2b5933
Commit
fe2b5933
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
0ccf418d
c7aa1da1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
alignment/bamqc.sh
+2
-2
2 additions, 2 deletions
alignment/bamqc.sh
alignment/dnaseqalign.sh
+3
-3
3 additions, 3 deletions
alignment/dnaseqalign.sh
alignment/markdups.sh
+1
-1
1 addition, 1 deletion
alignment/markdups.sh
with
6 additions
and
6 deletions
alignment/bamqc.sh
+
2
−
2
View file @
fe2b5933
...
@@ -48,10 +48,10 @@ if [[ $nuctype == 'dna' ]]; then
...
@@ -48,10 +48,10 @@ if [[ $nuctype == 'dna' ]]; then
samtools flagstat
${
pair_id
}
.ontarget.bam
>
${
pair_id
}
.ontarget.flagstat.txt
samtools flagstat
${
pair_id
}
.ontarget.bam
>
${
pair_id
}
.ontarget.flagstat.txt
samtools view
-b
-q
1
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-hist
-g
${
index_path
}
/genomefile.txt
-b
stdin
-a
${
bed
}
>
${
pair_id
}
.mapqualcov.txt
samtools view
-b
-q
1
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-hist
-g
${
index_path
}
/genomefile.txt
-b
stdin
-a
${
bed
}
>
${
pair_id
}
.mapqualcov.txt
samtools view
-b
-F
1024
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-g
${
index_path
}
/genomefile.txt
-a
${
bed
}
-b
stdin
-hist
|
grep
^all
>
${
pair_id
}
.dedupcov.txt
samtools view
-b
-F
1024
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-g
${
index_path
}
/genomefile.txt
-a
${
bed
}
-b
stdin
-hist
|
grep
^all
>
${
pair_id
}
.dedupcov.txt
java
-Xmx32g
-jar
$PICARD
/picard.jar CollectAlignmentSummaryMetrics
R
=
${
ref
fa
}
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.alignmentsummarymetrics.txt
java
-Xmx32g
-jar
$PICARD
/picard.jar CollectAlignmentSummaryMetrics
R
=
${
index_path
}
/genome.
fa
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.alignmentsummarymetrics.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar EstimateLibraryComplexity
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.libcomplex.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar EstimateLibraryComplexity
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.libcomplex.txt
samtools view
-F
1024
${
pair_id
}
.ontarget.bam |
awk
'{sum+=$5} END { print "Mean MAPQ =",sum/NR}'
>
${
pair_id
}
.meanmap.txt
samtools view
-F
1024
${
pair_id
}
.ontarget.bam |
awk
'{sum+=$5} END { print "Mean MAPQ =",sum/NR}'
>
${
pair_id
}
.meanmap.txt
java
-Xmx4g
-jar
$PICARD
/picard.jar CollectInsertSizeMetrics
INPUT
=
${
pair_id
}
.
bam
HISTOGRAM_FILE
=
${
pair_id
}
.hist.ps
REFERENCE_SEQUENCE
=
${
ref
fa
}
OUTPUT
=
${
pair_id
}
.hist.txt
java
-Xmx4g
-jar
$PICARD
/picard.jar CollectInsertSizeMetrics
INPUT
=
${
s
bam
}
HISTOGRAM_FILE
=
${
pair_id
}
.hist.ps
REFERENCE_SEQUENCE
=
${
index_path
}
/genome.
fa
OUTPUT
=
${
pair_id
}
.hist.txt
samtools view
-b
-q
1
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-hist
-g
${
index_path
}
/genomefile.txt
-b
stdin
-a
${
bed
}
>
${
pair_id
}
.mapqualcov.txt
samtools view
-b
-q
1
${
pair_id
}
.ontarget.bam | bedtools coverage
-sorted
-hist
-g
${
index_path
}
/genomefile.txt
-b
stdin
-a
${
bed
}
>
${
pair_id
}
.mapqualcov.txt
bedtools coverage
-sorted
-g
${
index_path
}
/genomefile.txt
-a
${
bed
}
-b
${
sbam
}
-hist
>
${
pair_id
}
.covhist.txt
bedtools coverage
-sorted
-g
${
index_path
}
/genomefile.txt
-a
${
bed
}
-b
${
sbam
}
-hist
>
${
pair_id
}
.covhist.txt
perl
$baseDir
/scripts/calculate_depthcov.pl
${
pair_id
}
.covhist.txt
perl
$baseDir
/scripts/calculate_depthcov.pl
${
pair_id
}
.covhist.txt
...
...
This diff is collapsed.
Click to expand it.
alignment/dnaseqalign.sh
+
3
−
3
View file @
fe2b5933
...
@@ -42,14 +42,14 @@ baseDir="`dirname \"$0\"`"
...
@@ -42,14 +42,14 @@ baseDir="`dirname \"$0\"`"
if
[[
$fq1
==
$fq2
]]
if
[[
$fq1
==
$fq2
]]
then
then
bwa mem
-M
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
${
index_path
}
/genome.fa
${
fq1
}
>
out.sam
bwa mem
-M
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
${
index_path
}
/genome.fa
${
fq1
}
>
out.sam
else
else
bwa mem
-M
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
${
index_path
}
/genome.fa
${
fq1
}
${
fq2
}
>
out.sam
bwa mem
-M
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
${
index_path
}
/genome.fa
${
fq1
}
${
fq2
}
>
out.sam
fi
fi
if
[[
$umi
==
'umi'
]]
if
[[
$umi
==
'umi'
]]
then
then
k8 /cm/shared/apps/bwakit/0.7.15/bwa-postalt.js
-p
${
pair_id
}
.hla
${
index_path
}
/genome.fa.alt out.sam | python
${
baseDir
}
/add_umi_
b
am.py
-s
-
-o
output.unsort.bam
k8 /cm/shared/apps/bwakit/0.7.15/bwa-postalt.js
-p
${
pair_id
}
.hla
${
index_path
}
/genome.fa.alt out.sam | python
${
baseDir
}
/add_umi_
s
am.py
-s
-
-o
output.unsort.bam
elif
[[
$index_path
==
'/project/shared/bicf_workflow_ref/GRCh38'
]]
elif
[[
$index_path
==
'/project/shared/bicf_workflow_ref/GRCh38'
]]
then
then
k8 /cm/shared/apps/bwakit/0.7.15/bwa-postalt.js
-p
${
pair_id
}
.hla
${
index_path
}
/genome.fa.alt out.sam| samtools view
-1
-
>
output.unsort.bam
k8 /cm/shared/apps/bwakit/0.7.15/bwa-postalt.js
-p
${
pair_id
}
.hla
${
index_path
}
/genome.fa.alt out.sam| samtools view
-1
-
>
output.unsort.bam
...
...
This diff is collapsed.
Click to expand it.
alignment/markdups.sh
+
1
−
1
View file @
fe2b5933
...
@@ -56,7 +56,7 @@ elif [ $algo == 'fgbio_umi' ]
...
@@ -56,7 +56,7 @@ elif [ $algo == 'fgbio_umi' ]
then
then
samtools index -@
$SLURM_CPUS_ON_NODE
${
sbam
}
samtools index -@
$SLURM_CPUS_ON_NODE
${
sbam
}
source
activate fgbiotools
source
activate fgbiotools
fgbio GroupReadsByUmi
-s
identity
-i
${
sbam
}
-o
${
pair_id
}
.group.bam
-m
1
0
fgbio GroupReadsByUmi
-s
identity
-i
${
sbam
}
-o
${
pair_id
}
.group.bam
-m
0
fgbio CallMolecularConsensusReads
-i
${
pair_id
}
.group.bam
-p
consensus
-M
1
-o
${
pair_id
}
.consensus.bam
-S
':none:'
fgbio CallMolecularConsensusReads
-i
${
pair_id
}
.group.bam
-p
consensus
-M
1
-o
${
pair_id
}
.consensus.bam
-S
':none:'
source
deactivate
source
deactivate
module load bwa/intel/0.7.15
module load bwa/intel/0.7.15
...
...
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