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
99628b0d
Commit
99628b0d
authored
5 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
add tempdirs, altchr bwa and minMapQ
parent
01a5af0a
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alignment/markdups.sh
+12
-3
12 additions, 3 deletions
alignment/markdups.sh
variants/germline_vc.sh
+1
-1
1 addition, 1 deletion
variants/germline_vc.sh
with
13 additions
and
4 deletions
alignment/markdups.sh
+
12
−
3
View file @
99628b0d
...
...
@@ -32,6 +32,7 @@ then
SLURM_CPUS_ON_NODE
=
1
fi
baseDir
=
"
`
dirname
\"
$0
\"
`
"
testexe
=
'/project/shared/bicf_workflow_ref/seqprg/bin'
source
/etc/profile.d/modules.sh
module load picard/2.10.3 samtools/gcc/1.8
...
...
@@ -40,9 +41,11 @@ if [ $algo == 'sambamba' ]
then
module load speedseq/20160506
sambamba markdup
-t
$SLURM_CPUS_ON_NODE
${
sbam
}
${
pair_id
}
.dedup.bam
touch
${
pair_id
}
.dedup.stat.txt
elif
[
$algo
==
'samtools'
]
then
samtools markdup
-s
--output-fmt
BAM -@
$SLURM_CPUS_ON_NODE
sort.bam
${
pair_id
}
.dedup.bam
touch
${
pair_id
}
.dedup.stat.txt
elif
[
$algo
==
'picard'
]
then
java
-XX
:ParallelGCThreads
=
$SLURM_CPUS_ON_NODE
-Djava
.io.tmpdir
=
./
-Xmx16g
-jar
$PICARD
/picard.jar MarkDuplicates
I
=
${
sbam
}
O
=
${
pair_id
}
.dedup.bam
M
=
${
pair_id
}
.dedup.stat.txt
...
...
@@ -53,13 +56,19 @@ elif [ $algo == 'fgbio_umi' ]
then
module load fgbio bwa/intel/0.7.15
samtools index -@
$SLURM_CPUS_ON_NODE
${
sbam
}
fgbio GroupReadsByUmi
-s
identity
-i
${
sbam
}
-o
${
pair_id
}
.group.bam
--family-size-histogram
${
pair_id
}
.umihist.txt
-e
0
-m
0
fgbio CallMolecularConsensusReads
-i
${
pair_id
}
.group.bam
-p
consensus
-M
1
-o
${
pair_id
}
.consensus.bam
-S
':none:'
fgbio GroupReadsByUmi
--tmp-dir
./
-s
identity
-i
${
sbam
}
-o
${
pair_id
}
.group.bam
--family-size-histogram
${
pair_id
}
.umihist.txt
-e
0
-m
0
fgbio CallMolecularConsensusReads
--tmp-dir
./
-i
${
pair_id
}
.group.bam
-p
consensus
-M
1
-o
${
pair_id
}
.consensus.bam
-S
':none:'
samtools index
${
pair_id
}
.consensus.bam
samtools fastq
-1
${
pair_id
}
.consensus.R1.fastq
-2
${
pair_id
}
.consensus.R2.fastq
${
pair_id
}
.consensus.bam
gzip
${
pair_id
}
.consensus.R1.fastq
gzip
${
pair_id
}
.consensus.R2.fastq
bwa mem
-M
-C
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
/project/shared/bicf_workflow_ref/human/GRCh38/genome.fa
${
pair_id
}
.consensus.R1.fastq.gz
${
pair_id
}
.consensus.R2.fastq.gz | samtools view
-1
-
>
${
pair_id
}
.consensus.bam
bwa mem
-M
-C
-t
$SLURM_CPUS_ON_NODE
-R
"@RG
\t
ID:
${
pair_id
}
\t
LB:tx
\t
PL:illumina
\t
PU:barcode
\t
SM:
${
pair_id
}
"
/project/shared/bicf_workflow_ref/human/GRCh38/genome.fa
${
pair_id
}
.consensus.R1.fastq.gz
${
pair_id
}
.consensus.R2.fastq.gz
>
out.sam
if
[
$index_path
==
'/project/shared/bicf_workflow_ref/human/GRCh38'
]
then
k8
${
testexe
}
/bwa-postalt.js
-p
tmphla
${
index_path
}
/genome.fa.alt out.sam | samtools view
-1
-
>
${
pair_id
}
.consensus.bam
else
samtools view
-1
out.sam
>
${
pair_id
}
.consensus.bam
fi
samtools
sort
--threads
$SLURM_CPUS_ON_NODE
-o
${
pair_id
}
.dedup.bam
${
pair_id
}
.consensus.bam
else
cp
${
sbam
}
${
pair_id
}
.dedup.bam
...
...
This diff is collapsed.
Click to expand it.
variants/germline_vc.sh
+
1
−
1
View file @
99628b0d
...
...
@@ -80,7 +80,7 @@ then
for
i
in
*
.bam
;
do
bamlist
=
"
$bamlist
--bam
${
PWD
}
/
${
i
}
"
done
cut
-f
1
${
index_path
}
/genomefile.5M.txt | parallel
--delay
2
-j
$SLURM_CPUS_ON_NODE
"freebayes -f
${
index_path
}
/genome.fa --min-base-quality 20 --min-coverage 10 --min-alternate-fraction 0.01 -C 3 --use-best-n-alleles 3 -r {}
${
bamlist
}
> fb.{}.vcf"
cut
-f
1
${
index_path
}
/genomefile.5M.txt | parallel
--delay
2
-j
$SLURM_CPUS_ON_NODE
"freebayes -f
${
index_path
}
/genome.fa
--min-mapping-quality 0
--min-base-quality 20 --min-coverage 10 --min-alternate-fraction 0.01 -C 3 --use-best-n-alleles 3 -r {}
${
bamlist
}
> fb.{}.vcf"
vcf-concat fb.
*
.vcf | vcf-sort | vcf-annotate
-n
--fill-type
| bcftools norm
-c
s
-f
${
reffa
}
-w
10
-O
z
-o
${
pair_id
}
.freebayes.vcf.gz -
elif
[[
$algo
==
'gatk'
]]
then
...
...
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